I have searched the SDK for sonething like this, but I have only found the
if pEnemy->isPlayer;
method that, of course, is not what I want.Could it be done or I am exceeding what's do-able?
Created 4 years ago2020-02-28 12:48:23 UTC by abbadon
if pEnemy->isPlayer;
method that, of course, is not what I want.if ( FClassnameIs( pEnemy->pev, "monster_something" ) )
This will work if the monster has already chosen an enemy and is about to attack it.//==============================================================================
// Codigo para que ingonen a los Trolley y no les disparen CRASHEA EL JUEGO!!!!
//==============================================================================
CBaseEntity *pEnemy;
pEnemy = m_hEnemy;
if ( FClassnameIs( pEnemy->pev, "monster_trolley" ))
{
return;
}
//=============================================================================
BTW: they ATTACKS the trolley guys, but the laser is not shot anymore.