Browse Source

Add info_emittertarget implementation.

decay-pc
Night Owl 6 years ago
parent
commit
cfcaeb809e
  1. 14
      dlls/subs.cpp

14
dlls/subs.cpp

@ -176,6 +176,20 @@ void CCheatHelper::KeyValue( KeyValueData *pkvd )
CPointEntity::KeyValue( pkvd ); CPointEntity::KeyValue( pkvd );
} }
class CEmitterTarget : public CPointEntity
{
public:
void Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
};
LINK_ENTITY_TO_CLASS( info_emittertarget, CEmitterTarget )
void CEmitterTarget::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )
{
FireTargets( STRING( pev->target ), this, this, USE_TOGGLE, 0 );
ALERT( at_console, "info_emittertarget called Use! Firing %s\n", STRING( pev->target ) );
}
// This updates global tables that need to know about entities being removed // This updates global tables that need to know about entities being removed
void CBaseEntity::UpdateOnRemove( void ) void CBaseEntity::UpdateOnRemove( void )
{ {

Loading…
Cancel
Save