mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-27 06:07:56 +03:00
Fixed enemyfinders becoming visible when they wake
This commit is contained in:
parent
f8a8d49be7
commit
a6a8a04b1f
@ -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
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user