Fix laser_spot again.

This commit is contained in:
Night Owl 2018-01-30 01:29:25 +05:00
parent 297cb1a978
commit b28859d584
2 changed files with 4 additions and 1 deletions

View File

@ -143,6 +143,8 @@ void CMP5::Holster( int skiplocal /*= 0*/ )
void CMP5::PrimaryAttack()
{
UpdateSpot();
// don't fire underwater
if( m_pPlayer->pev->waterlevel == 3 )
{
@ -281,7 +283,7 @@ void CMP5::Reload( void )
#ifndef CLIENT_DLL
if( m_pSpot && m_fSpotActive )
{
m_pSpot->Suspend( 1.5 );
m_pSpot->Suspend( 1.6 );
m_flNextSecondaryAttack = UTIL_WeaponTimeBase() + 1.5;
}
#endif

View File

@ -66,6 +66,7 @@ void CLaserSpot::Spawn( void )
pev->rendermode = kRenderGlow;
pev->renderfx = kRenderFxNoDissipation;
pev->renderamt = 255;
pev->scale = 0.25;
SET_MODEL( ENT( pev ), "sprites/laserdot.spr" );
UTIL_SetOrigin( pev, pev->origin );