Now C4/Knife won't try showing their "ammo/caliber" anymore
C4 will only start animating when it should be possible...
This commit is contained in:
parent
604bdff844
commit
1bb61a30ff
2 changed files with 5 additions and 0 deletions
|
@ -229,6 +229,10 @@ Draws the current clip, the amount of ammo for the caliber and a matching calibe
|
|||
=================
|
||||
*/
|
||||
void HUD_DrawAmmo( void ) {
|
||||
if ( getstatf( STAT_ACTIVEWEAPON ) == WEAPON_KNIFE || getstatf( STAT_ACTIVEWEAPON ) == WEAPON_C4BOMB ) {
|
||||
return;
|
||||
}
|
||||
|
||||
vector vAmmoClipPos = [ vVideoResolution_x - 136, vVideoResolution_y - 42 ];
|
||||
HUD_DrawNums( getstatf( STAT_CURRENT_CLIP ), vAmmoClipPos );
|
||||
vector vAmmoCalPos = [ vVideoResolution_x - 64, vVideoResolution_y - 42 ];
|
||||
|
|
|
@ -104,6 +104,7 @@ void WeaponC4BOMB_PrimaryFire( void ) {
|
|||
if ( trace_fraction == 1 || self.fInBombZone == FALSE ) {
|
||||
WeaponC4BOMB_Release();
|
||||
self.fAttackFinished = time + 1.0;
|
||||
return;
|
||||
}
|
||||
|
||||
// Play the sequence at the start
|
||||
|
|
Loading…
Reference in a new issue