Fixed enemyfinders becoming visible when they wake

This commit is contained in:
Peter Covington 2022-04-20 09:41:26 -04:00
parent f8a8d49be7
commit a6a8a04b1f

View File

@ -59,6 +59,10 @@ public:
void InputTurnOff( inputdata_t &inputdata );
virtual void Wake( bool bFireOutput = true );
#ifdef MAPBASE
// A version of Wake() that takes an activator
virtual void Wake(CBaseEntity* pActivator);
#endif
private:
int m_nStartOn;
@ -234,6 +238,16 @@ void CNPC_EnemyFinder::Wake( bool bFireOutput )
AddEffects( EF_NODRAW );
}
#ifdef MAPBASE
void CNPC_EnemyFinder::Wake(CBaseEntity* pActivator)
{
BaseClass::Wake(pActivator);
//Enemy finder is not allowed to become visible.
AddEffects(EF_NODRAW);
}
#endif // MAPBASE
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------