/* * This file is generated by Entity Class Compiler, (c) CroTeam 1997-98 */ #line 4 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" #include "StdH.h" #include "TacticsHolder.h" #include #include void CTacticsChanger::SetDefaultProperties(void) { m_strName = "TacticsChanger"; m_strDescription = ""; m_tctType = TCT_NONE ; m_fParam1 = 0.0f; m_fParam2 = 0.0f; m_fParam3 = 0.0f; m_fParam4 = 0.0f; m_fParam5 = 0.0f; m_penTacticsHolder = NULL; CRationalEntity::SetDefaultProperties(); } #line 34 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" const CTString & CTacticsChanger::GetDescription(void)const { #line 35 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" return m_strDescription ; #line 36 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" } BOOL CTacticsChanger:: #line 39 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" Main(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT STATE_CTacticsChanger_Main ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CTacticsChanger::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; #line 41 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" InitAsEditorModel (); #line 42 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" SetPhysicsFlags (EPF_MODEL_IMMATERIAL ); #line 43 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" SetCollisionFlags (ECF_IMMATERIAL ); #line 46 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" SetModel (MODEL_MANAGER ); #line 47 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" SetModelMainTexture (TEXTURE_MANAGER ); #line 49 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" SetTimerAfter(0.1f); Jump(STATE_CURRENT, 0x00ec0000, FALSE, EBegin());return TRUE;}BOOL CTacticsChanger::H0x00ec0000_Main_01(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x00ec0000 switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x00ec0001, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CTacticsChanger::H0x00ec0001_Main_02(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x00ec0001 ; #line 51 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" Jump(STATE_CURRENT,0x00ec0006, FALSE, EInternal());return TRUE;}BOOL CTacticsChanger::H0x00ec0006_Main_07(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x00ec0006 if(!(TRUE )){ Jump(STATE_CURRENT,0x00ec0007, FALSE, EInternal());return TRUE;} #line 52 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" SetTimerAt(THINKTIME_NEVER); Jump(STATE_CURRENT, 0x00ec0002, FALSE, EBegin());return TRUE;}BOOL CTacticsChanger::H0x00ec0002_Main_03(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x00ec0002 switch(__eeInput.ee_slEvent) #line 53 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" {case(EVENTCODE_ETrigger):{const ETrigger&e= (ETrigger&)__eeInput; #line 55 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" if(m_penTacticsHolder != NULL ){ #line 56 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" CTacticsHolder * penTactics = & (CTacticsHolder &) * m_penTacticsHolder ; #line 57 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" penTactics -> m_tctType = m_tctType ; #line 58 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" penTactics -> m_fParam1 = m_fParam1 ; #line 59 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" penTactics -> m_fParam2 = m_fParam2 ; #line 60 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" penTactics -> m_fParam3 = m_fParam3 ; #line 61 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" penTactics -> m_fParam4 = m_fParam4 ; #line 62 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" penTactics -> m_fParam5 = m_fParam5 ; #line 63 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" penTactics -> m_tmLastActivation = _pTimer -> CurrentTick (); #line 64 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" } #line 65 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" UnsetTimer();Jump(STATE_CURRENT,0x00ec0003, FALSE, EInternal());return TRUE; #line 66 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" }ASSERT(FALSE);break;default:{ #line 68 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" return TRUE; #line 69 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" }ASSERT(FALSE);break; #line 70 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" }return TRUE;}BOOL CTacticsChanger::H0x00ec0003_Main_04(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x00ec0003 ; #line 73 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" SetTimerAfter(0.1f); Jump(STATE_CURRENT, 0x00ec0004, FALSE, EBegin());return TRUE;}BOOL CTacticsChanger::H0x00ec0004_Main_05(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x00ec0004 switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x00ec0005, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CTacticsChanger::H0x00ec0005_Main_06(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x00ec0005 ;Jump(STATE_CURRENT,0x00ec0006, FALSE, EInternal());return TRUE; #line 74 "D:/SE1_GPL/Sources/EntitiesMP/TacticsChanger.es" }BOOL CTacticsChanger::H0x00ec0007_Main_08(const CEntityEvent &__eeInput) { ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x00ec0007 ASSERT(FALSE); return TRUE;};