mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-04-02 16:50:47 +05:00
refactro: remove sounds precaching because it doesnt work anyway
This commit is contained in:
parent
4d8883be63
commit
ee2fdb9c24
3 changed files with 1 additions and 16 deletions
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
sound.Add = soundAdd_old
|
||||
soundAdd_old = nil
|
Loading…
Add table
Reference in a new issue