diff options
Diffstat (limited to 'gamemode/core/animation/cl_animate.lua')
| -rw-r--r-- | gamemode/core/animation/cl_animate.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gamemode/core/animation/cl_animate.lua b/gamemode/core/animation/cl_animate.lua index fd322a1..c7dc19d 100644 --- a/gamemode/core/animation/cl_animate.lua +++ b/gamemode/core/animation/cl_animate.lua @@ -11,3 +11,26 @@ net.Receive("art_stop_animation",function() local anim = net.ReadString() what:StopLuaAnimation(anim) end) + +local sequences = {} +net.Receive("art_start_sequence",function() + local who = net.ReadEntity() + local seq = net.ReadUInt(31) + local time = net.ReadFloat() + local untilstoped = net.ReadBool() + local speed = net.ReadFloat() + sequences[who] = sequences[who] or {} + who:SetCycle(0) + if untilstoped then + sequences[who] = {CurTime() + 9999999, seq, speed} + else + sequences[who] = {CurTime() + time, seq, speed} + end +end) + +net.Receive("art_end_sequence",function() + local who = net.ReadEntity() + sequences[who] = nil +end) + +return sequences |
