diff options
Diffstat (limited to 'gamemode/core/animation/sv_animate.lua')
| -rw-r--r-- | gamemode/core/animation/sv_animate.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gamemode/core/animation/sv_animate.lua b/gamemode/core/animation/sv_animate.lua new file mode 100644 index 0000000..24d0ed0 --- /dev/null +++ b/gamemode/core/animation/sv_animate.lua @@ -0,0 +1,21 @@ + +nrequire("sh_animations.lua") + +local meta = FindMetaTable("Player") + +util.AddNetworkString("art_start_animation") +util.AddNetworkString("art_stop_animation") + +function meta:StartAnimation(name) + net.Start("art_start_animation") + net.WriteEntity(self) + net.WriteString(name) + net.Broadcast() +end + +function meta:StopAnimation(name) + net.Start("art_stop_animation") + net.WriteEntity(self) + net.WriteString(name) + net.Broadcast() +end |
