mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
409 lines
19 KiB
C++
409 lines
19 KiB
C++
/*
|
|
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
*/
|
|
|
|
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
|
|
#include "StdH.h"
|
|
|
|
#include <EntitiesMP/ParticlesHolder.h>
|
|
#include <EntitiesMP/ParticlesHolder_tables.h>
|
|
void CParticlesHolder::SetDefaultProperties(void) {
|
|
m_phtType = PHT_SPIRAL ;
|
|
m_ptTexture = PT_STAR01 ;
|
|
m_ctCount = 16;
|
|
m_fStretchAll = 1.0f;
|
|
m_fStretchX = 1.0f;
|
|
m_fStretchY = 1.0f;
|
|
m_fStretchZ = 1.0f;
|
|
m_strName = "";
|
|
m_strDescription = "";
|
|
m_bBackground = FALSE ;
|
|
m_bTargetable = FALSE ;
|
|
m_fSize = 0.1f;
|
|
m_fParam1 = 1.0f;
|
|
m_fParam2 = 1.0f;
|
|
m_fParam3 = 1.0f;
|
|
m_bActive = TRUE ;
|
|
m_fActivateTime = 0.0f;
|
|
m_fDeactivateTime = -10000.0f;
|
|
m_fMipFactorDisappear = 8.0f;
|
|
CMovableModelEntity::SetDefaultProperties();
|
|
}
|
|
|
|
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
void CParticlesHolder::RenderParticles(void)
|
|
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{
|
|
#line 70 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(! m_bActive )
|
|
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{
|
|
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
return ;
|
|
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
switch(m_phtType )
|
|
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{
|
|
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_SPIRAL :
|
|
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_Spiral (this , m_fStretchAll , m_fStretchAll / 2 , m_ptTexture , m_ctCount );
|
|
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_EMANATE :
|
|
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_Emanate (this , m_fStretchAll , m_fStretchAll / 2 , m_ptTexture , m_ctCount , m_fMipFactorDisappear );
|
|
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_STARDUST :
|
|
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_Stardust (this , m_fStretchAll , m_fStretchAll / 2 , m_ptTexture , m_ctCount );
|
|
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_ATOMIC :
|
|
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_Atomic (this , m_fStretchAll , m_fStretchAll / 2 , m_ptTexture , m_ctCount );
|
|
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_RISING :
|
|
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_Rising (this , m_fActivateTime , m_fDeactivateTime , m_fStretchAll , m_fStretchX , m_fStretchY , m_fStretchZ , m_fSize , m_ptTexture , m_ctCount );
|
|
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_FOUNTAIN :
|
|
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_Fountain (this , m_fStretchAll , m_fStretchAll / 2 , m_ptTexture , m_ctCount );
|
|
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_SMOKE :
|
|
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_GrenadeTrail (this );
|
|
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_BLOOD :
|
|
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_BloodTrail (this );
|
|
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_EMANATEPLANE :
|
|
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_EmanatePlane (this ,
|
|
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fStretchX , m_fStretchY , m_fStretchZ , m_fSize ,
|
|
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fParam1 , m_fParam2 , m_ptTexture , m_ctCount , m_fMipFactorDisappear );
|
|
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_SANDFLOW :
|
|
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_SandFlow (this , m_fStretchAll , m_fSize , m_fParam1 , m_fActivateTime , m_fDeactivateTime , m_ctCount );
|
|
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_WATERFLOW :
|
|
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_WaterFlow (this , m_fStretchAll , m_fSize , m_fParam1 , m_fActivateTime , m_fDeactivateTime , m_ctCount );
|
|
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_LAVAFLOW :
|
|
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_LavaFlow (this , m_fStretchAll , m_fSize , m_fParam1 , m_fActivateTime , m_fDeactivateTime , m_ctCount );
|
|
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_LAVAERUPTING :
|
|
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_LavaErupting (this , m_fStretchAll , m_fSize , m_fStretchX , m_fStretchY , m_fStretchZ , m_fActivateTime );
|
|
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_WATERFALLFOAM :
|
|
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_WaterfallFoam (this ,
|
|
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fStretchX , m_fStretchY , m_fStretchZ , m_fSize ,
|
|
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fParam1 , m_fParam2 , m_fParam3 , m_ctCount );
|
|
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_CHIMNEYSMOKE :
|
|
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_ChimneySmoke (this , m_ctCount , m_fStretchAll , m_fMipFactorDisappear );
|
|
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_ROCKETMOTOR :
|
|
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_RocketMotorBurning (this , m_ctCount ,
|
|
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
FLOAT3D (m_fStretchX , m_fStretchY , m_fStretchZ ) , m_fSize , m_ctCount );
|
|
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_COLLECT_ENERGY :
|
|
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_CollectEnergy (this , m_fActivateTime , m_fActivateTime + 2.0f);
|
|
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_TWISTER :
|
|
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_Twister (this , 1.0f , 0.0f , 1e6 , 1.0f);
|
|
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
case PHT_WATERFALL :
|
|
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Particles_Waterfall (this , m_ctCount , m_fStretchAll , m_fStretchX , m_fStretchY , m_fStretchZ ,
|
|
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fSize , m_fMipFactorDisappear , m_fParam1 );
|
|
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
break ;
|
|
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
|
|
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
BOOL CParticlesHolder::IsTargetable(void)const
|
|
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{
|
|
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
return m_bTargetable ;
|
|
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
|
|
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
void CParticlesHolder::MirrorAndStretch(FLOAT fStretch,BOOL bMirrorX)
|
|
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{
|
|
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fStretchAll *= fStretch ;
|
|
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(bMirrorX ){
|
|
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fStretchX = - m_fStretchX ;
|
|
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
|
|
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
void CParticlesHolder::StretchModel(void) {
|
|
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(Abs (m_fStretchX ) < 0.01f){m_fStretchX = 0.01f;}
|
|
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(Abs (m_fStretchY ) < 0.01f){m_fStretchY = 0.01f;}
|
|
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(Abs (m_fStretchZ ) < 0.01f){m_fStretchZ = 0.01f;}
|
|
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(m_fStretchAll < 0.01f){m_fStretchAll = 0.01f;}
|
|
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(Abs (m_fStretchX ) > 100.0f){m_fStretchX = 100.0f * Sgn (m_fStretchX );}
|
|
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(Abs (m_fStretchY ) > 100.0f){m_fStretchY = 100.0f * Sgn (m_fStretchY );}
|
|
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(Abs (m_fStretchZ ) > 100.0f){m_fStretchZ = 100.0f * Sgn (m_fStretchZ );}
|
|
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(m_fStretchAll > 100.0f){m_fStretchAll = 100.0f;}
|
|
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
GetModelObject () -> StretchModel (FLOAT3D (
|
|
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fStretchAll * m_fStretchX ,
|
|
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fStretchAll * m_fStretchY ,
|
|
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fStretchAll * m_fStretchZ ));
|
|
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
ModelChangeNotify ();
|
|
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
|
|
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
CPlacement3D CParticlesHolder::GetLerpedPlacement(void)const
|
|
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{
|
|
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
return CEntity :: GetLerpedPlacement ();
|
|
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
|
|
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
SLONG CParticlesHolder::GetUsedMemory(void)
|
|
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{
|
|
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
SLONG slUsedMemory = sizeof (CParticlesHolder ) - sizeof (CMovableModelEntity ) + CMovableModelEntity :: GetUsedMemory ();
|
|
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
slUsedMemory += m_strName . Length ();
|
|
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
slUsedMemory += m_strDescription . Length ();
|
|
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
return slUsedMemory ;
|
|
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
BOOL CParticlesHolder::
|
|
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Active(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT STATE_CParticlesHolder_Active
|
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CParticlesHolder::Active expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
#line 199 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_bActive = TRUE ;
|
|
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Jump(STATE_CURRENT,0x00df0003, FALSE, EInternal());return TRUE;}BOOL CParticlesHolder::H0x00df0003_Active_03(const CEntityEvent &__eeInput)
|
|
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x00df0003
|
|
if(!(TRUE )){ Jump(STATE_CURRENT,0x00df0004, FALSE, EInternal());return TRUE;}
|
|
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
SetTimerAfter(m_fParam2 + FRnd () * m_fParam3 );
|
|
Jump(STATE_CURRENT, 0x00df0001, FALSE, EBegin());return TRUE;}BOOL CParticlesHolder::H0x00df0001_Active_01(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x00df0001
|
|
switch(__eeInput.ee_slEvent)
|
|
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{case(EVENTCODE_ETimer):
|
|
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{const ETimer&e= (ETimer&)__eeInput;
|
|
|
|
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(m_phtType == PHT_LAVAERUPTING )
|
|
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{
|
|
#line 211 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fActivateTime = _pTimer -> CurrentTick ();
|
|
#line 212 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
UnsetTimer();Jump(STATE_CURRENT,0x00df0002, FALSE, EInternal());return TRUE;
|
|
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}ASSERT(FALSE);break;case(EVENTCODE_EBegin):
|
|
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{const EBegin&e= (EBegin&)__eeInput;
|
|
|
|
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
return TRUE;
|
|
#line 218 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}ASSERT(FALSE);break;case(EVENTCODE_EDeactivate):
|
|
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{const EDeactivate&e= (EDeactivate&)__eeInput;
|
|
|
|
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fDeactivateTime = _pTimer -> CurrentTick ();
|
|
#line 222 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Jump(STATE_CURRENT, STATE_CParticlesHolder_Inactive, TRUE, EVoid());return TRUE;
|
|
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}ASSERT(FALSE);break;default: return FALSE; break;
|
|
#line 224 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}return TRUE;}BOOL CParticlesHolder::H0x00df0002_Active_02(const CEntityEvent &__eeInput){
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x00df0002
|
|
Jump(STATE_CURRENT,0x00df0003, FALSE, EInternal());return TRUE;
|
|
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}BOOL CParticlesHolder::H0x00df0004_Active_04(const CEntityEvent &__eeInput) {
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x00df0004
|
|
ASSERT(FALSE); return TRUE;};BOOL CParticlesHolder::
|
|
#line 229 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Inactive(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT STATE_CParticlesHolder_Inactive
|
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CParticlesHolder::Inactive expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_bActive = FALSE ;
|
|
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
SetTimerAt(THINKTIME_NEVER);
|
|
Jump(STATE_CURRENT, 0x00df0006, FALSE, EBegin());return TRUE;}BOOL CParticlesHolder::H0x00df0006_Inactive_01(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x00df0006
|
|
switch(__eeInput.ee_slEvent)
|
|
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
return TRUE;}ASSERT(FALSE);break;case(EVENTCODE_EActivate):
|
|
#line 235 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
{const EActivate&e= (EActivate&)__eeInput;
|
|
|
|
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fActivateTime = _pTimer -> CurrentTick ();
|
|
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fDeactivateTime = _pTimer -> CurrentTick () + 10000.0f;
|
|
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Jump(STATE_CURRENT, STATE_CParticlesHolder_Active, TRUE, EVoid());return TRUE;
|
|
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}ASSERT(FALSE);break;default: return FALSE; break;
|
|
#line 240 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}return TRUE;}BOOL CParticlesHolder::H0x00df0007_Inactive_02(const CEntityEvent &__eeInput){
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x00df0007
|
|
ASSERT(FALSE); return TRUE;};BOOL CParticlesHolder::
|
|
#line 243 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Main(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT STATE_CParticlesHolder_Main
|
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CParticlesHolder::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
InitAsEditorModel ();
|
|
#line 246 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
#line 247 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
SetCollisionFlags (ECF_IMMATERIAL );
|
|
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
StretchModel ();
|
|
#line 251 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
SetModel (MODEL_TELEPORT );
|
|
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
ModelChangeNotify ();
|
|
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
SetModelMainTexture (TEXTURE_TELEPORT );
|
|
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(m_bBackground ){
|
|
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
SetFlags (GetFlags () | ENF_BACKGROUND );
|
|
#line 257 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}else {
|
|
#line 258 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
SetFlags (GetFlags () & ~ ENF_BACKGROUND );
|
|
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
en_fGravityA = 30.0f;
|
|
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
GetPitchDirection (- 90.0f , en_vGravityDir );
|
|
#line 264 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fActivateTime = 0.0f;
|
|
#line 265 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
m_fDeactivateTime = - 10000.0f;
|
|
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
if(m_bActive ){
|
|
#line 268 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Jump(STATE_CURRENT, STATE_CParticlesHolder_Active, TRUE, EVoid());return TRUE;
|
|
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}else {
|
|
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Jump(STATE_CURRENT, STATE_CParticlesHolder_Inactive, TRUE, EVoid());return TRUE;
|
|
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
}
|
|
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
Return(STATE_CURRENT,EVoid());
|
|
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/ParticlesHolder.es"
|
|
return TRUE; ASSERT(FALSE); return TRUE;}; |