mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
27
gamemodes/helix/plugins/modelanimationsplayer/sv_hooks.lua
Normal file
27
gamemodes/helix/plugins/modelanimationsplayer/sv_hooks.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
local PLUGIN = PLUGIN
|
||||
|
||||
netstream.Hook("ixModelAnimationsRunSequence", function(ply, sequence)
|
||||
if (!CAMI.PlayerHasAccess(ply, "Helix - " .. PLUGIN.name, nil) or !IsValid(ply)) then return end
|
||||
|
||||
ply:LeaveSequence()
|
||||
|
||||
timer.Simple(0.1, function()
|
||||
ply:ForceSequence(sequence, nil, 999, true)
|
||||
end)
|
||||
end)
|
||||
|
||||
netstream.Hook("ixModelAnimationsResetSequence", function(ply)
|
||||
if (!CAMI.PlayerHasAccess(ply, "Helix - " .. PLUGIN.name, nil) or !IsValid(ply)) then return end
|
||||
|
||||
ply:LeaveSequence()
|
||||
end)
|
||||
Reference in New Issue
Block a user