TP anims ftpredicted
This commit is contained in:
parent
acb5b25cfe
commit
2b4ddf604d
|
@ -209,6 +209,7 @@ SWEP.GestureReload = { ACT_FLINCH_STOMACH, 0.3 }
|
||||||
SWEP.GestureDraw = { ACT_GMOD_GESTURE_MELEE_SHOVE_1HAND, 0.75 }
|
SWEP.GestureDraw = { ACT_GMOD_GESTURE_MELEE_SHOVE_1HAND, 0.75 }
|
||||||
SWEP.GestureHolster = { ACT_GMOD_GESTURE_MELEE_SHOVE_1HAND, 0.65 }
|
SWEP.GestureHolster = { ACT_GMOD_GESTURE_MELEE_SHOVE_1HAND, 0.65 }
|
||||||
function SWEP:TPFire()
|
function SWEP:TPFire()
|
||||||
|
if CLIENT and !IsFirstTimePredicted() then return end
|
||||||
local target = self:BClass( false ).GestureFire
|
local target = self:BClass( false ).GestureFire
|
||||||
if !target then
|
if !target then
|
||||||
target = self.GestureFire
|
target = self.GestureFire
|
||||||
|
@ -216,6 +217,7 @@ function SWEP:TPFire()
|
||||||
self:GetOwner():AddVCDSequenceToGestureSlot( GESTURE_SLOT_GRENADE, self:GetOwner():SelectWeightedSequence(target[1]), target[2], true )
|
self:GetOwner():AddVCDSequenceToGestureSlot( GESTURE_SLOT_GRENADE, self:GetOwner():SelectWeightedSequence(target[1]), target[2], true )
|
||||||
end
|
end
|
||||||
function SWEP:TPReload()
|
function SWEP:TPReload()
|
||||||
|
if CLIENT and !IsFirstTimePredicted() then return end
|
||||||
local target = self:BClass( false ).GestureReload
|
local target = self:BClass( false ).GestureReload
|
||||||
if !target then
|
if !target then
|
||||||
target = self.GestureReload
|
target = self.GestureReload
|
||||||
|
@ -223,6 +225,7 @@ function SWEP:TPReload()
|
||||||
self:GetOwner():AddVCDSequenceToGestureSlot( GESTURE_SLOT_GRENADE, self:GetOwner():SelectWeightedSequence(target[1]), target[2], true )
|
self:GetOwner():AddVCDSequenceToGestureSlot( GESTURE_SLOT_GRENADE, self:GetOwner():SelectWeightedSequence(target[1]), target[2], true )
|
||||||
end
|
end
|
||||||
function SWEP:TPDraw()
|
function SWEP:TPDraw()
|
||||||
|
if CLIENT and !IsFirstTimePredicted() then return end
|
||||||
local target = self:BClass( false ).GestureDraw
|
local target = self:BClass( false ).GestureDraw
|
||||||
if !target then
|
if !target then
|
||||||
target = self.GestureDraw
|
target = self.GestureDraw
|
||||||
|
@ -230,6 +233,7 @@ function SWEP:TPDraw()
|
||||||
self:GetOwner():AddVCDSequenceToGestureSlot( GESTURE_SLOT_GRENADE, self:GetOwner():SelectWeightedSequence(target[1]), target[2], true )
|
self:GetOwner():AddVCDSequenceToGestureSlot( GESTURE_SLOT_GRENADE, self:GetOwner():SelectWeightedSequence(target[1]), target[2], true )
|
||||||
end
|
end
|
||||||
function SWEP:TPHolster()
|
function SWEP:TPHolster()
|
||||||
|
if CLIENT and !IsFirstTimePredicted() then return end
|
||||||
local target = self:BClass( false ) and self:BClass( false ).GestureHolster
|
local target = self:BClass( false ) and self:BClass( false ).GestureHolster
|
||||||
if !target then
|
if !target then
|
||||||
target = self.GestureHolster
|
target = self.GestureHolster
|
||||||
|
|
Loading…
Reference in New Issue