Temporary flashbang cook fix

This commit is contained in:
Fesiug 2023-11-13 21:51:03 -05:00
parent 6567777bcc
commit 8f6a2976d2
1 changed files with 2 additions and 0 deletions

View File

@ -924,6 +924,8 @@ do -- Grenades, nothing here is guaranteed.
if self:GetGrenadeDown() then if self:GetGrenadeDown() then
if !p:KeyDown( IN_ATTACK ) or ( CurTime() >= (self:GetGrenadeDownStart() + class.GrenadeFuse) ) then if !p:KeyDown( IN_ATTACK ) or ( CurTime() >= (self:GetGrenadeDownStart() + class.GrenadeFuse) ) then
self:SetGrenadeDown( false ) self:SetGrenadeDown( false )
-- TEMP: Do this right!
if !class.GrenadeCharge then self:SetGrenadeDownStart( CurTime() ) end
self:TPFire() self:TPFire()
if SERVER then GrenadeThrow( self, data ) end if SERVER then GrenadeThrow( self, data ) end
end end