Serious-Engine/Sources/EntitiesMP/ExotechLarvaCharger.cpp
2016-03-11 15:57:17 +02:00

350 lines
18 KiB
C++

/*
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
*/
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
#include "StdH.h"
#include "ModelsMP/Enemies/ExotechLarva/Charger/FloorCharger.h"
#include <EntitiesMP/ExotechLarvaCharger.h>
#include <EntitiesMP/ExotechLarvaCharger_tables.h>
CEntityEvent *EActivateBeam::MakeCopy(void) { CEntityEvent *peeCopy = new EActivateBeam(*this); return peeCopy;}
EActivateBeam::EActivateBeam() : CEntityEvent(EVENTCODE_EActivateBeam) {;
ClearToDefault(bTurnOn);
};
void CExotechLarvaCharger::SetDefaultProperties(void) {
m_bActive = TRUE ;
m_bBeamActive = FALSE ;
m_fStretch = 1.0f;
m_strName = "ExotechLarva Floor Charger";
m_rSound = 100.0f;
m_penBattery01 = NULL;
m_penBattery02 = NULL;
m_penBattery03 = NULL;
m_penBattery04 = NULL;
m_penBattery05 = NULL;
m_penBattery06 = NULL;
m_bCustomShading = FALSE ;
m_aShadingDirection = ANGLE3D(AngleDeg (45.0f) , AngleDeg (45.0f) , AngleDeg (45.0f));
m_colLight = C_WHITE ;
m_colAmbient = C_BLACK ;
m_soSound.SetOwner(this);
m_soSound.Stop_internal();
CRationalEntity::SetDefaultProperties();
}
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
BOOL CExotechLarvaCharger::IsTargetValid(SLONG slPropertyOffset,CEntity * penTarget)
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
{
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(slPropertyOffset == offsetof (CExotechLarvaCharger , m_penBattery01 ) ||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
slPropertyOffset == offsetof (CExotechLarvaCharger , m_penBattery02 ) ||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
slPropertyOffset == offsetof (CExotechLarvaCharger , m_penBattery03 ) ||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
slPropertyOffset == offsetof (CExotechLarvaCharger , m_penBattery04 ) ||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
slPropertyOffset == offsetof (CExotechLarvaCharger , m_penBattery05 ) ||
#line 70 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
slPropertyOffset == offsetof (CExotechLarvaCharger , m_penBattery06 ))
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
{
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(IsOfClass (penTarget , "ExotechLarvaBattery")){return TRUE ;}
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
else {return FALSE ;}
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
return CEntity :: IsTargetValid (slPropertyOffset , penTarget );
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
void CExotechLarvaCharger::Precache(void) {
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
CRationalEntity :: Precache ();
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
PrecacheModel (MODEL_ELECTRICITY );
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
PrecacheTexture (TEXTURE_ELECTRICITY );
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
PrecacheModel (MODEL_BEAM );
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
PrecacheTexture (TEXTURE_BEAM );
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
PrecacheSound (SOUND_HUM );
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
PrecacheSound (SOUND_SHUTDOWN );
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
BOOL CExotechLarvaCharger::AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient)
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
{
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(m_bCustomShading )
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
{
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
colLight = m_colLight ;
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
colAmbient = m_colAmbient ;
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
AnglesToDirectionVector (m_aShadingDirection , vLightDirection );
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
vLightDirection = - vLightDirection ;
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
return TRUE ;
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
void CExotechLarvaCharger::UpdateOperationalState(void) {
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
CEntityPointer * penFirst = & m_penBattery01 ;
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
for(INDEX i = 0;i < 6;i ++){
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
CExotechLarvaBattery * penBattery = (CExotechLarvaBattery *) & (* penFirst [ i ]);
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(penBattery ){
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(penBattery -> m_bActive ){
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
m_bActive = TRUE ;
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
return ;
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
m_bActive = FALSE ;
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
EActivateBeam eab ;
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
eab . bTurnOn = FALSE ;
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
SendEvent (eab );
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
PlaySound (m_soSound , SOUND_SHUTDOWN , SOF_3D );
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
RemoveAttachmentFromModel (* GetModelObject () , FLOORCHARGER_ATTACHMENT_ELECTRICITY );
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
void CExotechLarvaCharger::ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection)
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
{
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
NOTHING ;
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
void CExotechLarvaCharger::RenderParticles(void)
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
{
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(m_bBeamActive )
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
{
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
CEntityPointer * penFirst = & m_penBattery01 ;
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
for(INDEX i = 0;i < 6;i ++){
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
CExotechLarvaBattery * penBattery = (CExotechLarvaBattery *) & (* penFirst [ i ]);
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(penBattery ){
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(penBattery -> m_bActive ){
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
FLOAT tmNow = _pTimer -> GetLerpedCurrentTick ();
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
Particles_Ghostbuster (GetPlacement () . pl_PositionVector + FLOAT3D (0.0f , 0.2f , 0.0f) ,
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
penBattery -> GetPlacement () . pl_PositionVector + FLOAT3D (0.0f , 0.2f , 0.0f) ,
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
32 , 1.0f);
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
Particles_ModelGlow (penBattery , 1e6 , PT_STAR05 , 1.0f + 0.5f * sin (4.0f * tmNow ) , 4 , 0.0f , C_WHITE );
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
BOOL CExotechLarvaCharger::
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
ActivateBeam(const CEntityEvent &__eeInput) {
#undef STATE_CURRENT
#define STATE_CURRENT STATE_CExotechLarvaCharger_ActivateBeam
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CExotechLarvaCharger::ActivateBeam expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
AddAttachmentToModel (this , * GetModelObject () , FLOORCHARGER_ATTACHMENT_BEAM , MODEL_BEAM , TEXTURE_BEAM , 0 , 0 , 0);
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
CModelObject & amo = GetModelObject () -> GetAttachmentModel (FLOORCHARGER_ATTACHMENT_BEAM ) -> amo_moModelObject ;
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
amo . StretchModelRelative (FLOAT3D (m_fStretch , m_fStretch , m_fStretch ));
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
m_bBeamActive = TRUE ;
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
Return(STATE_CURRENT,EVoid());
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CExotechLarvaCharger::
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
DeactivateBeam(const CEntityEvent &__eeInput) {
#undef STATE_CURRENT
#define STATE_CURRENT STATE_CExotechLarvaCharger_DeactivateBeam
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CExotechLarvaCharger::DeactivateBeam expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
RemoveAttachmentFromModel (* GetModelObject () , FLOORCHARGER_ATTACHMENT_BEAM );
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
m_bBeamActive = FALSE ;
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
Return(STATE_CURRENT,EVoid());
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CExotechLarvaCharger::
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
Main(const CEntityEvent &__eeInput) {
#undef STATE_CURRENT
#define STATE_CURRENT STATE_CExotechLarvaCharger_Main
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CExotechLarvaCharger::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
InitAsModel ();
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
SetPhysicsFlags (EPF_MODEL_FIXED );
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
SetCollisionFlags (ECF_IMMATERIAL );
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
SetFlags (GetFlags () | ENF_ALIVE );
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
SetModel (MODEL_CHARGER );
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
SetModelMainTexture (TEXTURE_CHARGER );
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
GetModelObject () -> StretchModel (FLOAT3D (m_fStretch , m_fStretch , m_fStretch ));
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
ModelChangeNotify ();
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
SetTimerAfter(0.05f);
Jump(STATE_CURRENT, 0x015f0003, FALSE, EBegin());return TRUE;}BOOL CExotechLarvaCharger::H0x015f0003_Main_01(const CEntityEvent &__eeInput) {
#undef STATE_CURRENT
#define STATE_CURRENT 0x015f0003
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x015f0004, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CExotechLarvaCharger::H0x015f0004_Main_02(const CEntityEvent &__eeInput){
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
#undef STATE_CURRENT
#define STATE_CURRENT 0x015f0004
;
#line 198 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
m_soSound . Set3DParameters (m_rSound , m_rSound / 2.0f , 2.0f , 1.0f);
#line 199 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
m_bActive = FALSE ;
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
m_bBeamActive = FALSE ;
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
SetTimerAt(THINKTIME_NEVER);
Jump(STATE_CURRENT, 0x015f0005, FALSE, EBegin());return TRUE;}BOOL CExotechLarvaCharger::H0x015f0005_Main_03(const CEntityEvent &__eeInput) {
#undef STATE_CURRENT
#define STATE_CURRENT 0x015f0005
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
return TRUE;}ASSERT(FALSE);break;case(EVENTCODE_ETrigger):{const ETrigger&e= (ETrigger&)__eeInput;
UnsetTimer();Jump(STATE_CURRENT,0x015f0006, FALSE, EInternal());return TRUE;}ASSERT(FALSE);break;default:{return TRUE;}ASSERT(FALSE);break;
#line 207 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}return TRUE;}BOOL CExotechLarvaCharger::H0x015f0006_Main_04(const CEntityEvent &__eeInput){
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
#undef STATE_CURRENT
#define STATE_CURRENT 0x015f0006
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
UpdateOperationalState ();
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(m_bActive ){
#line 211 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
AddAttachmentToModel (this , * GetModelObject () , FLOORCHARGER_ATTACHMENT_ELECTRICITY , MODEL_ELECTRICITY , TEXTURE_ELECTRICITY , 0 , 0 , 0);
#line 212 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
CAttachmentModelObject * amo = GetModelObject () -> GetAttachmentModel (FLOORCHARGER_ATTACHMENT_ELECTRICITY );
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
amo -> amo_moModelObject . StretchModel (FLOAT3D (m_fStretch , m_fStretch , m_fStretch ));
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
PlaySound (m_soSound , SOUND_HUM , SOF_3D | SOF_LOOP );
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
Jump(STATE_CURRENT,0x015f0009, FALSE, EInternal());return TRUE;}BOOL CExotechLarvaCharger::H0x015f0009_Main_07(const CEntityEvent &__eeInput){
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
#undef STATE_CURRENT
#define STATE_CURRENT 0x015f0009
if(!(TRUE )){ Jump(STATE_CURRENT,0x015f000a, FALSE, EInternal());return TRUE;}
#line 218 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
SetTimerAfter(0.5f);
Jump(STATE_CURRENT, 0x015f0007, FALSE, EBegin());return TRUE;}BOOL CExotechLarvaCharger::H0x015f0007_Main_05(const CEntityEvent &__eeInput) {
#undef STATE_CURRENT
#define STATE_CURRENT 0x015f0007
switch(__eeInput.ee_slEvent)
#line 219 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
{case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
return TRUE;
#line 222 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}ASSERT(FALSE);break;case(EVENTCODE_ETimer):{const ETimer&e= (ETimer&)__eeInput;
#line 224 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(m_bActive ){
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
UpdateOperationalState ();
#line 226 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 227 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
UnsetTimer();Jump(STATE_CURRENT,0x015f0008, FALSE, EInternal());return TRUE;
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}ASSERT(FALSE);break;case(EVENTCODE_EActivateBeam):{const EActivateBeam&eab= (EActivateBeam&)__eeInput;
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
if(eab . bTurnOn == TRUE && m_bBeamActive != TRUE ){
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
Call(STATE_CURRENT, STATE_CExotechLarvaCharger_ActivateBeam, TRUE, EVoid());return TRUE;
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}else if(eab . bTurnOn == FALSE && m_bBeamActive != FALSE ){
#line 233 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
Call(STATE_CURRENT, STATE_CExotechLarvaCharger_DeactivateBeam, TRUE, EVoid());return TRUE;
#line 234 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}
#line 235 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
return TRUE;
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}ASSERT(FALSE);break;default: return FALSE; break;
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}return TRUE;}BOOL CExotechLarvaCharger::H0x015f0008_Main_06(const CEntityEvent &__eeInput){
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
#undef STATE_CURRENT
#define STATE_CURRENT 0x015f0008
Jump(STATE_CURRENT,0x015f0009, FALSE, EInternal());return TRUE;
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
}BOOL CExotechLarvaCharger::H0x015f000a_Main_08(const CEntityEvent &__eeInput) {
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
#undef STATE_CURRENT
#define STATE_CURRENT 0x015f000a
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
Return(STATE_CURRENT,EVoid());
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/ExotechLarvaCharger.es"
return TRUE; ASSERT(FALSE); return TRUE;};