/* * This file is generated by Entity Class Compiler, (c) CroTeam 1997-98 */ #line 4 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" #include "StdH.h" #include "EntitiesMP/WorldSettingsController.h" #include "EntitiesMP/BackgroundViewer.h" #include #include void CBlendController::SetDefaultProperties(void) { m_bctType = BCT_NONE ; CMarker::SetDefaultProperties(); } #line 41 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" BOOL CBlendController::HandleEvent(const CEntityEvent & ee) #line 42 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" { #line 44 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" CWorldSettingsController * pwsc = GetWSC (this ); #line 45 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" if(pwsc == NULL ){ #line 46 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" return FALSE ; #line 47 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" } #line 48 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" FLOAT tmNow = _pTimer -> CurrentTick (); #line 50 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" if(ee . ee_slEvent == EVENTCODE_EActivate ) #line 51 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" { #line 52 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" switch(m_bctType ) #line 53 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" { #line 54 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" case BCT_PYRAMID_PLATES : #line 55 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmPyramidPlatesStart = tmNow ; #line 56 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" break ; #line 57 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" case BCT_ACTIVATE_PLATE_1 : #line 58 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmActivatedPlate1 = tmNow ; #line 59 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmDeactivatedPlate1 = 1e6; #line 60 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" break ; #line 61 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" case BCT_ACTIVATE_PLATE_2 : #line 62 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmActivatedPlate2 = tmNow ; #line 63 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmDeactivatedPlate2 = 1e6; #line 64 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" break ; #line 65 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" case BCT_ACTIVATE_PLATE_3 : #line 66 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmActivatedPlate3 = tmNow ; #line 67 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmDeactivatedPlate3 = 1e6; #line 68 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" break ; #line 69 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" case BCT_ACTIVATE_PLATE_4 : #line 70 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmActivatedPlate4 = tmNow ; #line 71 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmDeactivatedPlate4 = 1e6; #line 72 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" break ; #line 73 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" case BCT_ACTIVATE_PYRAMID_MORPH_ROOM : #line 74 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmPyramidMorphRoomActivated = tmNow ; #line 75 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" break ; #line 76 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" } #line 77 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" } #line 78 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" else if(ee . ee_slEvent == EVENTCODE_EDeactivate ) #line 79 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" { #line 80 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" switch(m_bctType ) #line 81 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" { #line 82 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" case BCT_ACTIVATE_PLATE_1 : #line 83 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmDeactivatedPlate1 = tmNow ; #line 84 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" break ; #line 85 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" case BCT_ACTIVATE_PLATE_2 : #line 86 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmDeactivatedPlate2 = tmNow ; #line 87 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" break ; #line 88 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" case BCT_ACTIVATE_PLATE_3 : #line 89 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmDeactivatedPlate3 = tmNow ; #line 90 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" break ; #line 91 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" case BCT_ACTIVATE_PLATE_4 : #line 92 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" pwsc -> m_tmDeactivatedPlate4 = tmNow ; #line 93 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" break ; #line 94 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" } #line 95 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" } #line 96 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" return FALSE ; #line 97 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" } BOOL CBlendController:: #line 101 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" Main(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT STATE_CBlendController_Main ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBlendController::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; #line 104 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" InitAsEditorModel (); #line 105 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" SetPhysicsFlags (EPF_MODEL_IMMATERIAL ); #line 106 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" SetCollisionFlags (ECF_IMMATERIAL ); #line 109 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" SetModel (MODEL_CONTROLLER ); #line 110 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" SetModelMainTexture (TEXTURE_CONTROLLER ); #line 112 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" Return(STATE_CURRENT,EVoid()); #line 112 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es" return TRUE; ASSERT(FALSE); return TRUE;};