/* * This file is generated by Entity Class Compiler, (c) CroTeam 1997-98 */ #line 4 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" #include "StdH.h" extern INDEX ent_bReportBrokenChains; #include #include void CMessageHolder::SetDefaultProperties(void) { m_strName = "MessageHolder"; m_strDescription = ""; m_fnmMessage = CTString(""); m_fDistance = 2.0f; m_bActive = TRUE ; m_penNext = NULL; CRationalEntity::SetDefaultProperties(); } #line 27 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" const CTString & CMessageHolder::GetDescription(void)const { #line 28 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" ((CTString &) m_strDescription ) . PrintF ("%s" , m_fnmMessage . FileName ()); #line 29 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" return m_strDescription ; #line 30 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" } BOOL CMessageHolder:: #line 33 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" Main(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT STATE_CMessageHolder_Main ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CMessageHolder::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; #line 35 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" InitAsEditorModel (); #line 36 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" SetPhysicsFlags (EPF_MODEL_IMMATERIAL ); #line 37 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" SetCollisionFlags (ECF_IMMATERIAL ); #line 40 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" SetModel (MODEL_MARKER ); #line 41 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" SetModelMainTexture (TEXTURE_MARKER ); #line 42 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" SetTimerAt(THINKTIME_NEVER); Jump(STATE_CURRENT, 0x00e20000, FALSE, EBegin());return TRUE;}BOOL CMessageHolder::H0x00e20000_Main_01(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x00e20000 switch(__eeInput.ee_slEvent){case(EVENTCODE_ETrigger):{const ETrigger&eTrigger= (ETrigger&)__eeInput; #line 44 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" if(! m_bActive ){ #line 45 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" return TRUE; #line 46 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" } #line 47 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" CEntity * penCaused = FixupCausedToPlayer (this , eTrigger . penCaused ); #line 48 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" EComputerMessage eMsg ; #line 49 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" eMsg . fnmMessage = m_fnmMessage ; #line 50 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" penCaused -> SendEvent (eMsg ); #line 51 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" return TRUE; #line 52 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" }ASSERT(FALSE);break;case(EVENTCODE_EActivate):{const EActivate&e= (EActivate&)__eeInput; #line 54 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" m_bActive = TRUE ; #line 55 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" return TRUE; #line 56 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" }ASSERT(FALSE);break;case(EVENTCODE_EDeactivate):{const EDeactivate&e= (EDeactivate&)__eeInput; #line 58 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" m_bActive = FALSE ; #line 59 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" return TRUE; #line 60 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" }ASSERT(FALSE);break;default: return FALSE; break; #line 61 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" }return TRUE;}BOOL CMessageHolder::H0x00e20001_Main_02(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x00e20001 #line 62 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" Return(STATE_CURRENT,EVoid()); #line 62 "D:/SE1_GPL/Sources/EntitiesMP/MessageHolder.es" return TRUE; ASSERT(FALSE); return TRUE;};