This commit is contained in:
lifestorm
2024-08-04 23:54:45 +03:00
parent 8064ba84d8
commit 6a58f406b1
7522 changed files with 4011896 additions and 15 deletions

View File

@@ -0,0 +1,25 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
function PLUGIN:InitPostEntity()
for _, entityData in pairs(self.usableEntityLookup) do
if (entityData.class == "ix_clock" and !timer.Exists("ix_clock_ambience")) then
timer.Create("ix_clock_ambience", 1, 0, function()
for _, entity in ipairs(ents.FindByClass("ix_clock")) do
if (entity:GetNetVar("enabled")) then
entity:StopSound("tick.wav")
entity:EmitSound("tick.wav", 60, math.random(95, 105), 1, CHAN_AUTO)
end
end
end)
end
end
end