mirror of
https://github.com/sr229/metastruct-experiments.git
synced 2024-09-20 06:30:36 +00:00
Add more experiments
Signed-off-by: Ayane Satomi <ayane@vignetteapp.org>
This commit is contained in:
parent
9e5616fc7d
commit
0c3c40329d
2 changed files with 20 additions and 0 deletions
17
add_state_change_listener_ctp.lua
Normal file
17
add_state_change_listener_ctp.lua
Normal 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)
|
3
remove_playerstepsoundtime_ctp.lua
Normal file
3
remove_playerstepsoundtime_ctp.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
-- This gets rid of the awful PlayerStepSound calculatuion CTP does
|
||||
-- Which isn't pretty anyway
|
||||
function ctp:PlayerStepSoundTime() end
|
Loading…
Reference in a new issue