Fixed fast zombie being crippled if interrupted pre-pounce.
This commit is contained in:
parent
aa08d47a35
commit
1d517c5375
1 changed files with 7 additions and 0 deletions
|
@ -225,6 +225,13 @@ function SWEP:StartPounce()
|
||||||
owner:SetGroundEntity(NULL)
|
owner:SetGroundEntity(NULL)
|
||||||
owner:SetVelocity((1 - 0.5 * (owner:GetLegDamage() / GAMEMODE.MaxLegDamage)) * self.PounceVelocity * dir)
|
owner:SetVelocity((1 - 0.5 * (owner:GetLegDamage() / GAMEMODE.MaxLegDamage)) * self.PounceVelocity * dir)
|
||||||
owner:SetAnimation(PLAYER_JUMP)
|
owner:SetAnimation(PLAYER_JUMP)
|
||||||
|
else
|
||||||
|
self:SetNextSecondaryFire(CurTime())
|
||||||
|
self.m_ViewAngles = nil
|
||||||
|
self.NextAllowJump = CurTime()
|
||||||
|
self.NextAllowPounce = CurTime() + self.PounceDelay
|
||||||
|
self:SetNextPrimaryFire(CurTime() + 0.1)
|
||||||
|
self.Owner:ResetJumpPower()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue