Browse Source

Fix laser_spot.

eftd
Night Owl 7 years ago
parent
commit
af6d00dff3
  1. 9
      dlls/mp5.cpp

9
dlls/mp5.cpp

@ -269,18 +269,20 @@ void CMP5::SecondaryAttack( void ) @@ -269,18 +269,20 @@ void CMP5::SecondaryAttack( void )
void CMP5::Reload( void )
{
UpdateSpot();
if( m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] <= 0 || m_iClip == MP5_MAX_CLIP )
return;
int iResult = DefaultReload( MP5_MAX_CLIP, MP5_RELOAD, 3.0 );
int iResult = DefaultReload( MP5_MAX_CLIP, MP5_RELOAD, 1.5 );
if( iResult )
{
#ifndef CLIENT_DLL
if( m_pSpot && m_fSpotActive )
{
m_pSpot->Suspend( 3.0 );
m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + 3.0;
m_pSpot->Suspend( 1.5 );
m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + 1.5;
}
#endif
}
@ -328,7 +330,6 @@ void CMP5::UpdateSpot( void ) @@ -328,7 +330,6 @@ void CMP5::UpdateSpot( void )
if( !m_pSpot )
{
m_pSpot = CLaserSpot::CreateSpot();
m_pSpot->pev->scale = 0.5;
}
UTIL_MakeVectors( m_pPlayer->pev->v_angle );

Loading…
Cancel
Save