mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Fix laser_spot.
This commit is contained in:
parent
1f5dd7ac91
commit
af6d00dff3
@ -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 )
|
||||
if( !m_pSpot )
|
||||
{
|
||||
m_pSpot = CLaserSpot::CreateSpot();
|
||||
m_pSpot->pev->scale = 0.5;
|
||||
}
|
||||
|
||||
UTIL_MakeVectors( m_pPlayer->pev->v_angle );
|
||||
|
Loading…
x
Reference in New Issue
Block a user