mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 04:05:53 +01:00
404 lines
17 KiB
C++
404 lines
17 KiB
C++
/*
|
|
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
*/
|
|
|
|
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
|
|
#include "StdH.h"
|
|
#include "EntitiesMP/WorldSettingsController.h"
|
|
|
|
#include <EntitiesMP/ModelHolder3.h>
|
|
#include <EntitiesMP/ModelHolder3_tables.h>
|
|
#line 25 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
|
|
// #define MIPRATIO 0.003125f //(2*tan(90/2))/640
|
|
|
|
void CModelHolder3::SetDefaultProperties(void) {
|
|
m_fnModel = CTFILENAME("");
|
|
m_fStretchAll = 1.0f;
|
|
m_vStretchXYZ = FLOAT3D(1.0f , 1.0f , 1.0f);
|
|
m_strName = "";
|
|
m_strDescription = "";
|
|
m_bColliding = FALSE ;
|
|
m_stClusterShadows = SST_CLUSTER ;
|
|
m_bBackground = FALSE ;
|
|
m_bTargetable = FALSE ;
|
|
m_cstCustomShading = SCST_NONE ;
|
|
m_aShadingDirection = ANGLE3D(AngleDeg (45.0f) , AngleDeg (45.0f) , AngleDeg (45.0f));
|
|
m_colLight = C_WHITE ;
|
|
m_colAmbient = C_BLACK ;
|
|
m_bActive = TRUE ;
|
|
m_fClassificationStretch = 1.0f;
|
|
m_fMaxTessellationLevel = 0.0f;
|
|
CRationalEntity::SetDefaultProperties();
|
|
}
|
|
|
|
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
BOOL CModelHolder3::FillEntityStatistics(EntityStats * pes)
|
|
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
pes -> es_strName = m_fnModel . FileName ();
|
|
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
pes -> es_ctCount = 1;
|
|
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
pes -> es_ctAmmount = 1;
|
|
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
pes -> es_fValue = 0;
|
|
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
pes -> es_iScore = 0;
|
|
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return TRUE ;
|
|
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
|
|
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
FLOAT3D CModelHolder3::GetClassificationBoxStretch(void)
|
|
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return FLOAT3D (m_fClassificationStretch , m_fClassificationStretch , m_fClassificationStretch );
|
|
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
|
|
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
FLOAT CModelHolder3::GetMaxTessellationLevel(void)
|
|
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return m_fMaxTessellationLevel ;
|
|
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
|
|
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
void CModelHolder3::ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection)
|
|
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 299 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
|
|
#line 302 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
void * CModelHolder3::GetEntityInfo(void) {
|
|
#line 308 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return CEntity :: GetEntityInfo ();
|
|
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
|
|
#line 317 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
BOOL CModelHolder3::IsTargetable(void)const
|
|
#line 318 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return m_bTargetable ;
|
|
#line 320 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
|
|
#line 374 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
BOOL CModelHolder3::AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient)
|
|
#line 375 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 376 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
switch(m_cstCustomShading )
|
|
#line 377 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 378 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
case SCST_FULL_CUSTOMIZED :
|
|
#line 379 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 405 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
colLight = m_colLight ;
|
|
#line 406 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
colAmbient = m_colAmbient ;
|
|
#line 419 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
AnglesToDirectionVector (m_aShadingDirection , vLightDirection );
|
|
#line 420 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
vLightDirection = - vLightDirection ;
|
|
#line 421 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
break ;
|
|
#line 422 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 423 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
case SCST_CONSTANT_SHADING :
|
|
#line 424 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 426 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
UBYTE lR , lG , lB , aR , aG , aB , rR , rG , rB ;
|
|
#line 427 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
ColorToRGB (colLight , lR , lG , lB );
|
|
#line 428 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
ColorToRGB (colAmbient , aR , aG , aB );
|
|
#line 429 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
colLight = 0;
|
|
#line 430 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
rR = (UBYTE ) Clamp ((ULONG ) lR + aR , (ULONG ) 0 , (ULONG ) 255);
|
|
#line 431 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
rG = (UBYTE ) Clamp ((ULONG ) lG + aG , (ULONG ) 0 , (ULONG ) 255);
|
|
#line 432 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
rB = (UBYTE ) Clamp ((ULONG ) lB + aB , (ULONG ) 0 , (ULONG ) 255);
|
|
#line 433 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
colAmbient = RGBToColor (rR , rG , rB );
|
|
#line 434 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
break ;
|
|
#line 435 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 436 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
case SCST_NONE :
|
|
#line 437 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 439 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
break ;
|
|
#line 440 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 441 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 450 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return m_stClusterShadows != SST_NONE ;
|
|
#line 451 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
|
|
#line 454 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
void CModelHolder3::MirrorAndStretch(FLOAT fStretch,BOOL bMirrorX)
|
|
#line 455 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 456 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
m_fStretchAll *= fStretch ;
|
|
#line 457 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(bMirrorX ){
|
|
#line 458 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
m_vStretchXYZ (1) = - m_vStretchXYZ (1);
|
|
#line 459 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 460 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
|
|
#line 464 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
void CModelHolder3::StretchModel(void) {
|
|
#line 466 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(Abs (m_vStretchXYZ (1)) < 0.01f){m_vStretchXYZ (1) = 0.01f;}
|
|
#line 467 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(Abs (m_vStretchXYZ (2)) < 0.01f){m_vStretchXYZ (2) = 0.01f;}
|
|
#line 468 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(Abs (m_vStretchXYZ (3)) < 0.01f){m_vStretchXYZ (3) = 0.01f;}
|
|
#line 469 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(m_fStretchAll < 0.01f){m_fStretchAll = 0.01f;}
|
|
#line 471 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(Abs (m_vStretchXYZ (1)) > 1000.0f){m_vStretchXYZ (1) = 1000.0f * Sgn (m_vStretchXYZ (1));}
|
|
#line 472 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(Abs (m_vStretchXYZ (2)) > 1000.0f){m_vStretchXYZ (2) = 1000.0f * Sgn (m_vStretchXYZ (2));}
|
|
#line 473 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(Abs (m_vStretchXYZ (3)) > 1000.0f){m_vStretchXYZ (3) = 1000.0f * Sgn (m_vStretchXYZ (3));}
|
|
#line 474 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(m_fStretchAll > 1000.0f){m_fStretchAll = 1000.0f;}
|
|
#line 494 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
GetModelInstance () -> StretchModel (m_vStretchXYZ * m_fStretchAll );
|
|
#line 495 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
ModelChangeNotify ();
|
|
#line 496 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
|
|
#line 500 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
void CModelHolder3::InitModelHolder(void) {
|
|
#line 503 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(m_fnModel == ""){
|
|
#line 504 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
m_fnModel = CTFILENAME ("Models\\Editor\\Ska\\Axis.smc");
|
|
#line 505 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 507 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(m_bActive ){
|
|
#line 508 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
InitAsSkaModel ();
|
|
#line 509 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}else {
|
|
#line 510 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
InitAsSkaEditorModel ();
|
|
#line 511 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 513 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
BOOL bLoadOK = TRUE ;
|
|
#line 515 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
try {
|
|
#line 516 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetSkaModel_t (m_fnModel );
|
|
#line 518 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}catch (char * strError ){
|
|
#line 519 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
WarningMessage (TRANS ("Cannot load ska model '%s':\n%s") , (CTString &) m_fnModel , strError );
|
|
#line 520 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
bLoadOK = FALSE ;
|
|
#line 523 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 524 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(! bLoadOK ){
|
|
#line 525 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetSkaModel (CTFILENAME ("Models\\Editor\\Ska\\Axis.smc"));
|
|
#line 526 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 540 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
StretchModel ();
|
|
#line 541 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
ModelChangeNotify ();
|
|
#line 543 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(m_bColliding && m_bActive ){
|
|
#line 544 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetPhysicsFlags (EPF_MODEL_FIXED );
|
|
#line 545 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetCollisionFlags (ECF_MODEL_HOLDER );
|
|
#line 546 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}else {
|
|
#line 547 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
#line 548 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetCollisionFlags (ECF_IMMATERIAL );
|
|
#line 549 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 551 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
switch(m_stClusterShadows ){
|
|
#line 552 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
case SST_NONE :
|
|
#line 553 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 554 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetFlags (GetFlags () & ~ ENF_CLUSTERSHADOWS );
|
|
#line 556 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
break ;
|
|
#line 557 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 558 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
case SST_CLUSTER :
|
|
#line 559 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 560 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetFlags (GetFlags () | ENF_CLUSTERSHADOWS );
|
|
#line 562 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
break ;
|
|
#line 563 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 564 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
case SST_POLYGONAL :
|
|
#line 565 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{
|
|
#line 567 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetFlags (GetFlags () & ~ ENF_CLUSTERSHADOWS );
|
|
#line 568 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
break ;
|
|
#line 569 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 570 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 572 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(m_bBackground ){
|
|
#line 573 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetFlags (GetFlags () | ENF_BACKGROUND );
|
|
#line 574 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}else {
|
|
#line 575 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetFlags (GetFlags () & ~ ENF_BACKGROUND );
|
|
#line 576 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 599 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
m_strDescription . PrintF ("%s" , (CTString &) m_fnModel . FileName ());
|
|
#line 601 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return ;
|
|
#line 602 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
BOOL CModelHolder3::
|
|
#line 605 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
Die(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT STATE_CModelHolder3_Die
|
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CModelHolder3::Die expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
#line 608 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{FOREACHINLIST (CEntity , en_lnInParent , en_lhChildren , itenChild ){
|
|
#line 610 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
itenChild -> SendEvent (ERangeModelDestruction ());
|
|
#line 611 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}}
|
|
#line 658 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
Destroy ();
|
|
#line 659 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
Return(STATE_CURRENT,EVoid());
|
|
#line 659 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CModelHolder3::
|
|
#line 662 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
Main(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT STATE_CModelHolder3_Main
|
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CModelHolder3::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
#line 665 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
InitModelHolder ();
|
|
#line 684 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetTimerAt(THINKTIME_NEVER);
|
|
Jump(STATE_CURRENT, 0x00f20001, FALSE, EBegin());return TRUE;}BOOL CModelHolder3::H0x00f20001_Main_01(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x00f20001
|
|
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
|
|
#line 691 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return TRUE;
|
|
#line 692 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}ASSERT(FALSE);break;case(EVENTCODE_EActivate):{const EActivate&e= (EActivate&)__eeInput;
|
|
|
|
#line 695 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SwitchToModel ();
|
|
#line 696 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
m_bActive = TRUE ;
|
|
#line 697 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
if(m_bColliding ){
|
|
#line 698 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetPhysicsFlags (EPF_MODEL_FIXED );
|
|
#line 699 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetCollisionFlags (ECF_MODEL_HOLDER );
|
|
#line 700 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}
|
|
#line 701 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return TRUE;
|
|
#line 702 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}ASSERT(FALSE);break;case(EVENTCODE_EDeactivate):{const EDeactivate&e= (EDeactivate&)__eeInput;
|
|
|
|
#line 704 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SwitchToEditorModel ();
|
|
#line 705 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
#line 706 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetCollisionFlags (ECF_IMMATERIAL );
|
|
#line 707 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
m_bActive = FALSE ;
|
|
#line 708 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
#line 709 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
SetCollisionFlags (ECF_IMMATERIAL );
|
|
#line 710 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return TRUE;
|
|
#line 711 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}ASSERT(FALSE);break;case(EVENTCODE_ERangeModelDestruction):{const ERangeModelDestruction&e= (ERangeModelDestruction&)__eeInput;
|
|
|
|
#line 715 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
{FOREACHINLIST (CEntity , en_lnInParent , en_lhChildren , itenChild ){
|
|
#line 717 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
itenChild -> SendEvent (ERangeModelDestruction ());
|
|
#line 718 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}}
|
|
#line 720 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
Destroy ();
|
|
#line 721 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return TRUE;
|
|
#line 722 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}ASSERT(FALSE);break;case(EVENTCODE_EDeath):{const EDeath&e= (EDeath&)__eeInput;
|
|
|
|
#line 728 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return TRUE;
|
|
#line 729 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}ASSERT(FALSE);break;default:{
|
|
#line 760 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
return TRUE;
|
|
#line 761 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}ASSERT(FALSE);break;
|
|
#line 762 "D:/SE1_GPL/Sources/EntitiesMP/ModelHolder3.es"
|
|
}return TRUE;}BOOL CModelHolder3::H0x00f20002_Main_02(const CEntityEvent &__eeInput){
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x00f20002
|
|
; ASSERT(FALSE); return TRUE;}; |