Browse Source

double-promotion fixes.

noffice
Andrey Akhmichin 4 years ago
parent
commit
31a718537d
  1. 2
      dlls/crowbar.cpp
  2. 2
      dlls/glock.cpp
  3. 2
      dlls/shotgun.cpp

2
dlls/crowbar.cpp

@ -210,7 +210,7 @@ int CCrowbar::Swing( int fFirst ) @@ -210,7 +210,7 @@ int CCrowbar::Swing( int fFirst )
EMIT_SOUND_DYN( ENT( m_pPlayer->pev ), CHAN_WEAPON, "weapons/cbar_miss1.wav", 1, ATTN_NORM, 0, 94 + RANDOM_LONG( 0, 0xF ) );
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.5;
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.5f;
// player "shoot" animation
m_pPlayer->SetAnimation( PLAYER_ATTACK1 );

2
dlls/glock.cpp

@ -115,7 +115,7 @@ void CGlock::Holster( int skiplocal /*= 0*/ ) @@ -115,7 +115,7 @@ void CGlock::Holster( int skiplocal /*= 0*/ )
{
m_fInReload = FALSE;// cancel any reload in progress.
m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 0.5;
m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 0.5f;
SendWeaponAnim( GLOCK_HOLSTER );
m_fInAttack = 0;

2
dlls/shotgun.cpp

@ -177,7 +177,7 @@ void CShotgun::PrimaryAttack() @@ -177,7 +177,7 @@ void CShotgun::PrimaryAttack()
// HEV suit - indicate out of ammo condition
m_pPlayer->SetSuitUpdate( "!HEV_AMO0", FALSE, 0 );
m_flPumpTime = gpGlobals->time + 0.5;
m_flPumpTime = gpGlobals->time + 0.5f;
m_flNextPrimaryAttack = UTIL_WeaponTimeBase() + 0.75f;
m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + 0.75f;

Loading…
Cancel
Save