/* * This file is generated by Entity Class Compiler, (c) CroTeam 1997-98 */ #line 4 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" #include "StdH.h" #include "EntitiesMP/BackgroundViewer.h" #include "EntitiesMP/WorldSettingsController.h" #include "EntitiesMP/Lightning.h" #include #include void CStormController::SetDefaultProperties(void) { m_penwsc = NULL; m_strName = "Storm controller"; m_fNextLightningDelay = 0.0f; m_bStormOn = FALSE ; m_fNextLightningStrike = 0.0f; m_penLightning00 = NULL; m_penLightning01 = NULL; m_penLightning02 = NULL; m_penLightning03 = NULL; m_penLightning04 = NULL; m_penLightning05 = NULL; m_penLightning06 = NULL; m_penLightning07 = NULL; m_penLightning08 = NULL; m_penLightning09 = NULL; m_penLightning10 = NULL; m_penLightning11 = NULL; m_penLightning12 = NULL; m_penLightning13 = NULL; m_penLightning14 = NULL; m_penLightning15 = NULL; m_penLightning16 = NULL; m_penLightning17 = NULL; m_penLightning18 = NULL; m_penLightning19 = NULL; m_tmStormAppearTime = 10.0f; m_tmStormDisappearTime = 10.0f; m_fFirstLightningDelay = 10.0f; m_fMaxLightningPeriod = 10.0f; m_fMinLightningPeriod = 1.0f; m_fMaxStormPowerTime = 120.0f; m_colBlendStart = COLOR(C_WHITE | CT_TRANSPARENT ); m_colBlendStop = COLOR(C_WHITE | CT_OPAQUE ); m_colShadeStart = COLOR(C_WHITE | CT_OPAQUE ); m_colShadeStop = COLOR(C_GRAY | CT_OPAQUE ); CRationalEntity::SetDefaultProperties(); } #line 61 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" void CStormController::CheckOneLightningTarget(CEntityPointer & pen) #line 62 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 63 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(pen != NULL && ! IsOfClass (pen , "Lightning")) #line 64 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 65 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" WarningMessage ("Target '%s' is not of class Lightning!" , pen -> GetName ()); #line 66 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" pen = NULL ; #line 67 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 68 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 71 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" INDEX CStormController::GetLightningsCount(void)const #line 72 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 74 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning00 == NULL ){return 0;}; #line 75 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning01 == NULL ){return 1;}; #line 76 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning02 == NULL ){return 2;}; #line 77 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning03 == NULL ){return 3;}; #line 78 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning04 == NULL ){return 4;}; #line 79 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning05 == NULL ){return 5;}; #line 80 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning06 == NULL ){return 6;}; #line 81 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning07 == NULL ){return 7;}; #line 82 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning08 == NULL ){return 8;}; #line 83 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning09 == NULL ){return 9;}; #line 84 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning10 == NULL ){return 10;}; #line 85 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning11 == NULL ){return 11;}; #line 86 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning12 == NULL ){return 12;}; #line 87 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning13 == NULL ){return 13;}; #line 88 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning14 == NULL ){return 14;}; #line 89 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning15 == NULL ){return 15;}; #line 90 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning16 == NULL ){return 16;}; #line 91 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning17 == NULL ){return 17;}; #line 92 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penLightning18 == NULL ){return 18;}; #line 93 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return 20; #line 94 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } BOOL CStormController:: #line 97 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Storm(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT STATE_CStormController_Storm ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CStormController::Storm expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; #line 100 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" SetTimerAfter(10.0f); Jump(STATE_CURRENT, 0x025e0001, FALSE, EBegin());return TRUE;}BOOL CStormController::H0x025e0001_Storm_01(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x025e0001 switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x025e0002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CStormController::H0x025e0002_Storm_02(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e0002 ; #line 101 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_fNextLightningStrike = m_tmStormAppearTime + m_fFirstLightningDelay ; #line 102 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Jump(STATE_CURRENT, STATE_CStormController_StormInternal, TRUE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};BOOL CStormController:: #line 105 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" StormInternal(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT STATE_CStormController_StormInternal ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CStormController::StormInternal expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; #line 107 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Jump(STATE_CURRENT,0x025e000a, FALSE, EInternal());return TRUE;}BOOL CStormController::H0x025e000a_StormInternal_07(const CEntityEvent &__eeInput) #line 109 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e000a if(!(m_bStormOn && #line 108 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" _pTimer -> CurrentTick () < ((CWorldSettingsController *) & * m_penwsc ) -> m_tmStormEnd + m_tmStormDisappearTime )){ Jump(STATE_CURRENT,0x025e000b, FALSE, EInternal());return TRUE;} #line 110 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Jump(STATE_CURRENT,0x025e0006, FALSE, EInternal());return TRUE;}BOOL CStormController::H0x025e0006_StormInternal_03(const CEntityEvent &__eeInput) #line 113 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e0006 if(!(_pTimer -> CurrentTick () < m_fNextLightningStrike && #line 111 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" _pTimer -> CurrentTick () < ((CWorldSettingsController *) & * m_penwsc ) -> m_tmStormEnd + m_tmStormDisappearTime && #line 112 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_bStormOn )){ Jump(STATE_CURRENT,0x025e0007, FALSE, EInternal());return TRUE;} #line 115 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" SetTimerAfter(_pTimer -> TickQuantum ); Jump(STATE_CURRENT, 0x025e0004, FALSE, EBegin());return TRUE;}BOOL CStormController::H0x025e0004_StormInternal_01(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x025e0004 switch(__eeInput.ee_slEvent) #line 116 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" {case(EVENTCODE_EBegin): #line 118 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" {const EBegin&e= (EBegin&)__eeInput; #line 119 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return TRUE; #line 120 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }ASSERT(FALSE);break;case(EVENTCODE_EEnvironmentStop): #line 122 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" {const EEnvironmentStop&e= (EEnvironmentStop&)__eeInput; #line 123 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_fNextLightningStrike += 1.0f; #line 124 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return TRUE; #line 125 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }ASSERT(FALSE);break;case(EVENTCODE_ETimer):{const ETimer&e= (ETimer&)__eeInput; UnsetTimer();Jump(STATE_CURRENT,0x025e0005, FALSE, EInternal());return TRUE;}ASSERT(FALSE);break;default: return FALSE; break; #line 127 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }return TRUE;}BOOL CStormController::H0x025e0005_StormInternal_02(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e0005 Jump(STATE_CURRENT,0x025e0006, FALSE, EInternal());return TRUE; #line 128 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }BOOL CStormController::H0x025e0007_StormInternal_04(const CEntityEvent &__eeInput) { ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e0007 #line 129 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" SetTimerAfter(_pTimer -> TickQuantum ); Jump(STATE_CURRENT, 0x025e0008, FALSE, EBegin());return TRUE;}BOOL CStormController::H0x025e0008_StormInternal_05(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x025e0008 switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x025e0009, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CStormController::H0x025e0009_StormInternal_06(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e0009 ; #line 132 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" FLOAT fLightningStart = ((CWorldSettingsController *) & * m_penwsc ) -> m_tmStormStart + m_fFirstLightningDelay ; #line 133 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" FLOAT fLightningMax = fLightningStart + m_fMaxStormPowerTime ; #line 134 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" FLOAT fRatio ; #line 136 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(_pTimer -> CurrentTick () > ((CWorldSettingsController *) & * m_penwsc ) -> m_tmStormEnd - m_tmStormDisappearTime ) #line 137 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 138 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_bStormOn = FALSE ; #line 139 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 140 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" else #line 141 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 143 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(_pTimer -> CurrentTick () < fLightningMax ) #line 144 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 145 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" fRatio = CalculateRatio (_pTimer -> CurrentTick () , fLightningStart , fLightningMax , 1.0f , 0.0f); #line 146 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 148 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" else #line 149 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 150 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" fRatio = 1; #line 151 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 152 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" FLOAT tmPeriod = (m_fMaxLightningPeriod - m_fMinLightningPeriod ) * (1.0f - fRatio ); #line 153 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" FLOAT fNextLighting = m_fMinLightningPeriod + tmPeriod * (1.0f + (FRnd () - 0.5f) * 0.25f); #line 154 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_fNextLightningStrike = _pTimer -> CurrentTick () + fNextLighting ; #line 157 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" INDEX ctLightnings = GetLightningsCount (); #line 159 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(ctLightnings != 0) #line 160 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 162 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CLightning * penLightning = (CLightning *) & * (& m_penLightning00 ) [ IRnd () % ctLightnings ]; #line 163 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" SendToTarget (penLightning , EET_TRIGGER ); #line 164 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 165 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }Jump(STATE_CURRENT,0x025e000a, FALSE, EInternal());return TRUE; #line 166 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }BOOL CStormController::H0x025e000b_StormInternal_08(const CEntityEvent &__eeInput) { ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e000b #line 167 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_bStormOn = FALSE ; #line 168 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Return(STATE_CURRENT,EReturn ()); #line 168 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return TRUE; ASSERT(FALSE); return TRUE;};BOOL CStormController:: #line 171 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Main(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT STATE_CStormController_Main ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CStormController::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; #line 174 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning00 ); #line 175 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning01 ); #line 176 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning02 ); #line 177 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning03 ); #line 178 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning04 ); #line 179 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning05 ); #line 180 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning06 ); #line 181 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning07 ); #line 182 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning08 ); #line 183 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning09 ); #line 184 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning10 ); #line 185 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning11 ); #line 186 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning12 ); #line 187 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning13 ); #line 188 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning14 ); #line 189 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning15 ); #line 190 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning16 ); #line 191 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning17 ); #line 192 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning18 ); #line 193 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CheckOneLightningTarget (m_penLightning19 ); #line 196 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" InitAsEditorModel (); #line 197 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" SetPhysicsFlags (EPF_MODEL_IMMATERIAL ); #line 198 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" SetCollisionFlags (ECF_IMMATERIAL ); #line 201 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" SetModel (MODEL_STORM_CONTROLLER ); #line 202 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" SetModelMainTexture (TEXTURE_STORM_CONTROLLER ); #line 205 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" SetTimerAfter(0.1f); Jump(STATE_CURRENT, 0x025e000c, FALSE, EBegin());return TRUE;}BOOL CStormController::H0x025e000c_Main_01(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x025e000c switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x025e000d, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CStormController::H0x025e000d_Main_02(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e000d ; #line 208 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CBackgroundViewer * penBcgViewer = (CBackgroundViewer *) GetWorld () -> GetBackgroundViewer (); #line 209 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(penBcgViewer == NULL ) #line 210 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 212 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Return(STATE_CURRENT,EVoid()); #line 212 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return TRUE; #line 213 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 216 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_penwsc = penBcgViewer -> m_penWorldSettingsController ; #line 217 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_penwsc == NULL ) #line 218 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 220 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Return(STATE_CURRENT,EVoid()); #line 220 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return TRUE; #line 221 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 224 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(! IsOfClass (m_penwsc , "WorldSettingsController")) #line 225 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 227 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Return(STATE_CURRENT,EVoid()); #line 227 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return TRUE; #line 228 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 230 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" CWorldSettingsController * pwsc = (CWorldSettingsController *) & * m_penwsc ; #line 231 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" pwsc -> m_colBlendStart = m_colBlendStart ; #line 232 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" pwsc -> m_colBlendStop = m_colBlendStop ; #line 233 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" pwsc -> m_colShadeStart = m_colShadeStart ; #line 234 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" pwsc -> m_colShadeStop = m_colShadeStop ; #line 235 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" pwsc -> m_tmStormAppearTime = m_tmStormAppearTime ; #line 236 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" pwsc -> m_tmStormDisappearTime = m_tmStormDisappearTime ; #line 238 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_bStormOn = FALSE ; #line 239 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Jump(STATE_CURRENT,0x025e0010, FALSE, EInternal());return TRUE;}BOOL CStormController::H0x025e0010_Main_05(const CEntityEvent &__eeInput) #line 240 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e0010 if(!(TRUE )){ Jump(STATE_CURRENT,0x025e0011, FALSE, EInternal());return TRUE;} #line 241 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" SetTimerAt(THINKTIME_NEVER); Jump(STATE_CURRENT, 0x025e000e, FALSE, EBegin());return TRUE;}BOOL CStormController::H0x025e000e_Main_03(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x025e000e switch(__eeInput.ee_slEvent) #line 242 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" {case(EVENTCODE_EEnvironmentStart): #line 245 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" {const EEnvironmentStart&eEnvironmentStart= (EEnvironmentStart&)__eeInput; #line 246 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" TIME tmNow = _pTimer -> CurrentTick (); #line 247 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" ((CWorldSettingsController *) & * m_penwsc ) -> m_tmStormStart = tmNow - m_tmStormAppearTime ; #line 248 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" ((CWorldSettingsController *) & * m_penwsc ) -> m_tmStormEnd = 1e6; #line 249 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_bStormOn = TRUE ; #line 250 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_fNextLightningStrike = _pTimer -> CurrentTick () + 2.0f; #line 251 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Call(STATE_CURRENT, STATE_CStormController_StormInternal, TRUE, EVoid());return TRUE; #line 252 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return TRUE; #line 253 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }ASSERT(FALSE);break;case(EVENTCODE_EStart): #line 255 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" {const EStart&eStart= (EStart&)__eeInput; #line 256 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(! m_bStormOn ) #line 257 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 258 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" TIME tmNow = _pTimer -> CurrentTick (); #line 259 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" ((CWorldSettingsController *) & * m_penwsc ) -> m_tmStormStart = tmNow ; #line 260 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" ((CWorldSettingsController *) & * m_penwsc ) -> m_tmStormEnd = 1e6; #line 261 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" m_bStormOn = TRUE ; #line 262 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" Call(STATE_CURRENT, STATE_CStormController_Storm, TRUE, EVoid());return TRUE; #line 263 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 264 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return TRUE; #line 265 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }ASSERT(FALSE);break;case(EVENTCODE_EStop): #line 267 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" {const EStop&eStop= (EStop&)__eeInput; #line 268 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" if(m_bStormOn ) #line 269 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 270 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" TIME tmNow = _pTimer -> CurrentTick (); #line 271 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" ((CWorldSettingsController *) & * m_penwsc ) -> m_tmStormEnd = tmNow ; #line 272 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" } #line 273 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return TRUE; #line 274 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }ASSERT(FALSE);break;default: #line 276 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" { #line 277 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" return TRUE; #line 278 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }ASSERT(FALSE);break; #line 279 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }return TRUE;}BOOL CStormController::H0x025e000f_Main_04(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e000f ;Jump(STATE_CURRENT,0x025e0010, FALSE, EInternal());return TRUE; #line 280 "D:/SE1_GPL/Sources/EntitiesMP/StormController.es" }BOOL CStormController::H0x025e0011_Main_06(const CEntityEvent &__eeInput) { ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x025e0011 ASSERT(FALSE); return TRUE;};