refactro: remove sounds precaching because it doesnt work anyway

This commit is contained in:
Jonny_Bro 2025-03-28 14:27:42 +05:00
parent 4d8883be63
commit ee2fdb9c24
No known key found for this signature in database
GPG key ID: A18808B38428F7C4
3 changed files with 1 additions and 16 deletions

View file

@ -1,13 +0,0 @@
soundAdd_old = sound.Add
local function soundAdd_detour(tbl)
if not tbl.name then return end
soundAdd_old(tbl)
timer.Simple(2, function()
util.PrecacheSound(tbl.name)
end)
end
sound.Add = soundAdd_detour

View file

@ -55,7 +55,7 @@ local function ZiplineCheck(ply, mv, cmd, zipline)
local div = startpos:Distance(endpos)
local fail = true
for i = 1, 32 do
for _ = 1, 32 do
start = start + 25 / div
tr.start = LerpVector(start, startpos, endpos)
tr.endpos = tr.start

View file

@ -1,2 +0,0 @@
sound.Add = soundAdd_old
soundAdd_old = nil