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/darkrp/plugins/wn7_gestures/meta/sv_player.lua
Normal file
27
gamemodes/darkrp/plugins/wn7_gestures/meta/sv_player.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 playerMeta = FindMetaTable("Player")
|
||||
|
||||
function playerMeta:PlayGestureAnimation(animation)
|
||||
net.Start("ixGestureAnimation")
|
||||
net.WriteEntity(self)
|
||||
net.WriteString(animation)
|
||||
net.SendPVS( self:GetPos() )
|
||||
end
|
||||
|
||||
net.Receive("ixAskForGestureAnimation", function(len, client)
|
||||
local gest = net.ReadString()
|
||||
|
||||
if not client:IsPlayer() or (client.ixGestDelay and client.ixGestDelay > CurTime()) then return end
|
||||
client:PlayGestureAnimation(client:LookupSequence(gest))
|
||||
client.ixGestDelay = CurTime() + 1
|
||||
end)
|
||||
Reference in New Issue
Block a user