Add more experiments

Signed-off-by: Ayane Satomi <ayane@vignetteapp.org>
This commit is contained in:
Ayane Satomi 2022-04-26 00:20:07 +08:00
parent 9e5616fc7d
commit 0c3c40329d
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,17 @@
hook.Add("Think", "CtpCheck", function()
if not ctp or not ctp.Toggle then return end
function ctp:Toggle()
self = self or ctp
if ctp:IsEnabled() then
ctp.Disable()
else
ctp.Enable()
end
hook.Run("OnCtpStateChanged", ctp:IsEnabled())
end
hook.Remove("Think", "CtpCheck")
end)

View file

@ -0,0 +1,3 @@
-- This gets rid of the awful PlayerStepSound calculatuion CTP does
-- Which isn't pretty anyway
function ctp:PlayerStepSoundTime() end