Fixed fast zombie being crippled if interrupted pre-pounce.

This commit is contained in:
JetBoom 2014-11-08 23:01:54 -05:00
parent aa08d47a35
commit 1d517c5375

View file

@ -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