blob: c7dc19dbc16f6a73c5e4b590d12f6c9d1de6a46b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
net.Receive("art_start_animation",function()
local what = net.ReadEntity()
local anim = net.ReadString()
what:SetupBones()
what:SetLuaAnimation(anim)
end)
net.Receive("art_stop_animation",function()
local what = net.ReadEntity()
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
|