CBaseEntity* MoveToRandomSpot( CBaseEntity *pEnt ) { if ( pEnt ) { UTIL_SetOrigin( pEnt, GetRandomSpot() ); } return pEnt; }
CBaseEntity* MoveToRandomSpot( CBaseEntity *pEnt ) { if ( pEnt ) { #ifdef SecobMod__Enable_Fixed_Multiplayer_AI UTIL_SetOrigin( pEnt, GetRandomSpot() ); #else CBasePlayer *pLocalPlayer = UTIL_GetLocalPlayer(); if ( pLocalPlayer ) { Vector vForward; pLocalPlayer->EyeVectors(&vForward ); UTIL_SetOrigin( pEnt, GetRandomSpot() ); } #endif //SecobMod__Enable_Fixed_Multiplayer_AI } return pEnt; }
CBaseEntity* CreateSignalFlare() { CBaseEntity *pLocalPlayer = CBaseEntity::Instance( engine->PEntityOfEntIndex( 1 ) ); if ( pLocalPlayer ) { return CSignalFlare::Create( GetRandomSpot(), QAngle( 0, 0, 0 ), pLocalPlayer, 3 ); } else { return NULL; } }
CBaseEntity* MoveToRandomSpot( CBaseEntity *pEnt ) { if ( pEnt ) { CBasePlayer *pLocalPlayer = UTIL_GetLocalPlayer(); if ( pLocalPlayer ) { Vector vForward; pLocalPlayer->EyeVectors(&vForward ); UTIL_SetOrigin( pEnt, GetRandomSpot() ); } } return pEnt; }
CBaseEntity* MoveToRandomSpot( CBaseEntity *pEnt ) { if ( pEnt ) { #ifdef HL2SB CBasePlayer *pLocalPlayer = UTIL_GetNearestPlayer( pEnt->GetAbsOrigin() ); #else CBasePlayer *pLocalPlayer = UTIL_GetLocalPlayer(); #endif if ( pLocalPlayer ) { Vector vForward; pLocalPlayer->EyeVectors(&vForward ); UTIL_SetOrigin( pEnt, GetRandomSpot() ); } } return pEnt; }