Browse Source

Fix a little mistakes.

theyhunger
Night Owl 7 years ago
parent
commit
c4a7dcb139
  1. 2
      dlls/hunger/medkit.cpp
  2. 2
      dlls/hunger/tfcsniper.cpp

2
dlls/hunger/medkit.cpp

@ -99,7 +99,7 @@ void CWeaponEinarMedkit::PrimaryAttack()
if( m_fInAttack ) if( m_fInAttack )
{ {
if( m_flNextSecondaryAttack < UTIL_WeaponTimeBase() ); if( m_flNextSecondaryAttack < UTIL_WeaponTimeBase() )
Heal(); Heal();
return; return;
} }

2
dlls/hunger/tfcsniper.cpp

@ -250,7 +250,7 @@ void CWeaponEinarTFCSniper::WeaponIdle()
} }
if( m_fInSpecialReload == 2 ) if( m_fInSpecialReload == 2 )
{ {
EMIT_SOUND_DYN( ENT( m_pPlayer->pev ), CHAN_ITEM, "weapons/reload3.wav", RANDOM_LONG( 0.8, 0.9 ), ATTN_NORM, 0, 93 + RANDOM_LONG( 0, 0x1f ) ); EMIT_SOUND_DYN( ENT( m_pPlayer->pev ), CHAN_ITEM, "weapons/reload3.wav", RANDOM_FLOAT( 0.8, 0.9 ), ATTN_NORM, 0, 93 + RANDOM_LONG( 0, 0x1f ) );
m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 1.0; m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 1.0;
m_fInSpecialReload = 3; m_fInSpecialReload = 3;
} }

Loading…
Cancel
Save