|
|
@ -757,23 +757,25 @@ void CApache::FireRocket( void ) |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
MESSAGE_BEGIN( MSG_PVS, SVC_TEMPENTITY, vecSrc ); |
|
|
|
|
|
|
|
WRITE_BYTE( TE_SMOKE ); |
|
|
|
|
|
|
|
WRITE_COORD( vecSrc.x ); |
|
|
|
|
|
|
|
WRITE_COORD( vecSrc.y ); |
|
|
|
|
|
|
|
WRITE_COORD( vecSrc.z ); |
|
|
|
|
|
|
|
WRITE_SHORT( g_sModelIndexSmoke ); |
|
|
|
|
|
|
|
WRITE_BYTE( 20 ); // scale * 10
|
|
|
|
|
|
|
|
WRITE_BYTE( 12 ); // framerate
|
|
|
|
|
|
|
|
MESSAGE_END(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CBaseEntity *pRocket = CBaseEntity::Create( "hvr_rocket", vecSrc, pev->angles, edict() ); |
|
|
|
CBaseEntity *pRocket = CBaseEntity::Create( "hvr_rocket", vecSrc, pev->angles, edict() ); |
|
|
|
if( pRocket ) |
|
|
|
if( pRocket ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
MESSAGE_BEGIN( MSG_PVS, SVC_TEMPENTITY, vecSrc ); |
|
|
|
|
|
|
|
WRITE_BYTE( TE_SMOKE ); |
|
|
|
|
|
|
|
WRITE_COORD( vecSrc.x ); |
|
|
|
|
|
|
|
WRITE_COORD( vecSrc.y ); |
|
|
|
|
|
|
|
WRITE_COORD( vecSrc.z ); |
|
|
|
|
|
|
|
WRITE_SHORT( g_sModelIndexSmoke ); |
|
|
|
|
|
|
|
WRITE_BYTE( 20 ); // scale * 10
|
|
|
|
|
|
|
|
WRITE_BYTE( 12 ); // framerate
|
|
|
|
|
|
|
|
MESSAGE_END(); |
|
|
|
|
|
|
|
|
|
|
|
pRocket->pev->velocity = pev->velocity + gpGlobals->v_forward * 100.0f; |
|
|
|
pRocket->pev->velocity = pev->velocity + gpGlobals->v_forward * 100.0f; |
|
|
|
|
|
|
|
|
|
|
|
m_iRockets--; |
|
|
|
m_iRockets--; |
|
|
|
|
|
|
|
|
|
|
|
side = - side; |
|
|
|
side = - side; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BOOL CApache::FireGun() |
|
|
|
BOOL CApache::FireGun() |
|
|
|