From cfcaeb809ec8e934823c97f7f27be0260591674e Mon Sep 17 00:00:00 2001 From: Night Owl Date: Sun, 2 Sep 2018 21:35:33 +0500 Subject: [PATCH] Add info_emittertarget implementation. --- dlls/subs.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dlls/subs.cpp b/dlls/subs.cpp index b85f4ae0..78f9609d 100644 --- a/dlls/subs.cpp +++ b/dlls/subs.cpp @@ -176,6 +176,20 @@ void CCheatHelper::KeyValue( KeyValueData *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 void CBaseEntity::UpdateOnRemove( void ) {