mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 02:20:25 +01:00
Removing generated files
This commit is contained in:
parent
89c9fc2bf9
commit
a7af6eb20b
|
@ -1,80 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/Engine/Classes/BaseEvents.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#define DECL_DLL ENGINE_API
|
|
||||||
#include <Engine/Entities/EntityEvent.h>
|
|
||||||
#include <Engine/Entities/EntityPointer.h>
|
|
||||||
#include <Engine/Math/Vector.h>
|
|
||||||
#include <Engine/Math/Plane.h>
|
|
||||||
#include <Engine/Entities/EntityProperties.h>
|
|
||||||
|
|
||||||
#include <Engine/Classes/BaseEvents.h>
|
|
||||||
#include <Engine/Classes/BaseEvents_tables.h>
|
|
||||||
CEntityEvent *EInternal::MakeCopy(void) { CEntityEvent *peeCopy = new EInternal(*this); return peeCopy;}
|
|
||||||
EInternal::EInternal() : CEntityEvent(EVENTCODE_EInternal) {;
|
|
||||||
};
|
|
||||||
CEntityEvent *EVoid::MakeCopy(void) { CEntityEvent *peeCopy = new EVoid(*this); return peeCopy;}
|
|
||||||
EVoid::EVoid() : CEntityEvent(EVENTCODE_EVoid) {;
|
|
||||||
};
|
|
||||||
CEntityEvent *EReturn::MakeCopy(void) { CEntityEvent *peeCopy = new EReturn(*this); return peeCopy;}
|
|
||||||
EReturn::EReturn() : CEntityEvent(EVENTCODE_EReturn) {;
|
|
||||||
};
|
|
||||||
CEntityEvent *EBegin::MakeCopy(void) { CEntityEvent *peeCopy = new EBegin(*this); return peeCopy;}
|
|
||||||
EBegin::EBegin() : CEntityEvent(EVENTCODE_EBegin) {;
|
|
||||||
};
|
|
||||||
CEntityEvent *ETimer::MakeCopy(void) { CEntityEvent *peeCopy = new ETimer(*this); return peeCopy;}
|
|
||||||
ETimer::ETimer() : CEntityEvent(EVENTCODE_ETimer) {;
|
|
||||||
};
|
|
||||||
CEntityEvent *ETouch::MakeCopy(void) { CEntityEvent *peeCopy = new ETouch(*this); return peeCopy;}
|
|
||||||
ETouch::ETouch() : CEntityEvent(EVENTCODE_ETouch) {;
|
|
||||||
ClearToDefault(penOther);
|
|
||||||
ClearToDefault(bThisMoved);
|
|
||||||
ClearToDefault(plCollision);
|
|
||||||
};
|
|
||||||
CEntityEvent *EPass::MakeCopy(void) { CEntityEvent *peeCopy = new EPass(*this); return peeCopy;}
|
|
||||||
EPass::EPass() : CEntityEvent(EVENTCODE_EPass) {;
|
|
||||||
ClearToDefault(penOther);
|
|
||||||
ClearToDefault(bThisMoved);
|
|
||||||
};
|
|
||||||
CEntityEvent *EBlock::MakeCopy(void) { CEntityEvent *peeCopy = new EBlock(*this); return peeCopy;}
|
|
||||||
EBlock::EBlock() : CEntityEvent(EVENTCODE_EBlock) {;
|
|
||||||
ClearToDefault(penOther);
|
|
||||||
ClearToDefault(plCollision);
|
|
||||||
};
|
|
||||||
CEntityEvent *EWouldFall::MakeCopy(void) { CEntityEvent *peeCopy = new EWouldFall(*this); return peeCopy;}
|
|
||||||
EWouldFall::EWouldFall() : CEntityEvent(EVENTCODE_EWouldFall) {;
|
|
||||||
};
|
|
||||||
CEntityEvent *ETeleport::MakeCopy(void) { CEntityEvent *peeCopy = new ETeleport(*this); return peeCopy;}
|
|
||||||
ETeleport::ETeleport() : CEntityEvent(EVENTCODE_ETeleport) {;
|
|
||||||
};
|
|
||||||
CEntityEvent *EPreLevelChange::MakeCopy(void) { CEntityEvent *peeCopy = new EPreLevelChange(*this); return peeCopy;}
|
|
||||||
EPreLevelChange::EPreLevelChange() : CEntityEvent(EVENTCODE_EPreLevelChange) {;
|
|
||||||
ClearToDefault(iUserData);
|
|
||||||
};
|
|
||||||
CEntityEvent *EPostLevelChange::MakeCopy(void) { CEntityEvent *peeCopy = new EPostLevelChange(*this); return peeCopy;}
|
|
||||||
EPostLevelChange::EPostLevelChange() : CEntityEvent(EVENTCODE_EPostLevelChange) {;
|
|
||||||
ClearToDefault(iUserData);
|
|
||||||
};
|
|
||||||
CEntityEvent *EFirstWorldBase::MakeCopy(void) { CEntityEvent *peeCopy = new EFirstWorldBase(*this); return peeCopy;}
|
|
||||||
EFirstWorldBase::EFirstWorldBase() : CEntityEvent(EVENTCODE_EFirstWorldBase) {;
|
|
||||||
};
|
|
||||||
CEntityEvent *EDamage::MakeCopy(void) { CEntityEvent *peeCopy = new EDamage(*this); return peeCopy;}
|
|
||||||
EDamage::EDamage() : CEntityEvent(EVENTCODE_EDamage) {;
|
|
||||||
ClearToDefault(penInflictor);
|
|
||||||
ClearToDefault(vDirection);
|
|
||||||
ClearToDefault(vHitPoint);
|
|
||||||
ClearToDefault(fAmount);
|
|
||||||
ClearToDefault(dmtType);
|
|
||||||
};
|
|
||||||
CEntityEvent *EDeath::MakeCopy(void) { CEntityEvent *peeCopy = new EDeath(*this); return peeCopy;}
|
|
||||||
EDeath::EDeath() : CEntityEvent(EVENTCODE_EDeath) {;
|
|
||||||
ClearToDefault(eLastDamage);
|
|
||||||
};
|
|
||||||
CEntityEvent *ETakingBreath::MakeCopy(void) { CEntityEvent *peeCopy = new ETakingBreath(*this); return peeCopy;}
|
|
||||||
ETakingBreath::ETakingBreath() : CEntityEvent(EVENTCODE_ETakingBreath) {;
|
|
||||||
ClearToDefault(fBreathDelay);
|
|
||||||
};
|
|
|
@ -1,158 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _Engine_Classes_BaseEvents_INCLUDED
|
|
||||||
#define _Engine_Classes_BaseEvents_INCLUDED 1
|
|
||||||
#define EVENTCODE_EInternal 0x00050000
|
|
||||||
class DECL_DLL EInternal : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EInternal();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EInternal &e) { e = EInternal(); } ;
|
|
||||||
#define EVENTCODE_EVoid 0x00050001
|
|
||||||
class DECL_DLL EVoid : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EVoid();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EVoid &e) { e = EVoid(); } ;
|
|
||||||
#define EVENTCODE_EReturn 0x00050002
|
|
||||||
class DECL_DLL EReturn : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EReturn();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EReturn &e) { e = EReturn(); } ;
|
|
||||||
#define EVENTCODE_EBegin 0x00050003
|
|
||||||
class DECL_DLL EBegin : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EBegin();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EBegin &e) { e = EBegin(); } ;
|
|
||||||
#define EVENTCODE_ETimer 0x00050004
|
|
||||||
class DECL_DLL ETimer : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
ETimer();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(ETimer &e) { e = ETimer(); } ;
|
|
||||||
#define EVENTCODE_ETouch 0x00050005
|
|
||||||
class DECL_DLL ETouch : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
ETouch();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
CEntityPointer penOther;
|
|
||||||
BOOL bThisMoved;
|
|
||||||
FLOATplane3D plCollision;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(ETouch &e) { e = ETouch(); } ;
|
|
||||||
#define EVENTCODE_EPass 0x00050006
|
|
||||||
class DECL_DLL EPass : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EPass();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
CEntityPointer penOther;
|
|
||||||
BOOL bThisMoved;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EPass &e) { e = EPass(); } ;
|
|
||||||
#define EVENTCODE_EBlock 0x00050007
|
|
||||||
class DECL_DLL EBlock : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EBlock();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
CEntityPointer penOther;
|
|
||||||
FLOATplane3D plCollision;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EBlock &e) { e = EBlock(); } ;
|
|
||||||
#define EVENTCODE_EWouldFall 0x00050008
|
|
||||||
class DECL_DLL EWouldFall : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EWouldFall();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EWouldFall &e) { e = EWouldFall(); } ;
|
|
||||||
#define EVENTCODE_ETeleport 0x00050009
|
|
||||||
class DECL_DLL ETeleport : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
ETeleport();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(ETeleport &e) { e = ETeleport(); } ;
|
|
||||||
#define EVENTCODE_EPreLevelChange 0x0005000a
|
|
||||||
class DECL_DLL EPreLevelChange : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EPreLevelChange();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
INDEX iUserData;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EPreLevelChange &e) { e = EPreLevelChange(); } ;
|
|
||||||
#define EVENTCODE_EPostLevelChange 0x0005000b
|
|
||||||
class DECL_DLL EPostLevelChange : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EPostLevelChange();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
INDEX iUserData;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EPostLevelChange &e) { e = EPostLevelChange(); } ;
|
|
||||||
#define EVENTCODE_EFirstWorldBase 0x0005000c
|
|
||||||
class DECL_DLL EFirstWorldBase : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EFirstWorldBase();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EFirstWorldBase &e) { e = EFirstWorldBase(); } ;
|
|
||||||
extern DECL_DLL CEntityPropertyEnumType DamageType_enum;
|
|
||||||
enum DamageType {
|
|
||||||
DMT_EXPLOSION = 1,
|
|
||||||
DMT_PROJECTILE = 2,
|
|
||||||
DMT_CLOSERANGE = 3,
|
|
||||||
DMT_BULLET = 4,
|
|
||||||
DMT_DROWNING = 5,
|
|
||||||
DMT_IMPACT = 6,
|
|
||||||
DMT_BRUSH = 7,
|
|
||||||
DMT_BURNING = 8,
|
|
||||||
DMT_ACID = 9,
|
|
||||||
DMT_TELEPORT = 10,
|
|
||||||
DMT_FREEZING = 11,
|
|
||||||
DMT_CANNONBALL = 12,
|
|
||||||
DMT_CANNONBALL_EXPLOSION = 13,
|
|
||||||
DMT_SPIKESTAB = 14,
|
|
||||||
DMT_ABYSS = 15,
|
|
||||||
DMT_HEAT = 16,
|
|
||||||
DMT_DAMAGER = 17,
|
|
||||||
DMT_CHAINSAW = 18,
|
|
||||||
DMT_NONE = 9999,
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(DamageType &e) { e = (DamageType)0; } ;
|
|
||||||
#define EVENTCODE_EDamage 0x0005000d
|
|
||||||
class DECL_DLL EDamage : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EDamage();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
CEntityPointer penInflictor;
|
|
||||||
FLOAT3D vDirection;
|
|
||||||
FLOAT3D vHitPoint;
|
|
||||||
FLOAT fAmount;
|
|
||||||
enum DamageType dmtType;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EDamage &e) { e = EDamage(); } ;
|
|
||||||
#define EVENTCODE_EDeath 0x0005000e
|
|
||||||
class DECL_DLL EDeath : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EDeath();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
EDamage eLastDamage;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EDeath &e) { e = EDeath(); } ;
|
|
||||||
#define EVENTCODE_ETakingBreath 0x0005000f
|
|
||||||
class DECL_DLL ETakingBreath : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
ETakingBreath();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
FLOAT fBreathDelay;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(ETakingBreath &e) { e = ETakingBreath(); } ;
|
|
||||||
#endif // _Engine_Classes_BaseEvents_INCLUDED
|
|
|
@ -1,26 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
EP_ENUMBEG(DamageType)
|
|
||||||
EP_ENUMVALUE(DMT_EXPLOSION, "Explosion"),
|
|
||||||
EP_ENUMVALUE(DMT_PROJECTILE, "Projectile"),
|
|
||||||
EP_ENUMVALUE(DMT_CLOSERANGE, "Close range"),
|
|
||||||
EP_ENUMVALUE(DMT_BULLET, "Bullets"),
|
|
||||||
EP_ENUMVALUE(DMT_DROWNING, "Drowning"),
|
|
||||||
EP_ENUMVALUE(DMT_IMPACT, "Impact"),
|
|
||||||
EP_ENUMVALUE(DMT_BRUSH, "Brush"),
|
|
||||||
EP_ENUMVALUE(DMT_BURNING, "Burning"),
|
|
||||||
EP_ENUMVALUE(DMT_ACID, "Acid"),
|
|
||||||
EP_ENUMVALUE(DMT_TELEPORT, "Teleport"),
|
|
||||||
EP_ENUMVALUE(DMT_FREEZING, "Freezing"),
|
|
||||||
EP_ENUMVALUE(DMT_CANNONBALL, "Cannon ball"),
|
|
||||||
EP_ENUMVALUE(DMT_CANNONBALL_EXPLOSION, "Cannon ball explosion"),
|
|
||||||
EP_ENUMVALUE(DMT_SPIKESTAB, "Spike stab"),
|
|
||||||
EP_ENUMVALUE(DMT_ABYSS, "Abyss"),
|
|
||||||
EP_ENUMVALUE(DMT_HEAT, "Heat"),
|
|
||||||
EP_ENUMVALUE(DMT_DAMAGER, "Damager"),
|
|
||||||
EP_ENUMVALUE(DMT_CHAINSAW, "Chain saw"),
|
|
||||||
EP_ENUMVALUE(DMT_NONE, "no damage"),
|
|
||||||
EP_ENUMEND(DamageType);
|
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 8 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include <Engine/Entities/InternalClasses.h>
|
|
||||||
|
|
||||||
#include <Engine/Classes/MovableBrushEntity.h>
|
|
||||||
#include <Engine/Classes/MovableBrushEntity_tables.h>
|
|
||||||
void CMovableBrushEntity::SetDefaultProperties(void) {
|
|
||||||
CMovableEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
void CMovableBrushEntity::DoMoving(void)
|
|
||||||
#line 23 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
{
|
|
||||||
#line 24 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
CMovableEntity :: DoMoving ();
|
|
||||||
#line 27 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
}
|
|
||||||
void CMovableBrushEntity::Read_t(CTStream * istr)
|
|
||||||
#line 37 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
{
|
|
||||||
#line 38 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
CMovableEntity :: Read_t (istr );
|
|
||||||
#line 39 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
}
|
|
||||||
void CMovableBrushEntity::Write_t(CTStream * ostr)
|
|
||||||
#line 42 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
{
|
|
||||||
#line 43 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
CMovableEntity :: Write_t (ostr );
|
|
||||||
#line 44 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
}
|
|
||||||
BOOL CMovableBrushEntity::
|
|
||||||
#line 48 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
Dummy(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CMovableBrushEntity_Dummy
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CMovableBrushEntity::Dummy expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,19 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _Engine_Classes_MovableBrushEntity_INCLUDED
|
|
||||||
#define _Engine_Classes_MovableBrushEntity_INCLUDED 1
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CMovableBrushEntity_DLLClass;
|
|
||||||
class DECL_DLL CMovableBrushEntity : public CMovableEntity {
|
|
||||||
public:
|
|
||||||
virtual void SetDefaultProperties(void);
|
|
||||||
void DoMoving(void);
|
|
||||||
void Read_t(CTStream * istr);
|
|
||||||
void Write_t(CTStream * ostr);
|
|
||||||
#define STATE_CMovableBrushEntity_Dummy 0x00030000
|
|
||||||
BOOL
|
|
||||||
#line 48 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
Dummy(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _Engine_Classes_MovableBrushEntity_INCLUDED
|
|
|
@ -1,35 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CMovableBrushEntity
|
|
||||||
|
|
||||||
CEntityProperty CMovableBrushEntity_properties[] = {
|
|
||||||
CEntityProperty()
|
|
||||||
};
|
|
||||||
#define CMovableBrushEntity_propertiesct 0
|
|
||||||
|
|
||||||
|
|
||||||
CEntityComponent CMovableBrushEntity_components[] = {
|
|
||||||
CEntityComponent()
|
|
||||||
};
|
|
||||||
#define CMovableBrushEntity_componentsct 0
|
|
||||||
|
|
||||||
|
|
||||||
CEventHandlerEntry CMovableBrushEntity_handlers[] = {
|
|
||||||
{0x00030000, -1, CEntity::pEventHandler(&CMovableBrushEntity::
|
|
||||||
#line 48 "D:/SE1_GPL/Sources/Engine/Classes/MovableBrushEntity.es"
|
|
||||||
Dummy),DEBUGSTRING("CMovableBrushEntity::Dummy")},
|
|
||||||
};
|
|
||||||
#define CMovableBrushEntity_handlersct ARRAYCOUNT(CMovableBrushEntity_handlers)
|
|
||||||
|
|
||||||
CEntity *CMovableBrushEntity_New(void) { return new CMovableBrushEntity; };
|
|
||||||
void CMovableBrushEntity_OnInitClass(void) {};
|
|
||||||
void CMovableBrushEntity_OnEndClass(void) {};
|
|
||||||
void CMovableBrushEntity_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CMovableBrushEntity_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CMovableBrushEntity_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CMovableBrushEntity_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CMovableBrushEntity_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CMovableBrushEntity, CMovableEntity, "MovableBrushEntity", "", 0x00000003);
|
|
||||||
DECLARE_CTFILENAME(_fnmCMovableBrushEntity_tbn, "");
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,176 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _Engine_Classes_MovableEntity_INCLUDED
|
|
||||||
#define _Engine_Classes_MovableEntity_INCLUDED 1
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CMovableEntity_DLLClass;
|
|
||||||
class DECL_DLL CMovableEntity : public CRationalEntity {
|
|
||||||
public:
|
|
||||||
virtual void SetDefaultProperties(void);
|
|
||||||
FLOAT3D en_vDesiredTranslationRelative;
|
|
||||||
ANGLE3D en_aDesiredRotationRelative;
|
|
||||||
FLOAT3D en_vCurrentTranslationAbsolute;
|
|
||||||
ANGLE3D en_aCurrentRotationAbsolute;
|
|
||||||
CEntityPointer en_penReference;
|
|
||||||
FLOAT3D en_vReferencePlane;
|
|
||||||
INDEX en_iReferenceSurface;
|
|
||||||
CEntityPointer en_penLastValidReference;
|
|
||||||
FLOAT en_tmLastSignificantVerticalMovement;
|
|
||||||
FLOAT en_tmLastBreathed;
|
|
||||||
FLOAT en_tmMaxHoldBreath;
|
|
||||||
FLOAT en_fDensity;
|
|
||||||
FLOAT en_tmLastSwimDamage;
|
|
||||||
INDEX en_iUpContent;
|
|
||||||
INDEX en_iDnContent;
|
|
||||||
FLOAT en_fImmersionFactor;
|
|
||||||
FLOAT3D en_vGravityDir;
|
|
||||||
FLOAT en_fGravityA;
|
|
||||||
FLOAT en_fGravityV;
|
|
||||||
FLOAT3D en_vForceDir;
|
|
||||||
FLOAT en_fForceA;
|
|
||||||
FLOAT en_fForceV;
|
|
||||||
FLOAT en_tmJumped;
|
|
||||||
FLOAT en_tmMaxJumpControl;
|
|
||||||
FLOAT en_fJumpControlMultiplier;
|
|
||||||
FLOAT en_fAcceleration;
|
|
||||||
FLOAT en_fDeceleration;
|
|
||||||
FLOAT en_fStepUpHeight;
|
|
||||||
FLOAT en_fStepDnHeight;
|
|
||||||
FLOAT en_fBounceDampParallel;
|
|
||||||
FLOAT en_fBounceDampNormal;
|
|
||||||
FLOAT en_fCollisionSpeedLimit;
|
|
||||||
FLOAT en_fCollisionDamageFactor;
|
|
||||||
FLOATaabbox3D en_boxMovingEstimate;
|
|
||||||
FLOATaabbox3D en_boxNearCached;
|
|
||||||
FLOAT3D en_vIntendedTranslation;
|
|
||||||
FLOATmatrix3D en_mIntendedRotation;
|
|
||||||
CPlacement3D en_plLastPlacement;
|
|
||||||
CListNode en_lnInMovers;
|
|
||||||
CBrushPolygon * en_pbpoStandOn;
|
|
||||||
CStaticStackArray < CBrushPolygon * > en_apbpoNearPolygons;
|
|
||||||
FLOAT en_tmLastPredictionHead;
|
|
||||||
FLOAT3D en_vLastHead;
|
|
||||||
FLOAT3D en_vPredError;
|
|
||||||
FLOAT3D en_vPredErrorLast;
|
|
||||||
FLOAT3D en_vNextPosition;
|
|
||||||
FLOATmatrix3D en_mNextRotation;
|
|
||||||
FLOAT3D en_vMoveTranslation;
|
|
||||||
FLOATmatrix3D en_mMoveRotation;
|
|
||||||
FLOAT3D en_vAppliedTranslation;
|
|
||||||
FLOATmatrix3D en_mAppliedRotation;
|
|
||||||
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void ResetPredictionFilter(void);
|
|
||||||
CMovableEntity(void);
|
|
||||||
~ CMovableEntity(void);
|
|
||||||
void OnInitialize(const CEntityEvent & eeInput);
|
|
||||||
void OnEnd(void);
|
|
||||||
void Copy(CEntity & enOther,ULONG ulFlags);
|
|
||||||
|
|
||||||
#line 391 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void ClearTemporaryData(void);
|
|
||||||
void ChecksumForSync(ULONG & ulCRC,INDEX iExtensiveSyncCheck);
|
|
||||||
void DumpSync_t(CTStream & strm,INDEX iExtensiveSyncCheck);
|
|
||||||
void Read_t(CTStream * istr);
|
|
||||||
void Write_t(CTStream * ostr);
|
|
||||||
CPlacement3D GetLerpedPlacement(void)const;
|
|
||||||
void AddToMovers(void);
|
|
||||||
void AddToMoversDuringMoving(void);
|
|
||||||
void SetDesiredRotation(const ANGLE3D & aRotation);
|
|
||||||
const ANGLE3D & GetDesiredRotation(void)const;
|
|
||||||
void SetDesiredTranslation(const FLOAT3D & vTranslation);
|
|
||||||
const FLOAT3D & GetDesiredTranslation(void)const;
|
|
||||||
void GiveImpulseTranslationRelative(const FLOAT3D & vImpulseSpeedRelative);
|
|
||||||
void GiveImpulseTranslationAbsolute(const FLOAT3D & vImpulseSpeed);
|
|
||||||
void LaunchAsPropelledProjectile(const FLOAT3D & vImpulseSpeedRelative,
|
|
||||||
#line 642 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
CMovableEntity * penLauncher);
|
|
||||||
void LaunchAsFreeProjectile(const FLOAT3D & vImpulseSpeedRelative,
|
|
||||||
#line 650 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
CMovableEntity * penLauncher);
|
|
||||||
void ForceStopTranslation(void);
|
|
||||||
void ForceStopRotation(void);
|
|
||||||
void ForceFullStop(void);
|
|
||||||
void FakeJump(const FLOAT3D & vOrgSpeed,const FLOAT3D & vDirection,FLOAT fStrength,
|
|
||||||
#line 680 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
FLOAT fParallelMultiplier,FLOAT fNormalMultiplier,FLOAT fMaxExitSpeed,TIME tmControl);
|
|
||||||
ANGLE GetRelativeHeading(const FLOAT3D & vDirection);
|
|
||||||
ANGLE GetRelativePitch(const FLOAT3D & vDirection);
|
|
||||||
void GetReferenceHeadingDirection(const FLOAT3D & vReference,ANGLE aH,FLOAT3D & vDirection);
|
|
||||||
void GetHeadingDirection(ANGLE aH,FLOAT3D & vDirection);
|
|
||||||
void GetPitchDirection(ANGLE aH,FLOAT3D & vDirection);
|
|
||||||
|
|
||||||
#line 781 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
CEntity * MiscDamageInflictor(void);
|
|
||||||
|
|
||||||
#line 798 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void UpdateOneSectorForce(CBrushSector & bsc,FLOAT fRatio);
|
|
||||||
|
|
||||||
#line 847 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void TestFields(INDEX & iUpContent,INDEX & iDnContent,FLOAT & fImmersionFactor);
|
|
||||||
|
|
||||||
#line 990 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void TestBreathing(CContentType & ctUp);
|
|
||||||
|
|
||||||
#line 1026 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void TestContentDamage(CContentType & ctDn,FLOAT fImmersion);
|
|
||||||
|
|
||||||
#line 1059 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void TestSurfaceDamage(CSurfaceType & stDn);
|
|
||||||
|
|
||||||
#line 1085 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void SendTouchEvent(const CClipMove & cmMove);
|
|
||||||
|
|
||||||
#line 1100 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void SendBlockEvent(CClipMove & cmMove);
|
|
||||||
|
|
||||||
#line 1108 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
BOOL IsStandingOnPolygon(CBrushPolygon * pbpo);
|
|
||||||
|
|
||||||
#line 1171 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
BOOL IsPolygonBelowPoint(CBrushPolygon * pbpo,const FLOAT3D & vPoint,FLOAT fMaxDist);
|
|
||||||
virtual BOOL AllowForGroundPolygon(CBrushPolygon * pbpo);
|
|
||||||
|
|
||||||
#line 1261 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
BOOL IsSomeNearPolygonBelowPoint(const FLOAT3D & vPoint,FLOAT fMaxDist);
|
|
||||||
|
|
||||||
#line 1268 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
BOOL IsSomeSectorPolygonBelowPoint(CBrushSector * pbsc,const FLOAT3D & vPoint,FLOAT fMaxDist);
|
|
||||||
|
|
||||||
#line 1284 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
BOOL WouldFallInNextPosition(void);
|
|
||||||
|
|
||||||
#line 1394 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void ClearNextPosition(void);
|
|
||||||
|
|
||||||
#line 1400 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void SetPlacementFromNextPosition(void);
|
|
||||||
|
|
||||||
#line 1427 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
BOOL TryToGoUpstairs(const FLOAT3D & vTranslationAbsolute,const CSurfaceType & stHit,
|
|
||||||
#line 1428 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
BOOL bHitStairsOrg);
|
|
||||||
|
|
||||||
#line 1581 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
BOOL TryToMove(CMovableEntity * penPusher,BOOL bTranslate,BOOL bRotate);
|
|
||||||
void ClearMovingTemp(void);
|
|
||||||
void PreMoving(void);
|
|
||||||
|
|
||||||
#line 2012 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void PreMovingNew(void);
|
|
||||||
|
|
||||||
#line 2428 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
void PreMovingOld(void);
|
|
||||||
void DoMoving(void);
|
|
||||||
void PostMoving(void);
|
|
||||||
void CacheNearPolygons(void);
|
|
||||||
|
|
||||||
#line 3091 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
SLONG GetUsedMemory(void);
|
|
||||||
#define STATE_CMovableEntity_Dummy 0x00010000
|
|
||||||
BOOL
|
|
||||||
#line 3105 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
Dummy(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _Engine_Classes_MovableEntity_INCLUDED
|
|
|
@ -1,70 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CMovableEntity
|
|
||||||
|
|
||||||
CEntityProperty CMovableEntity_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000001<<8)+1, offsetof(CMovableEntity, en_vDesiredTranslationRelative), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ANGLE3D, NULL, (0x00000001<<8)+2, offsetof(CMovableEntity, en_aDesiredRotationRelative), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000001<<8)+3, offsetof(CMovableEntity, en_vCurrentTranslationAbsolute), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ANGLE3D, NULL, (0x00000001<<8)+4, offsetof(CMovableEntity, en_aCurrentRotationAbsolute), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x00000001<<8)+6, offsetof(CMovableEntity, en_penReference), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000001<<8)+7, offsetof(CMovableEntity, en_vReferencePlane), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000001<<8)+8, offsetof(CMovableEntity, en_iReferenceSurface), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x00000001<<8)+9, offsetof(CMovableEntity, en_penLastValidReference), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+14, offsetof(CMovableEntity, en_tmLastSignificantVerticalMovement), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+10, offsetof(CMovableEntity, en_tmLastBreathed), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+11, offsetof(CMovableEntity, en_tmMaxHoldBreath), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+12, offsetof(CMovableEntity, en_fDensity), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+13, offsetof(CMovableEntity, en_tmLastSwimDamage), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000001<<8)+20, offsetof(CMovableEntity, en_iUpContent), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000001<<8)+21, offsetof(CMovableEntity, en_iDnContent), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+22, offsetof(CMovableEntity, en_fImmersionFactor), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000001<<8)+25, offsetof(CMovableEntity, en_vGravityDir), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+26, offsetof(CMovableEntity, en_fGravityA), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+27, offsetof(CMovableEntity, en_fGravityV), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000001<<8)+66, offsetof(CMovableEntity, en_vForceDir), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+67, offsetof(CMovableEntity, en_fForceA), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+68, offsetof(CMovableEntity, en_fForceV), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+30, offsetof(CMovableEntity, en_tmJumped), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+31, offsetof(CMovableEntity, en_tmMaxJumpControl), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+32, offsetof(CMovableEntity, en_fJumpControlMultiplier), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+35, offsetof(CMovableEntity, en_fAcceleration), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+36, offsetof(CMovableEntity, en_fDeceleration), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+37, offsetof(CMovableEntity, en_fStepUpHeight), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+42, offsetof(CMovableEntity, en_fStepDnHeight), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+38, offsetof(CMovableEntity, en_fBounceDampParallel), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+39, offsetof(CMovableEntity, en_fBounceDampNormal), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+40, offsetof(CMovableEntity, en_fCollisionSpeedLimit), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000001<<8)+41, offsetof(CMovableEntity, en_fCollisionDamageFactor), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATAABBOX3D, NULL, (0x00000001<<8)+51, offsetof(CMovableEntity, en_boxMovingEstimate), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATAABBOX3D, NULL, (0x00000001<<8)+52, offsetof(CMovableEntity, en_boxNearCached), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000001<<8)+64, offsetof(CMovableEntity, en_vIntendedTranslation), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATMATRIX3D, NULL, (0x00000001<<8)+65, offsetof(CMovableEntity, en_mIntendedRotation), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CMovableEntity_propertiesct ARRAYCOUNT(CMovableEntity_properties)
|
|
||||||
|
|
||||||
CEntityComponent CMovableEntity_components[] = {
|
|
||||||
CEntityComponent()
|
|
||||||
};
|
|
||||||
#define CMovableEntity_componentsct 0
|
|
||||||
|
|
||||||
|
|
||||||
CEventHandlerEntry CMovableEntity_handlers[] = {
|
|
||||||
{0x00010000, -1, CEntity::pEventHandler(&CMovableEntity::
|
|
||||||
#line 3105 "D:/SE1_GPL/Sources/Engine/Classes/MovableEntity.es"
|
|
||||||
Dummy),DEBUGSTRING("CMovableEntity::Dummy")},
|
|
||||||
};
|
|
||||||
#define CMovableEntity_handlersct ARRAYCOUNT(CMovableEntity_handlers)
|
|
||||||
|
|
||||||
CEntity *CMovableEntity_New(void) { return new CMovableEntity; };
|
|
||||||
void CMovableEntity_OnInitClass(void) {};
|
|
||||||
void CMovableEntity_OnEndClass(void) {};
|
|
||||||
void CMovableEntity_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CMovableEntity_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CMovableEntity_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CMovableEntity_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CMovableEntity_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CMovableEntity, CRationalEntity, "MovableEntity", "", 0x00000001);
|
|
||||||
DECLARE_CTFILENAME(_fnmCMovableEntity_tbn, "");
|
|
|
@ -1,218 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 8 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include <Engine/Entities/InternalClasses.h>
|
|
||||||
#include <Engine/Base/CRC.h>
|
|
||||||
#include <Engine/Base/Stream.h>
|
|
||||||
#include <Engine/Base/Console.h>
|
|
||||||
#include <Engine/Models/ModelObject.h>
|
|
||||||
|
|
||||||
#include <Engine/Classes/MovableModelEntity.h>
|
|
||||||
#include <Engine/Classes/MovableModelEntity_tables.h>
|
|
||||||
void CMovableModelEntity::SetDefaultProperties(void) {
|
|
||||||
en_iCollisionBox = 0;
|
|
||||||
en_iWantedCollisionBox = 0;
|
|
||||||
CMovableEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
void CMovableModelEntity::ChecksumForSync(ULONG & ulCRC,INDEX iExtensiveSyncCheck)
|
|
||||||
#line 32 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 33 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
CMovableEntity :: ChecksumForSync (ulCRC , iExtensiveSyncCheck );
|
|
||||||
#line 34 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
if(iExtensiveSyncCheck > 0){
|
|
||||||
#line 35 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
CRC_AddLONG (ulCRC , en_iCollisionBox );
|
|
||||||
#line 36 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
CRC_AddLONG (ulCRC , en_iWantedCollisionBox );
|
|
||||||
#line 37 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
#line 38 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
void CMovableModelEntity::DumpSync_t(CTStream & strm,INDEX iExtensiveSyncCheck)
|
|
||||||
#line 41 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 42 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
CMovableEntity :: DumpSync_t (strm , iExtensiveSyncCheck );
|
|
||||||
#line 43 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
if(iExtensiveSyncCheck > 0){
|
|
||||||
#line 44 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
strm . FPrintF_t ("collision box: %d(%d)\n" , en_iCollisionBox , en_iWantedCollisionBox );
|
|
||||||
#line 45 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
#line 46 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
void CMovableModelEntity::PreMoving(void)
|
|
||||||
#line 50 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 52 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
if(en_iCollisionBox != en_iWantedCollisionBox ){
|
|
||||||
#line 54 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
ChangeCollisionBoxIndexNow (en_iWantedCollisionBox );
|
|
||||||
#line 55 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
#line 57 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
CMovableEntity :: PreMoving ();
|
|
||||||
#line 58 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
void CMovableModelEntity::DoMoving(void)
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
CMovableEntity :: DoMoving ();
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
INDEX CMovableModelEntity::GetCollisionBoxIndex(void)
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
return en_iCollisionBox ;
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
BOOL CMovableModelEntity::CheckForCollisionNow(INDEX iNewCollisionBox,CEntity * * ppenObstacle)
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
extern BOOL CanEntityChangeCollisionBox (CEntity * pen , INDEX iNewCollisionBox , CEntity * * ppenObstacle );
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
return ! CanEntityChangeCollisionBox (this , en_iCollisionBox , ppenObstacle );
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
BOOL CMovableModelEntity::ChangeCollisionBoxIndexNow(INDEX iNewCollisionBox,CEntity * * ppenObstacle)
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
if(iNewCollisionBox == en_iCollisionBox ){
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
extern BOOL CanEntityChangeCollisionBox (CEntity * pen , INDEX iNewCollisionBox , CEntity * * ppenObstacle );
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
BOOL bCanChange = CanEntityChangeCollisionBox (this , iNewCollisionBox , ppenObstacle );
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
if(! bCanChange ){
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
if(en_RenderType == CEntity :: RT_SKAMODEL || en_RenderType == CEntity :: RT_SKAEDITORMODEL ){
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
if(GetModelInstance () != NULL ){
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
GetModelInstance () -> mi_iCurentBBox = iNewCollisionBox ;
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
en_iCollisionBox = iNewCollisionBox ;
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
en_iWantedCollisionBox = iNewCollisionBox ;
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
ModelChangeNotify ();
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
BOOL CMovableModelEntity::ChangeCollisionBoxIndexNow(INDEX iNewCollisionBox)
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
CEntity * penDummy ;
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
return ChangeCollisionBoxIndexNow (iNewCollisionBox , & penDummy );
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
void CMovableModelEntity::ForceCollisionBoxIndexChange(INDEX iNewCollisionBox)
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
if(en_RenderType == CEntity :: RT_SKAMODEL || en_RenderType == CEntity :: RT_SKAEDITORMODEL ){
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
if(GetModelInstance () != NULL ){
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
GetModelInstance () -> mi_iCurentBBox = iNewCollisionBox ;
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
en_iCollisionBox = iNewCollisionBox ;
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
en_iWantedCollisionBox = iNewCollisionBox ;
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
ModelChangeNotify ();
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
void CMovableModelEntity::ChangeCollisionBoxIndexWhenPossible(INDEX iNewCollisionBox)
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
en_iWantedCollisionBox = iNewCollisionBox ;
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
void CMovableModelEntity::Read_t(CTStream * istr)
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
CMovableEntity :: Read_t (istr );
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
void CMovableModelEntity::Write_t(CTStream * ostr)
|
|
||||||
#line 161 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
CMovableEntity :: Write_t (ostr );
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
SLONG CMovableModelEntity::GetUsedMemory(void)
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
{
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
return (sizeof (CMovableModelEntity ) - sizeof (CMovableEntity ) + CMovableEntity :: GetUsedMemory ());
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
}
|
|
||||||
BOOL CMovableModelEntity::
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
Dummy(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CMovableModelEntity_Dummy
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CMovableModelEntity::Dummy expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; ASSERT(FALSE); return TRUE;};BOOL CMovableModelEntity::
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
WaitUntilScheduledAnimStarts(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CMovableModelEntity_WaitUntilScheduledAnimStarts
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CMovableModelEntity::WaitUntilScheduledAnimStarts expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
ASSERT (en_RenderType == CEntity :: RT_MODEL || en_RenderType == CEntity :: RT_EDITORMODEL );
|
|
||||||
#line 182 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
FLOAT fToWait = GetModelObject () -> ao_tmAnimStart - _pTimer -> CurrentTick ();
|
|
||||||
#line 183 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
if(!(fToWait > 0)){ Jump(STATE_CURRENT,0x00020004, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
SetTimerAfter(fToWait + _pTimer -> TickQuantum );
|
|
||||||
Jump(STATE_CURRENT, 0x00020002, FALSE, EBegin());return TRUE;}BOOL CMovableModelEntity::H0x00020002_WaitUntilScheduledAnimStarts_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00020002
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x00020003, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CMovableModelEntity::H0x00020003_WaitUntilScheduledAnimStarts_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00020003
|
|
||||||
;Jump(STATE_CURRENT,0x00020004, FALSE, EInternal());return TRUE;}BOOL CMovableModelEntity::H0x00020004_WaitUntilScheduledAnimStarts_03(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00020004
|
|
||||||
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,40 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _Engine_Classes_MovableModelEntity_INCLUDED
|
|
||||||
#define _Engine_Classes_MovableModelEntity_INCLUDED 1
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CMovableModelEntity_DLLClass;
|
|
||||||
class DECL_DLL CMovableModelEntity : public CMovableEntity {
|
|
||||||
public:
|
|
||||||
virtual void SetDefaultProperties(void);
|
|
||||||
INDEX en_iCollisionBox;
|
|
||||||
INDEX en_iWantedCollisionBox;
|
|
||||||
void ChecksumForSync(ULONG & ulCRC,INDEX iExtensiveSyncCheck);
|
|
||||||
void DumpSync_t(CTStream & strm,INDEX iExtensiveSyncCheck);
|
|
||||||
void PreMoving(void);
|
|
||||||
void DoMoving(void);
|
|
||||||
INDEX GetCollisionBoxIndex(void);
|
|
||||||
BOOL CheckForCollisionNow(INDEX iNewCollisionBox,CEntity * * ppenObstacle);
|
|
||||||
BOOL ChangeCollisionBoxIndexNow(INDEX iNewCollisionBox,CEntity * * ppenObstacle);
|
|
||||||
BOOL ChangeCollisionBoxIndexNow(INDEX iNewCollisionBox);
|
|
||||||
void ForceCollisionBoxIndexChange(INDEX iNewCollisionBox);
|
|
||||||
void ChangeCollisionBoxIndexWhenPossible(INDEX iNewCollisionBox);
|
|
||||||
void Read_t(CTStream * istr);
|
|
||||||
void Write_t(CTStream * ostr);
|
|
||||||
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
SLONG GetUsedMemory(void);
|
|
||||||
#define STATE_CMovableModelEntity_Dummy 0x00020000
|
|
||||||
BOOL
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
Dummy(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CMovableModelEntity_WaitUntilScheduledAnimStarts 0x00020001
|
|
||||||
BOOL
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
WaitUntilScheduledAnimStarts(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00020002_WaitUntilScheduledAnimStarts_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00020003_WaitUntilScheduledAnimStarts_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00020004_WaitUntilScheduledAnimStarts_03(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _Engine_Classes_MovableModelEntity_INCLUDED
|
|
|
@ -1,41 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CMovableModelEntity
|
|
||||||
|
|
||||||
CEntityProperty CMovableModelEntity_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000002<<8)+1, offsetof(CMovableModelEntity, en_iCollisionBox), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000002<<8)+2, offsetof(CMovableModelEntity, en_iWantedCollisionBox), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CMovableModelEntity_propertiesct ARRAYCOUNT(CMovableModelEntity_properties)
|
|
||||||
|
|
||||||
CEntityComponent CMovableModelEntity_components[] = {
|
|
||||||
CEntityComponent()
|
|
||||||
};
|
|
||||||
#define CMovableModelEntity_componentsct 0
|
|
||||||
|
|
||||||
|
|
||||||
CEventHandlerEntry CMovableModelEntity_handlers[] = {
|
|
||||||
{0x00020000, -1, CEntity::pEventHandler(&CMovableModelEntity::
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
Dummy),DEBUGSTRING("CMovableModelEntity::Dummy")},
|
|
||||||
{0x00020001, -1, CEntity::pEventHandler(&CMovableModelEntity::
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/Engine/Classes/MovableModelEntity.es"
|
|
||||||
WaitUntilScheduledAnimStarts),DEBUGSTRING("CMovableModelEntity::WaitUntilScheduledAnimStarts")},
|
|
||||||
{0x00020002, -1, CEntity::pEventHandler(&CMovableModelEntity::H0x00020002_WaitUntilScheduledAnimStarts_01), DEBUGSTRING("CMovableModelEntity::H0x00020002_WaitUntilScheduledAnimStarts_01")},
|
|
||||||
{0x00020003, -1, CEntity::pEventHandler(&CMovableModelEntity::H0x00020003_WaitUntilScheduledAnimStarts_02), DEBUGSTRING("CMovableModelEntity::H0x00020003_WaitUntilScheduledAnimStarts_02")},
|
|
||||||
{0x00020004, -1, CEntity::pEventHandler(&CMovableModelEntity::H0x00020004_WaitUntilScheduledAnimStarts_03), DEBUGSTRING("CMovableModelEntity::H0x00020004_WaitUntilScheduledAnimStarts_03")},
|
|
||||||
};
|
|
||||||
#define CMovableModelEntity_handlersct ARRAYCOUNT(CMovableModelEntity_handlers)
|
|
||||||
|
|
||||||
CEntity *CMovableModelEntity_New(void) { return new CMovableModelEntity; };
|
|
||||||
void CMovableModelEntity_OnInitClass(void) {};
|
|
||||||
void CMovableModelEntity_OnEndClass(void) {};
|
|
||||||
void CMovableModelEntity_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CMovableModelEntity_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CMovableModelEntity_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CMovableModelEntity_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CMovableModelEntity_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CMovableModelEntity, CMovableEntity, "MovableModelEntity", "", 0x00000002);
|
|
||||||
DECLARE_CTFILENAME(_fnmCMovableModelEntity_tbn, "");
|
|
|
@ -1,150 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 7 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include <Engine/Entities/InternalClasses.h>
|
|
||||||
#include <Engine/Base/Stream.h>
|
|
||||||
#include <Engine/Base/CRC.h>
|
|
||||||
|
|
||||||
#include <Engine/Classes/PlayerEntity.h>
|
|
||||||
#include <Engine/Classes/PlayerEntity_tables.h>
|
|
||||||
void CPlayerEntity::SetDefaultProperties(void) {
|
|
||||||
en_tmPing = 0.0f;
|
|
||||||
CMovableModelEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
CTString CPlayerEntity::GetPlayerName(void)
|
|
||||||
#line 29 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{
|
|
||||||
#line 30 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
return en_pcCharacter . GetNameForPrinting ();
|
|
||||||
#line 31 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
const CTString & CPlayerEntity::GetName(void)const
|
|
||||||
#line 33 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{
|
|
||||||
#line 34 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
return en_pcCharacter . GetName ();
|
|
||||||
#line 35 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
INDEX CPlayerEntity::GetMyPlayerIndex(void)
|
|
||||||
#line 38 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{
|
|
||||||
#line 39 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
CEntity * penMe = this ;
|
|
||||||
#line 40 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
if(IsPredictor ()){
|
|
||||||
#line 41 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
penMe = GetPredicted ();
|
|
||||||
#line 42 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
#line 43 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
for(INDEX iPlayer = 0;iPlayer < GetMaxPlayers ();iPlayer ++){
|
|
||||||
#line 45 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
if(GetPlayerEntity (iPlayer ) == penMe ){
|
|
||||||
#line 46 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
return iPlayer ;
|
|
||||||
#line 47 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
#line 48 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
#line 50 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
return 15;
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
void CPlayerEntity::DoMoving(void)
|
|
||||||
#line 55 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{
|
|
||||||
#line 56 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
CMovableModelEntity :: DoMoving ();
|
|
||||||
#line 57 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
void CPlayerEntity::Copy(CEntity & enOther,ULONG ulFlags)
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
CMovableModelEntity :: Copy (enOther , ulFlags );
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
CPlayerEntity * ppenOther = (CPlayerEntity *) (& enOther );
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
en_pcCharacter = ppenOther -> en_pcCharacter ;
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
en_plViewpoint = ppenOther -> en_plViewpoint ;
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
en_plLastViewpoint = ppenOther -> en_plLastViewpoint ;
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
void CPlayerEntity::Read_t(CTStream * istr)
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
CMovableModelEntity :: Read_t (istr );
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
(* istr ) >> en_pcCharacter >> en_plViewpoint ;
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
en_plLastViewpoint = en_plViewpoint ;
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
void CPlayerEntity::Write_t(CTStream * ostr)
|
|
||||||
#line 87 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{
|
|
||||||
#line 88 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
CMovableModelEntity :: Write_t (ostr );
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
(* ostr ) << en_pcCharacter << en_plViewpoint ;
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
void CPlayerEntity::ApplyAction(const CPlayerAction & pa,FLOAT tmLatency) {}
|
|
||||||
void CPlayerEntity::Disconnect(void) {}
|
|
||||||
void CPlayerEntity::CharacterChanged(const CPlayerCharacter & pcNew) {en_pcCharacter = pcNew ;}
|
|
||||||
void CPlayerEntity::GetGameAgentPlayerInfo(INDEX iPlayer,CTString & strOut) {}
|
|
||||||
void CPlayerEntity::ChecksumForSync(ULONG & ulCRC,INDEX iExtensiveSyncCheck)
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
CMovableModelEntity :: ChecksumForSync (ulCRC , iExtensiveSyncCheck );
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
CRC_AddBlock (ulCRC , en_pcCharacter . pc_aubGUID , sizeof (en_pcCharacter . pc_aubGUID ));
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
CRC_AddBlock (ulCRC , en_pcCharacter . pc_aubAppearance , sizeof (en_pcCharacter . pc_aubAppearance ));
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
void CPlayerEntity::DumpSync_t(CTStream & strm,INDEX iExtensiveSyncCheck)
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
CMovableModelEntity :: DumpSync_t (strm , iExtensiveSyncCheck );
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
strm . FPrintF_t ("player: %s\n" ,
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
en_pcCharacter . GetName ());
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
strm . FPrintF_t ("GUID: ");
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{for(INDEX i = 0;i < sizeof (en_pcCharacter . pc_aubGUID );i ++){
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
strm . FPrintF_t ("%02X" , en_pcCharacter . pc_aubGUID [ i ]);
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}}
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
strm . FPrintF_t ("\n");
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
strm . FPrintF_t ("appearance: ");
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
{for(INDEX i = 0;i < MAX_PLAYERAPPEARANCE ;i ++){
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
strm . FPrintF_t ("%02X" , en_pcCharacter . pc_aubAppearance [ i ]);
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}}
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
strm . FPrintF_t ("\n");
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
}
|
|
||||||
BOOL CPlayerEntity::
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
Dummy(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CPlayerEntity_Dummy
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CPlayerEntity::Dummy expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _Engine_Classes_PlayerEntity_INCLUDED
|
|
||||||
#define _Engine_Classes_PlayerEntity_INCLUDED 1
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CPlayerEntity_DLLClass;
|
|
||||||
class DECL_DLL CPlayerEntity : public CMovableModelEntity {
|
|
||||||
public:
|
|
||||||
virtual void SetDefaultProperties(void);
|
|
||||||
FLOAT en_tmPing;
|
|
||||||
CPlayerCharacter en_pcCharacter;
|
|
||||||
CPlacement3D en_plViewpoint;
|
|
||||||
CPlacement3D en_plLastViewpoint;
|
|
||||||
CTString GetPlayerName(void);
|
|
||||||
const CTString & GetName(void)const;
|
|
||||||
INDEX GetMyPlayerIndex(void);
|
|
||||||
void DoMoving(void);
|
|
||||||
void Copy(CEntity & enOther,ULONG ulFlags);
|
|
||||||
void Read_t(CTStream * istr);
|
|
||||||
void Write_t(CTStream * ostr);
|
|
||||||
virtual void ApplyAction(const CPlayerAction & pa,FLOAT tmLatency);
|
|
||||||
virtual void Disconnect(void);
|
|
||||||
virtual void CharacterChanged(const CPlayerCharacter & pcNew);
|
|
||||||
virtual void GetGameAgentPlayerInfo(INDEX iPlayer,CTString & strOut);
|
|
||||||
void ChecksumForSync(ULONG & ulCRC,INDEX iExtensiveSyncCheck);
|
|
||||||
void DumpSync_t(CTStream & strm,INDEX iExtensiveSyncCheck);
|
|
||||||
#define STATE_CPlayerEntity_Dummy 0x00040000
|
|
||||||
BOOL
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
Dummy(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _Engine_Classes_PlayerEntity_INCLUDED
|
|
|
@ -1,34 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CPlayerEntity
|
|
||||||
|
|
||||||
CEntityProperty CPlayerEntity_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000004<<8)+1, offsetof(CPlayerEntity, en_tmPing), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CPlayerEntity_propertiesct ARRAYCOUNT(CPlayerEntity_properties)
|
|
||||||
|
|
||||||
CEntityComponent CPlayerEntity_components[] = {
|
|
||||||
CEntityComponent()
|
|
||||||
};
|
|
||||||
#define CPlayerEntity_componentsct 0
|
|
||||||
|
|
||||||
|
|
||||||
CEventHandlerEntry CPlayerEntity_handlers[] = {
|
|
||||||
{0x00040000, -1, CEntity::pEventHandler(&CPlayerEntity::
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/Engine/Classes/PlayerEntity.es"
|
|
||||||
Dummy),DEBUGSTRING("CPlayerEntity::Dummy")},
|
|
||||||
};
|
|
||||||
#define CPlayerEntity_handlersct ARRAYCOUNT(CPlayerEntity_handlers)
|
|
||||||
|
|
||||||
CEntity *CPlayerEntity_New(void) { return NULL; };
|
|
||||||
void CPlayerEntity_OnInitClass(void) {};
|
|
||||||
void CPlayerEntity_OnEndClass(void) {};
|
|
||||||
void CPlayerEntity_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CPlayerEntity_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CPlayerEntity_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CPlayerEntity_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CPlayerEntity_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CPlayerEntity, CMovableModelEntity, "PlayerEntity", "", 0x00000004);
|
|
||||||
DECLARE_CTFILENAME(_fnmCPlayerEntity_tbn, "");
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,204 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_AirElemental_INCLUDED
|
|
||||||
#define _EntitiesMP_AirElemental_INCLUDED 1
|
|
||||||
#include <EntitiesMP/EnemyBase.h>
|
|
||||||
#include <EntitiesMP/Twister.h>
|
|
||||||
#define EVENTCODE_EElementalGrow 0x015b0000
|
|
||||||
class DECL_DLL EElementalGrow : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EElementalGrow();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EElementalGrow &e) { e = EElementalGrow(); } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CAirElemental_DLLClass;
|
|
||||||
class CAirElemental : public CEnemyBase {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
BOOL m_bFloat;
|
|
||||||
FLOAT m_fAttPosY;
|
|
||||||
BOOL m_bInitialAnim;
|
|
||||||
CEntityPointer m_penTrigger01;
|
|
||||||
CEntityPointer m_penTrigger02;
|
|
||||||
CEntityPointer m_penTrigger03;
|
|
||||||
CEntityPointer m_penTrigger04;
|
|
||||||
CEntityPointer m_penTrigger05;
|
|
||||||
CEntityPointer m_penTrigger06;
|
|
||||||
CEntityPointer m_penTrigger07;
|
|
||||||
CEntityPointer m_penTrigger08;
|
|
||||||
CEntityPointer m_penTrigger09;
|
|
||||||
CEntityPointer m_penTrigger10;
|
|
||||||
FLOAT m_fAttSizeCurrent;
|
|
||||||
FLOAT m_fAttSizeBegin;
|
|
||||||
FLOAT m_fAttSizeEnd;
|
|
||||||
FLOAT m_fAttSizeRequested;
|
|
||||||
BOOL m_bAttGrow;
|
|
||||||
INDEX m_iSize;
|
|
||||||
FLOAT m_fLastSize;
|
|
||||||
FLOAT m_fTargetSize;
|
|
||||||
FLOAT m_fGrowSpeed;
|
|
||||||
FLOAT m_tmWindNextFire;
|
|
||||||
FLOAT m_fWindFireTimeMin;
|
|
||||||
FLOAT m_fWindFireTimeMax;
|
|
||||||
INDEX m_iWind;
|
|
||||||
BOOL m_bDying;
|
|
||||||
FLOAT m_tmDeath;
|
|
||||||
FLOAT m_fDeathDuration;
|
|
||||||
FLOAT3D m_fWindBlastFirePosBegin;
|
|
||||||
FLOAT3D m_fWindBlastFirePosEnd;
|
|
||||||
FLOAT m_tmLastAnimation;
|
|
||||||
CEntityPointer m_penDeathInflictor;
|
|
||||||
BOOL m_bRenderParticles;
|
|
||||||
CSoundObject m_soFire;
|
|
||||||
CSoundObject m_soVoice;
|
|
||||||
COLOR m_colParticles;
|
|
||||||
CEmiter m_emEmiter;
|
|
||||||
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void Read_t(CTStream * istr);
|
|
||||||
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void Write_t(CTStream * istr);
|
|
||||||
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
virtual CTString GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath);
|
|
||||||
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
virtual const CTFileName & GetComputerMessageName(void)const;
|
|
||||||
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void * GetEntityInfo(void);
|
|
||||||
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
CModelObject * ElementalModel(void);
|
|
||||||
|
|
||||||
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
||||||
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection);
|
|
||||||
|
|
||||||
#line 287 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
INDEX AnimForDamage(FLOAT fDamage);
|
|
||||||
|
|
||||||
#line 293 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void StandingAnimFight(void);
|
|
||||||
|
|
||||||
#line 298 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void StandingAnim(void);
|
|
||||||
|
|
||||||
#line 302 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void WalkingAnim(void);
|
|
||||||
|
|
||||||
#line 307 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void RunningAnim(void);
|
|
||||||
|
|
||||||
#line 312 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void RotatingAnim(void);
|
|
||||||
|
|
||||||
#line 316 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
INDEX AnimForDeath(void);
|
|
||||||
|
|
||||||
#line 325 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void IdleSound(void);
|
|
||||||
|
|
||||||
#line 328 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void WoundSound(void);
|
|
||||||
|
|
||||||
#line 332 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void SizeModel(void);
|
|
||||||
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
BOOL AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient);
|
|
||||||
|
|
||||||
#line 347 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void BlowUp(void);
|
|
||||||
|
|
||||||
#line 367 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void EnemyPostInit(void);
|
|
||||||
|
|
||||||
#line 374 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void LaunchTwister(FLOAT3D vEnemyOffset);
|
|
||||||
|
|
||||||
#line 409 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void PreMoving();
|
|
||||||
|
|
||||||
#line 435 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void GetAirElementalAttachmentData(INDEX iAttachment,FLOATmatrix3D & mRot,FLOAT3D & vPos);
|
|
||||||
|
|
||||||
#line 446 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
FLOAT GetCurrentStretchRatio(void);
|
|
||||||
|
|
||||||
#line 454 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
void RenderParticles(void);
|
|
||||||
#define STATE_CAirElemental_Die 0x015b0001
|
|
||||||
BOOL
|
|
||||||
#line 479 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Die(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0002_Die_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0003_Die_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0004_Die_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0005_Die_04(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CAirElemental_Fire 0x015b0006
|
|
||||||
BOOL
|
|
||||||
#line 503 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Fire(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0007_Fire_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0008_Fire_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0009_Fire_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b000a_Fire_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b000b_Fire_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b000c_Fire_06(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b000d_Fire_07(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b000e_Fire_08(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b000f_Fire_09(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0010_Fire_10(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0011_Fire_11(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0012_Fire_12(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0013_Fire_13(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0014_Fire_14(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0015_Fire_15(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0016_Fire_16(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0017_Fire_17(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CAirElemental_Hit 0x015b0018
|
|
||||||
BOOL
|
|
||||||
#line 580 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Hit(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CAirElemental_Death 0x015b0019
|
|
||||||
BOOL
|
|
||||||
#line 588 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Death(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b001a_Death_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b001b_Death_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b001c_Death_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b001d_Death_04(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CAirElemental_Grow 0x015b001e
|
|
||||||
BOOL
|
|
||||||
#line 603 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Grow(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b001f_Grow_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0020_Grow_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0021_Grow_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0022_Grow_04(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CAirElemental_ElementalLoop 0x015b0023
|
|
||||||
BOOL
|
|
||||||
#line 659 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
ElementalLoop(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0024_ElementalLoop_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0025_ElementalLoop_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CAirElemental_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 675 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0026_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0027_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0028_Main_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b0029_Main_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b002a_Main_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015b002b_Main_06(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_AirElemental_INCLUDED
|
|
|
@ -1,149 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CAirElemental
|
|
||||||
|
|
||||||
CEntityProperty CAirElemental_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x0000015b<<8)+2, offsetof(CAirElemental, m_bFloat), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+3, offsetof(CAirElemental, m_fAttPosY), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x0000015b<<8)+10, offsetof(CAirElemental, m_bInitialAnim), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+20, offsetof(CAirElemental, m_penTrigger01), "AirBoss 90% Trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+21, offsetof(CAirElemental, m_penTrigger02), "AirBoss 80% Trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+22, offsetof(CAirElemental, m_penTrigger03), "AirBoss 70% Trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+23, offsetof(CAirElemental, m_penTrigger04), "AirBoss 60% Trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+24, offsetof(CAirElemental, m_penTrigger05), "AirBoss 50% Trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+25, offsetof(CAirElemental, m_penTrigger06), "AirBoss 40% Trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+26, offsetof(CAirElemental, m_penTrigger07), "AirBoss 30% Trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+27, offsetof(CAirElemental, m_penTrigger08), "AirBoss 20% Trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+28, offsetof(CAirElemental, m_penTrigger09), "AirBoss 10% Trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+29, offsetof(CAirElemental, m_penTrigger10), "AirBoss 05% Trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+30, offsetof(CAirElemental, m_fAttSizeCurrent), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+31, offsetof(CAirElemental, m_fAttSizeBegin), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+32, offsetof(CAirElemental, m_fAttSizeEnd), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+33, offsetof(CAirElemental, m_fAttSizeRequested), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x0000015b<<8)+34, offsetof(CAirElemental, m_bAttGrow), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x0000015b<<8)+35, offsetof(CAirElemental, m_iSize), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+36, offsetof(CAirElemental, m_fLastSize), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+37, offsetof(CAirElemental, m_fTargetSize), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+47, offsetof(CAirElemental, m_fGrowSpeed), "AirBoss Grow Speed", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+43, offsetof(CAirElemental, m_tmWindNextFire), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+44, offsetof(CAirElemental, m_fWindFireTimeMin), "AirBoss Wind Fire Min. Time", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+45, offsetof(CAirElemental, m_fWindFireTimeMax), "AirBoss Wind Fire Max. Time", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x0000015b<<8)+46, offsetof(CAirElemental, m_iWind), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x0000015b<<8)+50, offsetof(CAirElemental, m_bDying), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+51, offsetof(CAirElemental, m_tmDeath), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+52, offsetof(CAirElemental, m_fDeathDuration), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x0000015b<<8)+60, offsetof(CAirElemental, m_fWindBlastFirePosBegin), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x0000015b<<8)+61, offsetof(CAirElemental, m_fWindBlastFirePosEnd), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015b<<8)+70, offsetof(CAirElemental, m_tmLastAnimation), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015b<<8)+90, offsetof(CAirElemental, m_penDeathInflictor), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x0000015b<<8)+91, offsetof(CAirElemental, m_bRenderParticles), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x0000015b<<8)+100, offsetof(CAirElemental, m_soFire), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x0000015b<<8)+101, offsetof(CAirElemental, m_soVoice), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x0000015b<<8)+110, offsetof(CAirElemental, m_colParticles), "Color of particles", 0, 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CAirElemental_propertiesct ARRAYCOUNT(CAirElemental_properties)
|
|
||||||
|
|
||||||
CEntityComponent CAirElemental_components[] = {
|
|
||||||
#define CLASS_BASE ((0x0000015b<<8)+0)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\EnemyBase.ecl"),
|
|
||||||
#define CLASS_TWISTER ((0x0000015b<<8)+1)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_TWISTER, "EFNM" "Classes\\Twister.ecl"),
|
|
||||||
#define CLASS_BLOOD_SPRAY ((0x0000015b<<8)+2)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BLOOD_SPRAY, "EFNM" "Classes\\BloodSpray.ecl"),
|
|
||||||
#define CLASS_PROJECTILE ((0x0000015b<<8)+3)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_PROJECTILE, "EFNM" "Classes\\Projectile.ecl"),
|
|
||||||
#define MODEL_INVISIBLE ((0x0000015b<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_INVISIBLE, "EFNM" "ModelsMP\\Enemies\\AirElemental\\AirElemental.mdl"),
|
|
||||||
#define MODEL_ELEMENTAL ((0x0000015b<<8)+11)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_ELEMENTAL, "EFNM" "ModelsMP\\Enemies\\AirElemental\\Elemental.mdl"),
|
|
||||||
#define TEXTURE_ELEMENTAL ((0x0000015b<<8)+12)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_ELEMENTAL, "EFNM" "ModelsMP\\Enemies\\AirElemental\\Elemental.tex"),
|
|
||||||
#define TEXTURE_DETAIL_ELEM ((0x0000015b<<8)+13)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_DETAIL_ELEM, "EFNM" "ModelsMP\\Enemies\\AirElemental\\Detail.tex"),
|
|
||||||
#define SOUND_FIREWINDBLAST ((0x0000015b<<8)+200)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_FIREWINDBLAST, "EFNM" "ModelsMP\\Enemies\\AirElemental\\Sounds\\BlastFire.wav"),
|
|
||||||
#define SOUND_FIRETWISTER ((0x0000015b<<8)+201)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_FIRETWISTER, "EFNM" "ModelsMP\\Enemies\\AirElemental\\Sounds\\Fire.wav"),
|
|
||||||
#define SOUND_ROAR ((0x0000015b<<8)+202)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_ROAR, "EFNM" "ModelsMP\\Enemies\\AirElemental\\Sounds\\Anger.wav"),
|
|
||||||
#define SOUND_DEATH ((0x0000015b<<8)+203)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_DEATH, "EFNM" "ModelsMP\\Enemies\\AirElemental\\Sounds\\Death.wav"),
|
|
||||||
#define SOUND_EXPLOSION ((0x0000015b<<8)+204)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_EXPLOSION, "EFNM" "ModelsMP\\Enemies\\AirElemental\\Sounds\\Explosion.wav"),
|
|
||||||
};
|
|
||||||
#define CAirElemental_componentsct ARRAYCOUNT(CAirElemental_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CAirElemental_handlers[] = {
|
|
||||||
{0x015b0001, STATE_CEnemyBase_Die, CEntity::pEventHandler(&CAirElemental::
|
|
||||||
#line 479 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Die),DEBUGSTRING("CAirElemental::Die")},
|
|
||||||
{0x015b0002, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0002_Die_01), DEBUGSTRING("CAirElemental::H0x015b0002_Die_01")},
|
|
||||||
{0x015b0003, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0003_Die_02), DEBUGSTRING("CAirElemental::H0x015b0003_Die_02")},
|
|
||||||
{0x015b0004, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0004_Die_03), DEBUGSTRING("CAirElemental::H0x015b0004_Die_03")},
|
|
||||||
{0x015b0005, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0005_Die_04), DEBUGSTRING("CAirElemental::H0x015b0005_Die_04")},
|
|
||||||
{0x015b0006, STATE_CEnemyBase_Fire, CEntity::pEventHandler(&CAirElemental::
|
|
||||||
#line 503 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Fire),DEBUGSTRING("CAirElemental::Fire")},
|
|
||||||
{0x015b0007, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0007_Fire_01), DEBUGSTRING("CAirElemental::H0x015b0007_Fire_01")},
|
|
||||||
{0x015b0008, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0008_Fire_02), DEBUGSTRING("CAirElemental::H0x015b0008_Fire_02")},
|
|
||||||
{0x015b0009, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0009_Fire_03), DEBUGSTRING("CAirElemental::H0x015b0009_Fire_03")},
|
|
||||||
{0x015b000a, -1, CEntity::pEventHandler(&CAirElemental::H0x015b000a_Fire_04), DEBUGSTRING("CAirElemental::H0x015b000a_Fire_04")},
|
|
||||||
{0x015b000b, -1, CEntity::pEventHandler(&CAirElemental::H0x015b000b_Fire_05), DEBUGSTRING("CAirElemental::H0x015b000b_Fire_05")},
|
|
||||||
{0x015b000c, -1, CEntity::pEventHandler(&CAirElemental::H0x015b000c_Fire_06), DEBUGSTRING("CAirElemental::H0x015b000c_Fire_06")},
|
|
||||||
{0x015b000d, -1, CEntity::pEventHandler(&CAirElemental::H0x015b000d_Fire_07), DEBUGSTRING("CAirElemental::H0x015b000d_Fire_07")},
|
|
||||||
{0x015b000e, -1, CEntity::pEventHandler(&CAirElemental::H0x015b000e_Fire_08), DEBUGSTRING("CAirElemental::H0x015b000e_Fire_08")},
|
|
||||||
{0x015b000f, -1, CEntity::pEventHandler(&CAirElemental::H0x015b000f_Fire_09), DEBUGSTRING("CAirElemental::H0x015b000f_Fire_09")},
|
|
||||||
{0x015b0010, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0010_Fire_10), DEBUGSTRING("CAirElemental::H0x015b0010_Fire_10")},
|
|
||||||
{0x015b0011, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0011_Fire_11), DEBUGSTRING("CAirElemental::H0x015b0011_Fire_11")},
|
|
||||||
{0x015b0012, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0012_Fire_12), DEBUGSTRING("CAirElemental::H0x015b0012_Fire_12")},
|
|
||||||
{0x015b0013, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0013_Fire_13), DEBUGSTRING("CAirElemental::H0x015b0013_Fire_13")},
|
|
||||||
{0x015b0014, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0014_Fire_14), DEBUGSTRING("CAirElemental::H0x015b0014_Fire_14")},
|
|
||||||
{0x015b0015, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0015_Fire_15), DEBUGSTRING("CAirElemental::H0x015b0015_Fire_15")},
|
|
||||||
{0x015b0016, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0016_Fire_16), DEBUGSTRING("CAirElemental::H0x015b0016_Fire_16")},
|
|
||||||
{0x015b0017, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0017_Fire_17), DEBUGSTRING("CAirElemental::H0x015b0017_Fire_17")},
|
|
||||||
{0x015b0018, STATE_CEnemyBase_Hit, CEntity::pEventHandler(&CAirElemental::
|
|
||||||
#line 580 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Hit),DEBUGSTRING("CAirElemental::Hit")},
|
|
||||||
{0x015b0019, STATE_CEnemyBase_Death, CEntity::pEventHandler(&CAirElemental::
|
|
||||||
#line 588 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Death),DEBUGSTRING("CAirElemental::Death")},
|
|
||||||
{0x015b001a, -1, CEntity::pEventHandler(&CAirElemental::H0x015b001a_Death_01), DEBUGSTRING("CAirElemental::H0x015b001a_Death_01")},
|
|
||||||
{0x015b001b, -1, CEntity::pEventHandler(&CAirElemental::H0x015b001b_Death_02), DEBUGSTRING("CAirElemental::H0x015b001b_Death_02")},
|
|
||||||
{0x015b001c, -1, CEntity::pEventHandler(&CAirElemental::H0x015b001c_Death_03), DEBUGSTRING("CAirElemental::H0x015b001c_Death_03")},
|
|
||||||
{0x015b001d, -1, CEntity::pEventHandler(&CAirElemental::H0x015b001d_Death_04), DEBUGSTRING("CAirElemental::H0x015b001d_Death_04")},
|
|
||||||
{0x015b001e, -1, CEntity::pEventHandler(&CAirElemental::
|
|
||||||
#line 603 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Grow),DEBUGSTRING("CAirElemental::Grow")},
|
|
||||||
{0x015b001f, -1, CEntity::pEventHandler(&CAirElemental::H0x015b001f_Grow_01), DEBUGSTRING("CAirElemental::H0x015b001f_Grow_01")},
|
|
||||||
{0x015b0020, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0020_Grow_02), DEBUGSTRING("CAirElemental::H0x015b0020_Grow_02")},
|
|
||||||
{0x015b0021, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0021_Grow_03), DEBUGSTRING("CAirElemental::H0x015b0021_Grow_03")},
|
|
||||||
{0x015b0022, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0022_Grow_04), DEBUGSTRING("CAirElemental::H0x015b0022_Grow_04")},
|
|
||||||
{0x015b0023, -1, CEntity::pEventHandler(&CAirElemental::
|
|
||||||
#line 659 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
ElementalLoop),DEBUGSTRING("CAirElemental::ElementalLoop")},
|
|
||||||
{0x015b0024, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0024_ElementalLoop_01), DEBUGSTRING("CAirElemental::H0x015b0024_ElementalLoop_01")},
|
|
||||||
{0x015b0025, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0025_ElementalLoop_02), DEBUGSTRING("CAirElemental::H0x015b0025_ElementalLoop_02")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CAirElemental::
|
|
||||||
#line 675 "D:/SE1_GPL/Sources/EntitiesMP/AirElemental.es"
|
|
||||||
Main),DEBUGSTRING("CAirElemental::Main")},
|
|
||||||
{0x015b0026, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0026_Main_01), DEBUGSTRING("CAirElemental::H0x015b0026_Main_01")},
|
|
||||||
{0x015b0027, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0027_Main_02), DEBUGSTRING("CAirElemental::H0x015b0027_Main_02")},
|
|
||||||
{0x015b0028, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0028_Main_03), DEBUGSTRING("CAirElemental::H0x015b0028_Main_03")},
|
|
||||||
{0x015b0029, -1, CEntity::pEventHandler(&CAirElemental::H0x015b0029_Main_04), DEBUGSTRING("CAirElemental::H0x015b0029_Main_04")},
|
|
||||||
{0x015b002a, -1, CEntity::pEventHandler(&CAirElemental::H0x015b002a_Main_05), DEBUGSTRING("CAirElemental::H0x015b002a_Main_05")},
|
|
||||||
{0x015b002b, -1, CEntity::pEventHandler(&CAirElemental::H0x015b002b_Main_06), DEBUGSTRING("CAirElemental::H0x015b002b_Main_06")},
|
|
||||||
};
|
|
||||||
#define CAirElemental_handlersct ARRAYCOUNT(CAirElemental_handlers)
|
|
||||||
|
|
||||||
CEntity *CAirElemental_New(void) { return new CAirElemental; };
|
|
||||||
void CAirElemental_OnInitClass(void) {};
|
|
||||||
void CAirElemental_OnEndClass(void) {};
|
|
||||||
void CAirElemental_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CAirElemental_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CAirElemental_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CAirElemental_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CAirElemental_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CAirElemental, CEnemyBase, "AirElemental", "Thumbnails\\AirElemental.tbn", 0x0000015b);
|
|
||||||
DECLARE_CTFILENAME(_fnmCAirElemental_tbn, "Thumbnails\\AirElemental.tbn");
|
|
|
@ -1,281 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 6 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "ModelsMP/Enemies/AirElemental/ShockwaveBase.h"
|
|
||||||
#include "ModelsMP/Enemies/AirElemental/Shockwave.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/AirShockwave.h>
|
|
||||||
#include <EntitiesMP/AirShockwave_tables.h>
|
|
||||||
CEntityEvent *EAirShockwave::MakeCopy(void) { CEntityEvent *peeCopy = new EAirShockwave(*this); return peeCopy;}
|
|
||||||
EAirShockwave::EAirShockwave() : CEntityEvent(EVENTCODE_EAirShockwave) {;
|
|
||||||
ClearToDefault(penLauncher);
|
|
||||||
ClearToDefault(fHeight);
|
|
||||||
ClearToDefault(fEndWidth);
|
|
||||||
ClearToDefault(fDuration);
|
|
||||||
};
|
|
||||||
#line 22 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
|
|
||||||
// shockwave
|
|
||||||
#define ECF_SHOCKAWAVE ( \
|
|
||||||
((ECBI_BRUSH|ECBI_MODEL|ECBI_CORPSE|ECBI_ITEM|ECBI_PROJECTILE_MAGIC|ECBI_PROJECTILE_SOLID)<<ECB_TEST) |\
|
|
||||||
((ECBI_BRUSH|ECBI_MODEL|ECBI_CORPSE|ECBI_ITEM|ECBI_PROJECTILE_MAGIC|ECBI_PROJECTILE_SOLID)<<ECB_PASS) |\
|
|
||||||
((ECBI_MODEL)<<ECB_IS))
|
|
||||||
#define EPF_SHOCKAWAVE ( \
|
|
||||||
EPF_ONBLOCK_STOP|EPF_ORIENTEDBYGRAVITY|EPF_ABSOLUTETRANSLATE)
|
|
||||||
|
|
||||||
#define SHOCKWAVE_HEIGHT 5.0f
|
|
||||||
#define SHOCKWAVE_WIDTH 0.1f
|
|
||||||
|
|
||||||
|
|
||||||
void CAirShockwave::SetDefaultProperties(void) {
|
|
||||||
m_penLauncher = NULL;
|
|
||||||
m_fHeight = 0.0f;
|
|
||||||
m_fEndWidth = 0.0f;
|
|
||||||
m_tmBegin = 0.0f;
|
|
||||||
m_tmEnd = 0.0f;
|
|
||||||
m_fDuration = 0.0f;
|
|
||||||
m_bGrowing = FALSE ;
|
|
||||||
m_tmLastGrow = 0.0f;
|
|
||||||
m_fFadeStartTime = 0.0f;
|
|
||||||
m_fFadeStartPercent = 0.6f;
|
|
||||||
m_fStretchY = 0.0f;
|
|
||||||
m_fBeginStretchXZ = 0.0f;
|
|
||||||
m_fEndStretchXZ = 0.0f;
|
|
||||||
m_boxMaxSize = FLOATaabbox3D(FLOAT3D (0 , 0 , 0) , FLOAT3D (1 , 1 , 1));
|
|
||||||
m_bFadeOut = FALSE ;
|
|
||||||
CMovableModelEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
CModelObject * CAirShockwave::ShockwaveModel(void) {
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
CAttachmentModelObject & amo0 = * GetModelObject () -> GetAttachmentModel (SHOCKWAVEBASE_ATTACHMENT_SHOCKWAVE );
|
|
||||||
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
return & (amo0 . amo_moModelObject );
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
BOOL CAirShockwave::AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient) {
|
|
||||||
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
if(m_bGrowing ){
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT3D vSize ;
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT fLifeTime = _pTimer -> GetLerpedCurrentTick () - m_tmBegin ;
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
vSize (1) = (fLifeTime / m_fDuration ) * (m_fEndStretchXZ - m_fBeginStretchXZ ) + m_fBeginStretchXZ ;
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
vSize (2) = m_fStretchY ;
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
vSize (3) = vSize (1);
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
ShockwaveModel () -> StretchModel (vSize );
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
if((fLifeTime / m_fDuration ) > m_fFadeStartPercent && ! m_bFadeOut ){
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_bFadeOut = TRUE ;
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_fFadeStartTime = _pTimer -> GetLerpedCurrentTick ();
|
|
||||||
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_tmLastGrow = _pTimer -> GetLerpedCurrentTick ();
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
if(m_bFadeOut ){
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT fTimeRemain = m_tmEnd - _pTimer -> GetLerpedCurrentTick ();
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT fFadeTime = (1 - m_fFadeStartPercent ) * m_fDuration ;
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
if(fTimeRemain < 0.0f){fTimeRemain = 0.0f;}
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
COLOR colAlpha = ShockwaveModel () -> mo_colBlendColor ;
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
colAlpha = (colAlpha & 0xffffff00) + (COLOR (fTimeRemain / fFadeTime * 0xff) & 0xff);
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
ShockwaveModel () -> mo_colBlendColor = colAlpha ;
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
return CMovableModelEntity :: AdjustShadingParameters (vLightDirection , colLight , colAmbient );
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
void CAirShockwave::LaunchEntity(CEntity * pen) {
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
if(IsOfClass (pen , "AirElemental") || IsOfClass (pen , "Twister")
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
|| IsDerivedFromClass (pen , "Item") || IsOfClass (pen , "AirShockwave")){
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
return ;
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
if(pen -> GetPhysicsFlags () & EPF_MOVABLE ){
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT3D vSpeed ;
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
vSpeed = pen -> GetPlacement () . pl_PositionVector - GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
if(vSpeed (2) < vSpeed . Length () * 0.5f){vSpeed (2) = vSpeed . Length () * 0.5f;}
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
vSpeed . Normalize ();
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
vSpeed = vSpeed * 50.0f;
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
((CMovableEntity &) * pen ) . GiveImpulseTranslationAbsolute (vSpeed );
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
void CAirShockwave::TestForCollisionAndLaunchEntity() {
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
static CStaticStackArray < CEntity * > apenNearEntities ;
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT fLifeTime = _pTimer -> CurrentTick () - m_tmBegin ;
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT fCurrentRadius = Lerp (SHOCKWAVE_WIDTH , m_fEndWidth , fLifeTime / m_fDuration ) / 2.0f;
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOATaabbox3D m_boxCurrent = m_boxMaxSize ;
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_boxCurrent += GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT fBeltWidth = m_fEndWidth * _pTimer -> TickQuantum * 2.0f / m_fDuration ;
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
GetWorld () -> FindEntitiesNearBox (m_boxCurrent , apenNearEntities );
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
for(INDEX i = 0;i < apenNearEntities . Count ();i ++)
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
{
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT fDistance = DistanceTo (this , apenNearEntities [ i ]);
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOATaabbox3D m_boxEntity ;
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
apenNearEntities [ i ] -> GetBoundingBox (m_boxEntity );
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
if(fDistance < (fCurrentRadius + fBeltWidth / 2.0f) && fDistance > (fCurrentRadius - fBeltWidth / 2.0f) &&
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_boxEntity . HasContactWith (m_boxCurrent )){
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
LaunchEntity (apenNearEntities [ i ]);
|
|
||||||
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
CMovableModelEntity :: PreMoving ();
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}
|
|
||||||
BOOL CAirShockwave::
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CAirShockwave_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EAirShockwave, "CAirShockwave::Main expects 'EAirShockwave' as input!"); const EAirShockwave &eas = (const EAirShockwave &)__eeInput;
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
ASSERT (eas . penLauncher != NULL );
|
|
||||||
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
ASSERT (eas . fHeight > 0.0f);
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
ASSERT (eas . fEndWidth > 0.1f);
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
ASSERT (eas . fDuration > 0.0f);
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_penLauncher = eas . penLauncher ;
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_fHeight = eas . fHeight ;
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_fEndWidth = eas . fEndWidth ;
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_fDuration = eas . fDuration ;
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_fStretchY = m_fHeight / SHOCKWAVE_HEIGHT ;
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_fBeginStretchXZ = 1.0f;
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_fEndStretchXZ = m_fEndWidth / SHOCKWAVE_WIDTH ;
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT3D v1 = FLOAT3D (- m_fEndWidth / 2.0f , 0.0f , - m_fEndWidth / 2.0f);
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
FLOAT3D v2 = FLOAT3D (+ m_fEndWidth / 2.0f , m_fHeight , + m_fEndWidth / 2.0f);
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_boxMaxSize = FLOATaabbox3D (v1 , v2 );
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
InitAsModel ();
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
SetPhysicsFlags (EPF_SHOCKAWAVE );
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
SetCollisionFlags (ECF_SHOCKAWAVE );
|
|
||||||
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
SetFlags (GetFlags () | ENF_SEETHROUGH );
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
SetModel (MODEL_INVISIBLE );
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
AddAttachmentToModel (this , * GetModelObject () , SHOCKWAVEBASE_ATTACHMENT_SHOCKWAVE , MODEL_SHOCKWAVE , TEXTURE_SHOCKWAVE , 0 , 0 , 0);
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
GetModelObject () -> StretchModel (FLOAT3D (1.0f , 1.0f , 1.0f));
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
ModelChangeNotify ();
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
ShockwaveModel () -> StretchModel (FLOAT3D (m_fBeginStretchXZ , m_fStretchY , m_fBeginStretchXZ ));
|
|
||||||
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
SetTimerAfter(_pTimer -> TickQuantum );
|
|
||||||
Jump(STATE_CURRENT, 0x015d0001, FALSE, EBegin());return TRUE;}BOOL CAirShockwave::H0x015d0001_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x015d0001
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x015d0002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CAirShockwave::H0x015d0002_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x015d0002
|
|
||||||
;
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_tmBegin = _pTimer -> CurrentTick ();
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_tmEnd = m_tmBegin + m_fDuration ;
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_tmLastGrow = _pTimer -> CurrentTick ();
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
m_bGrowing = TRUE ;
|
|
||||||
#line 198 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
Jump(STATE_CURRENT,0x015d0005, FALSE, EInternal());return TRUE;}BOOL CAirShockwave::H0x015d0005_Main_05(const CEntityEvent &__eeInput)
|
|
||||||
#line 199 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
{
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x015d0005
|
|
||||||
if(!(_pTimer -> CurrentTick () < m_tmEnd )){ Jump(STATE_CURRENT,0x015d0006, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
SetTimerAfter(_pTimer -> TickQuantum );
|
|
||||||
Jump(STATE_CURRENT, 0x015d0003, FALSE, EBegin());return TRUE;}BOOL CAirShockwave::H0x015d0003_Main_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x015d0003
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x015d0004, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CAirShockwave::H0x015d0004_Main_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x015d0004
|
|
||||||
;
|
|
||||||
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
TestForCollisionAndLaunchEntity ();Jump(STATE_CURRENT,0x015d0005, FALSE, EInternal());return TRUE;
|
|
||||||
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
}BOOL CAirShockwave::H0x015d0006_Main_06(const CEntityEvent &__eeInput) {
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x015d0006
|
|
||||||
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_AirShockwave_INCLUDED
|
|
||||||
#define _EntitiesMP_AirShockwave_INCLUDED 1
|
|
||||||
#include <EntitiesMP/BasicEffects.h>
|
|
||||||
#define EVENTCODE_EAirShockwave 0x015d0000
|
|
||||||
class DECL_DLL EAirShockwave : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EAirShockwave();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
CEntityPointer penLauncher;
|
|
||||||
FLOAT fHeight;
|
|
||||||
FLOAT fEndWidth;
|
|
||||||
FLOAT fDuration;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EAirShockwave &e) { e = EAirShockwave(); } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CAirShockwave_DLLClass;
|
|
||||||
class CAirShockwave : public CMovableModelEntity {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
CEntityPointer m_penLauncher;
|
|
||||||
FLOAT m_fHeight;
|
|
||||||
FLOAT m_fEndWidth;
|
|
||||||
FLOAT m_tmBegin;
|
|
||||||
FLOAT m_tmEnd;
|
|
||||||
FLOAT m_fDuration;
|
|
||||||
BOOL m_bGrowing;
|
|
||||||
FLOAT m_tmLastGrow;
|
|
||||||
FLOAT m_fFadeStartTime;
|
|
||||||
FLOAT m_fFadeStartPercent;
|
|
||||||
FLOAT m_fStretchY;
|
|
||||||
FLOAT m_fBeginStretchXZ;
|
|
||||||
FLOAT m_fEndStretchXZ;
|
|
||||||
FLOATaabbox3D m_boxMaxSize;
|
|
||||||
BOOL m_bFadeOut;
|
|
||||||
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
CModelObject * ShockwaveModel(void);
|
|
||||||
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
BOOL AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient);
|
|
||||||
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
void LaunchEntity(CEntity * pen);
|
|
||||||
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
void TestForCollisionAndLaunchEntity();
|
|
||||||
#define STATE_CAirShockwave_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015d0001_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015d0002_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015d0003_Main_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015d0004_Main_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015d0005_Main_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x015d0006_Main_06(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_AirShockwave_INCLUDED
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CAirShockwave
|
|
||||||
|
|
||||||
CEntityProperty CAirShockwave_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000015d<<8)+1, offsetof(CAirShockwave, m_penLauncher), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+2, offsetof(CAirShockwave, m_fHeight), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+3, offsetof(CAirShockwave, m_fEndWidth), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+4, offsetof(CAirShockwave, m_tmBegin), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+5, offsetof(CAirShockwave, m_tmEnd), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+6, offsetof(CAirShockwave, m_fDuration), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x0000015d<<8)+7, offsetof(CAirShockwave, m_bGrowing), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+8, offsetof(CAirShockwave, m_tmLastGrow), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+9, offsetof(CAirShockwave, m_fFadeStartTime), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+10, offsetof(CAirShockwave, m_fFadeStartPercent), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+20, offsetof(CAirShockwave, m_fStretchY), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+21, offsetof(CAirShockwave, m_fBeginStretchXZ), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000015d<<8)+22, offsetof(CAirShockwave, m_fEndStretchXZ), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATAABBOX3D, NULL, (0x0000015d<<8)+25, offsetof(CAirShockwave, m_boxMaxSize), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x0000015d<<8)+30, offsetof(CAirShockwave, m_bFadeOut), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CAirShockwave_propertiesct ARRAYCOUNT(CAirShockwave_properties)
|
|
||||||
|
|
||||||
CEntityComponent CAirShockwave_components[] = {
|
|
||||||
#define CLASS_BASIC_EFFECT ((0x0000015d<<8)+1)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASIC_EFFECT, "EFNM" "Classes\\BasicEffect.ecl"),
|
|
||||||
#define MODEL_INVISIBLE ((0x0000015d<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_INVISIBLE, "EFNM" "ModelsMP\\Enemies\\AirElemental\\ShockwaveBase.mdl"),
|
|
||||||
#define MODEL_SHOCKWAVE ((0x0000015d<<8)+11)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_SHOCKWAVE, "EFNM" "ModelsMP\\Enemies\\AirElemental\\Shockwave.mdl"),
|
|
||||||
#define TEXTURE_SHOCKWAVE ((0x0000015d<<8)+12)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_SHOCKWAVE, "EFNM" "ModelsMP\\Enemies\\AirElemental\\Twister.tex"),
|
|
||||||
};
|
|
||||||
#define CAirShockwave_componentsct ARRAYCOUNT(CAirShockwave_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CAirShockwave_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CAirShockwave::
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/AirShockwave.es"
|
|
||||||
Main),DEBUGSTRING("CAirShockwave::Main")},
|
|
||||||
{0x015d0001, -1, CEntity::pEventHandler(&CAirShockwave::H0x015d0001_Main_01), DEBUGSTRING("CAirShockwave::H0x015d0001_Main_01")},
|
|
||||||
{0x015d0002, -1, CEntity::pEventHandler(&CAirShockwave::H0x015d0002_Main_02), DEBUGSTRING("CAirShockwave::H0x015d0002_Main_02")},
|
|
||||||
{0x015d0003, -1, CEntity::pEventHandler(&CAirShockwave::H0x015d0003_Main_03), DEBUGSTRING("CAirShockwave::H0x015d0003_Main_03")},
|
|
||||||
{0x015d0004, -1, CEntity::pEventHandler(&CAirShockwave::H0x015d0004_Main_04), DEBUGSTRING("CAirShockwave::H0x015d0004_Main_04")},
|
|
||||||
{0x015d0005, -1, CEntity::pEventHandler(&CAirShockwave::H0x015d0005_Main_05), DEBUGSTRING("CAirShockwave::H0x015d0005_Main_05")},
|
|
||||||
{0x015d0006, -1, CEntity::pEventHandler(&CAirShockwave::H0x015d0006_Main_06), DEBUGSTRING("CAirShockwave::H0x015d0006_Main_06")},
|
|
||||||
};
|
|
||||||
#define CAirShockwave_handlersct ARRAYCOUNT(CAirShockwave_handlers)
|
|
||||||
|
|
||||||
CEntity *CAirShockwave_New(void) { return new CAirShockwave; };
|
|
||||||
void CAirShockwave_OnInitClass(void) {};
|
|
||||||
void CAirShockwave_OnEndClass(void) {};
|
|
||||||
void CAirShockwave_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CAirShockwave_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CAirShockwave_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CAirShockwave_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CAirShockwave_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CAirShockwave, CMovableModelEntity, "AirShockwave", "", 0x0000015d);
|
|
||||||
DECLARE_CTFILENAME(_fnmCAirShockwave_tbn, "");
|
|
|
@ -1,521 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "Models/Items/ItemHolder/ItemHolder.h"
|
|
||||||
#include "Models/Items/Ammo/Shells/Shells.h"
|
|
||||||
#include "Models/Items/Ammo/Bullets/Bullets.h"
|
|
||||||
#include "Models/Items/Ammo/Rockets/Rockets.h"
|
|
||||||
#include "Models/Weapons/RocketLauncher/Projectile/Rocket.h"
|
|
||||||
#include "Models/Items/Ammo/Grenades/Grenades.h"
|
|
||||||
#include "Models/Items/Ammo/Electricity/Electricity.h"
|
|
||||||
#include "Models/Items/Ammo/Cannonball/Cannonball.h"
|
|
||||||
#include "Models/Items/Ammo/Cannonball/CannonballQuad.h"
|
|
||||||
#include "ModelsMP/Items/Ammo/SniperBullets/SniperBullets.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/AmmoItem.h>
|
|
||||||
#include <EntitiesMP/AmmoItem_tables.h>
|
|
||||||
CEntityEvent *EAmmoItem::MakeCopy(void) { CEntityEvent *peeCopy = new EAmmoItem(*this); return peeCopy;}
|
|
||||||
EAmmoItem::EAmmoItem() : CEntityEvent(EVENTCODE_EAmmoItem) {;
|
|
||||||
ClearToDefault(EaitType);
|
|
||||||
ClearToDefault(iQuantity);
|
|
||||||
};
|
|
||||||
void CAmmoItem::SetDefaultProperties(void) {
|
|
||||||
m_EaitType = AIT_SHELLS ;
|
|
||||||
CItem::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
void CAmmoItem::Precache(void) {
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
PrecacheSound (SOUND_PICK );
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
void CAmmoItem::RenderParticles(void) {
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
if(GetRenderType () != CEntity :: RT_MODEL || GetSP () -> sp_gmGameMode > CSessionProperties :: GM_COOPERATIVE
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
|| ! ShowItemParticles ())
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
{
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
return ;
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
switch(m_EaitType ){
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_SHELLS :
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 1.0f * 0.75 , 1.0f * 0.75 , PT_STAR04 , 4);
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_BULLETS :
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 1.5f * 0.75 , 1.0f * 0.75 , PT_STAR04 , 6);
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_ROCKETS :
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 1.5f * 0.75 , 1.25f * 0.75 , PT_STAR04 , 6);
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_GRENADES :
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 2.0f * 0.75 , 1.25f * 0.75 , PT_STAR04 , 6);
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_ELECTRICITY :
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 1.5f * 0.75 , 1.125f * 0.75 , PT_STAR04 , 6);
|
|
||||||
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_NUKEBALL :
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 1.25f * 0.75 , 1.0f * 0.75 , PT_STAR04 , 4);
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_IRONBALLS :
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 2.0f * 0.75 , 1.25f * 0.75 , PT_STAR04 , 8);
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_BACKPACK :
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 3.0f * 0.5 , 2.5f * 0.5 , PT_STAR04 , 10);
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_SERIOUSPACK :
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 3.0f * 0.5 , 2.5f * 0.5 , PT_STAR04 , 10);
|
|
||||||
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_NAPALM :
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 3.0f * 0.5 , 2.5f * 0.5 , PT_STAR04 , 10);
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_SNIPERBULLETS :
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Particles_Spiral (this , 1.5f * 0.75 , 1.25f * 0.75 , PT_STAR04 , 6);
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
BOOL CAmmoItem::FillEntityStatistics(EntityStats * pes)
|
|
||||||
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
{
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_ctCount = 1;
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_ctAmmount = m_fValue ;
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
switch(m_EaitType ){
|
|
||||||
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_SHELLS :
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_strName = "Shells";
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * AV_SHELLS ;
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_BULLETS :
|
|
||||||
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_strName = "Bullets";
|
|
||||||
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * AV_BULLETS ;
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_ROCKETS :
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_strName = "Rockets";
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * AV_ROCKETS ;
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_GRENADES :
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_strName = "Grenades";
|
|
||||||
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * AV_GRENADES ;
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_ELECTRICITY :
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_strName = "Electricity";
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * AV_ELECTRICITY ;
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_IRONBALLS :
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_strName = "Ironballs";
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * AV_IRONBALLS ;
|
|
||||||
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 207 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_SERIOUSPACK :
|
|
||||||
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_strName = "SeriousPack";
|
|
||||||
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * 100000;
|
|
||||||
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 211 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_BACKPACK :
|
|
||||||
#line 212 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_strName = "BackPack";
|
|
||||||
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * 100000;
|
|
||||||
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_NAPALM :
|
|
||||||
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_strName = "Napalm";
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * AV_NAPALM ;
|
|
||||||
#line 218 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 219 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_SNIPERBULLETS :
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_strName = "Sniper bullets";
|
|
||||||
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * AV_SNIPERBULLETS ;
|
|
||||||
#line 222 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 224 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
pes -> es_iScore = 0;
|
|
||||||
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 226 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
void CAmmoItem::SetProperties(void)
|
|
||||||
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
{
|
|
||||||
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
switch(m_EaitType ){
|
|
||||||
#line 233 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_SHELLS :
|
|
||||||
#line 234 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = 10.0f;
|
|
||||||
#line 235 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_strDescription . PrintF ("Shells: %d" , (int ) m_fValue );
|
|
||||||
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItem (MODEL_SHELLS , TEXTURE_SHELLS , 0 , 0 , 0);
|
|
||||||
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.25f , 0) , FLOAT3D (1.5 , 1.5 , 0.75f));
|
|
||||||
#line 240 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StretchItem (FLOAT3D (0.75f , 0.75f , 0.75f));
|
|
||||||
#line 241 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_BULLETS :
|
|
||||||
#line 243 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = 50.0f;
|
|
||||||
#line 244 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_strDescription . PrintF ("Bullets: %d" , (int ) m_fValue );
|
|
||||||
#line 247 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItem (MODEL_BULLETS , TEXTURE_BULLETS , 0 , 0 , 0);
|
|
||||||
#line 248 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.6f , 0) , FLOAT3D (3 , 3 , 1.0f));
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StretchItem (FLOAT3D (0.75f , 0.75f , 0.75f));
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 251 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_ROCKETS :
|
|
||||||
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = 5.0f;
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 254 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_strDescription . PrintF ("Rockets: %d" , (int ) m_fValue );
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItem (MODEL_ROCKETS , TEXTURE_ROCKET , 0 , 0 , 0);
|
|
||||||
#line 257 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItemAttachment (ROCKETS_ATTACHMENT_ROCKET1 , MODEL_RC_ROCKET , TEXTURE_ROCKET , 0 , 0 , 0);
|
|
||||||
#line 258 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItemAttachment (ROCKETS_ATTACHMENT_ROCKET2 , MODEL_RC_ROCKET , TEXTURE_ROCKET , 0 , 0 , 0);
|
|
||||||
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItemAttachment (ROCKETS_ATTACHMENT_ROCKET3 , MODEL_RC_ROCKET , TEXTURE_ROCKET , 0 , 0 , 0);
|
|
||||||
#line 260 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItemAttachment (ROCKETS_ATTACHMENT_ROCKET4 , MODEL_RC_ROCKET , TEXTURE_ROCKET , 0 , 0 , 0);
|
|
||||||
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItemAttachment (ROCKETS_ATTACHMENT_ROCKET5 , MODEL_RC_ROCKET , TEXTURE_ROCKET , 0 , 0 , 0);
|
|
||||||
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
SetItemAttachmentAnim (ROCKETS_ATTACHMENT_ROCKET1 , ROCKET_ANIM_FORAMMO );
|
|
||||||
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
SetItemAttachmentAnim (ROCKETS_ATTACHMENT_ROCKET2 , ROCKET_ANIM_FORAMMO );
|
|
||||||
#line 264 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
SetItemAttachmentAnim (ROCKETS_ATTACHMENT_ROCKET3 , ROCKET_ANIM_FORAMMO );
|
|
||||||
#line 265 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
SetItemAttachmentAnim (ROCKETS_ATTACHMENT_ROCKET4 , ROCKET_ANIM_FORAMMO );
|
|
||||||
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
SetItemAttachmentAnim (ROCKETS_ATTACHMENT_ROCKET5 , ROCKET_ANIM_FORAMMO );
|
|
||||||
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.6f , 0) , FLOAT3D (2 , 2 , 0.75f));
|
|
||||||
#line 268 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StretchItem (FLOAT3D (0.75f , 0.75f , 0.75f));
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_GRENADES :
|
|
||||||
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = 5.0f;
|
|
||||||
#line 272 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_strDescription . PrintF ("Grenades: %d" , (int ) m_fValue );
|
|
||||||
#line 275 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItem (MODEL_GRENADES , TEXTURE_GRENADES , 0 , 0 , 0);
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.6f , 0) , FLOAT3D (4 , 4 , 1.0f));
|
|
||||||
#line 277 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StretchItem (FLOAT3D (0.75f , 0.75f , 0.75f));
|
|
||||||
#line 278 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 279 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_ELECTRICITY :
|
|
||||||
#line 280 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = 50.0f;
|
|
||||||
#line 281 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_strDescription . PrintF ("Electricity: %d" , (int ) m_fValue );
|
|
||||||
#line 284 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItem (MODEL_ELECTRICITY , TEXTURE_ELECTRICITY , TEXTURE_EL_EFFECT , TEXTURE_EL_EFFECT , 0);
|
|
||||||
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItemAttachment (ELECTRICITY_ATTACHMENT_EFFECT1 , MODEL_EL_EFFECT , TEXTURE_EL_EFFECT , 0 , 0 , 0);
|
|
||||||
#line 286 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItemAttachment (ELECTRICITY_ATTACHMENT_EFFECT2 , MODEL_EL_EFFECT , TEXTURE_EL_EFFECT , 0 , 0 , 0);
|
|
||||||
#line 287 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItemAttachment (ELECTRICITY_ATTACHMENT_EFFECT3 , MODEL_EL_EFFECT2 , TEXTURE_EL_EFFECT , 0 , 0 , 0);
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.6f , 0) , FLOAT3D (3 , 3 , 0.8f));
|
|
||||||
#line 289 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StretchItem (FLOAT3D (0.75f , 0.75f , 0.75f));
|
|
||||||
#line 290 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 302 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_IRONBALLS :
|
|
||||||
#line 303 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = 4.0f;
|
|
||||||
#line 304 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_strDescription . PrintF ("Iron balls: %d" , (int ) m_fValue );
|
|
||||||
#line 307 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItem (MODEL_CANNONBALLS , TEXTURE_IRONBALL , TEX_REFL_DARKMETAL , TEX_SPEC_WEAK , 0);
|
|
||||||
#line 308 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.75f , 0) , FLOAT3D (5 , 5 , 1.3f));
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StretchItem (FLOAT3D (0.75f , 0.75f , 0.75f));
|
|
||||||
#line 310 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 311 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_NAPALM :
|
|
||||||
#line 312 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = 100.0f;
|
|
||||||
#line 313 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 314 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_strDescription . PrintF ("Napalm: %d" , (int ) m_fValue );
|
|
||||||
#line 316 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItem (MODEL_FL_RESERVOIR , TEXTURE_FL_FUELRESERVOIR , TEX_REFL_LIGHTMETAL01 , TEX_SPEC_MEDIUM , 0);
|
|
||||||
#line 317 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.75f , 0) , FLOAT3D (3 , 3 , 1.0f));
|
|
||||||
#line 318 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StretchItem (FLOAT3D (1.25f , 1.25f , 1.25f));
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 320 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_SERIOUSPACK :
|
|
||||||
#line 321 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = 1.0f;
|
|
||||||
#line 322 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 323 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_strDescription . PrintF ("SeriousPack: %d" , (int ) m_fValue );
|
|
||||||
#line 325 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItem (MODEL_SERIOUSPACK , TEXTURE_SERIOUSPACK , 0 , 0 , 0);
|
|
||||||
#line 326 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.75f , 0) , FLOAT3D (2 , 2 , 1.3f));
|
|
||||||
#line 327 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StretchItem (FLOAT3D (0.5f , 0.5f , 0.5f));
|
|
||||||
#line 328 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 329 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_BACKPACK :
|
|
||||||
#line 330 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = 1.0f;
|
|
||||||
#line 331 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 332 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_strDescription . PrintF ("BackPack: %d" , (int ) m_fValue );
|
|
||||||
#line 334 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItem (MODEL_BACKPACK , TEXTURE_BACKPACK , 0 , 0 , 0);
|
|
||||||
#line 335 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.75f , 0) , FLOAT3D (2 , 2 , 1.3f));
|
|
||||||
#line 336 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StretchItem (FLOAT3D (0.5f , 0.5f , 0.5f));
|
|
||||||
#line 337 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
case AIT_SNIPERBULLETS :
|
|
||||||
#line 339 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = 5.0f;
|
|
||||||
#line 340 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 341 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_strDescription . PrintF ("Sniper bullets: %d" , (int ) m_fValue );
|
|
||||||
#line 343 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddItem (MODEL_SNIPER_BULLETS , TEXTURE_SNIPER_BULLETS , TEX_REFL_LIGHTMETAL01 , TEX_SPEC_MEDIUM , 0);
|
|
||||||
#line 344 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.75f , 0) , FLOAT3D (3 , 3 , 1.0f));
|
|
||||||
#line 345 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StretchItem (FLOAT3D (1.25f , 1.25f , 1.25f));
|
|
||||||
#line 346 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
break ;
|
|
||||||
#line 347 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
default : ASSERTALWAYS ("Uknown ammo");
|
|
||||||
#line 348 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 349 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 351 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
void CAmmoItem::AdjustDifficulty(void)
|
|
||||||
#line 352 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
{
|
|
||||||
#line 353 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fValue = ceil (m_fValue * GetSP () -> sp_fAmmoQuantity );
|
|
||||||
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
if(GetSP () -> sp_bInfiniteAmmo && m_penTarget == NULL ){
|
|
||||||
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 357 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 358 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
BOOL CAmmoItem::
|
|
||||||
#line 361 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
ItemCollected(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CAmmoItem_ItemCollected
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EPass, "CAmmoItem::ItemCollected expects 'EPass' as input!"); const EPass &epass = (const EPass &)__eeInput;
|
|
||||||
#line 362 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
ASSERT (epass . penOther != NULL );
|
|
||||||
#line 365 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
if(GetSP () -> sp_bAmmoStays && ! (m_bPickupOnce || m_bRespawn )){
|
|
||||||
#line 367 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
BOOL bWasPicked = MarkPickedBy (epass . penOther );
|
|
||||||
#line 368 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
if(bWasPicked ){
|
|
||||||
#line 370 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 370 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 371 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 372 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 375 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
EAmmoItem eAmmo ;
|
|
||||||
#line 376 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
eAmmo . EaitType = m_EaitType ;
|
|
||||||
#line 377 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
eAmmo . iQuantity = (INDEX) m_fValue ;
|
|
||||||
#line 379 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
if(epass . penOther -> ReceiveItem (eAmmo )){
|
|
||||||
#line 381 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_soPick . Set3DParameters (50.0f , 1.0f , 1.0f , 1.0f);
|
|
||||||
#line 382 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
if(_pNetwork -> IsPlayerLocal (epass . penOther )){IFeel_PlayEffect ("PU_Ammo");}
|
|
||||||
#line 383 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
if((m_EaitType == AIT_SERIOUSPACK ) || (m_EaitType == AIT_BACKPACK ))
|
|
||||||
#line 384 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
{
|
|
||||||
#line 385 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
PlaySound (m_soPick , SOUND_DEFAULT , SOF_3D );
|
|
||||||
#line 386 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
CPrintF ("^cFF0000^f5Warning!!! Replace old serious pack with new, BackPack entity!^r\n");
|
|
||||||
#line 387 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 388 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
else
|
|
||||||
#line 389 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
{
|
|
||||||
#line 390 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
PlaySound (m_soPick , SOUND_PICK , SOF_3D );
|
|
||||||
#line 391 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 392 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_fPickSoundLen = GetSoundLength (SOUND_PICK );
|
|
||||||
#line 393 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
if(! GetSP () -> sp_bAmmoStays || (m_bPickupOnce || m_bRespawn )){
|
|
||||||
#line 394 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CItem_ItemReceived, FALSE, EVoid());return TRUE;
|
|
||||||
#line 395 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 396 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 397 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 397 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CAmmoItem::
|
|
||||||
#line 400 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CAmmoItem_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CAmmoItem::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 401 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
if(m_EaitType == AIT_NUKEBALL ){
|
|
||||||
#line 402 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
m_EaitType = AIT_SHELLS ;
|
|
||||||
#line 403 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
}
|
|
||||||
#line 404 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Initialize ();
|
|
||||||
#line 405 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
StartModelAnim (ITEMHOLDER_ANIM_MEDIUMOSCILATION , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 406 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
ForceCollisionBoxIndexChange (ITEMHOLDER_COLLISION_BOX_MEDIUM );
|
|
||||||
#line 407 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
SetProperties ();
|
|
||||||
#line 409 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CItem_ItemLoop, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_AmmoItem_INCLUDED
|
|
||||||
#define _EntitiesMP_AmmoItem_INCLUDED 1
|
|
||||||
#include <EntitiesMP/Item.h>
|
|
||||||
extern DECL_DLL CEntityPropertyEnumType AmmoItemType_enum;
|
|
||||||
enum AmmoItemType {
|
|
||||||
AIT_SHELLS = 1,
|
|
||||||
AIT_BULLETS = 2,
|
|
||||||
AIT_ROCKETS = 3,
|
|
||||||
AIT_GRENADES = 4,
|
|
||||||
AIT_ELECTRICITY = 5,
|
|
||||||
AIT_NUKEBALL = 6,
|
|
||||||
AIT_IRONBALLS = 7,
|
|
||||||
AIT_SERIOUSPACK = 8,
|
|
||||||
AIT_BACKPACK = 9,
|
|
||||||
AIT_NAPALM = 10,
|
|
||||||
AIT_SNIPERBULLETS = 11,
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(AmmoItemType &e) { e = (AmmoItemType)0; } ;
|
|
||||||
#define EVENTCODE_EAmmoItem 0x03230000
|
|
||||||
class DECL_DLL EAmmoItem : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EAmmoItem();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
enum AmmoItemType EaitType;
|
|
||||||
INDEX iQuantity;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EAmmoItem &e) { e = EAmmoItem(); } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CAmmoItem_DLLClass;
|
|
||||||
class CAmmoItem : public CItem {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
enum AmmoItemType m_EaitType;
|
|
||||||
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
void RenderParticles(void);
|
|
||||||
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
BOOL FillEntityStatistics(EntityStats * pes);
|
|
||||||
|
|
||||||
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
void SetProperties(void);
|
|
||||||
|
|
||||||
#line 351 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
void AdjustDifficulty(void);
|
|
||||||
#define STATE_CAmmoItem_ItemCollected 0x03230001
|
|
||||||
BOOL
|
|
||||||
#line 361 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
ItemCollected(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CAmmoItem_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 400 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_AmmoItem_INCLUDED
|
|
|
@ -1,131 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
EP_ENUMBEG(AmmoItemType)
|
|
||||||
EP_ENUMVALUE(AIT_SHELLS, "Shells"),
|
|
||||||
EP_ENUMVALUE(AIT_BULLETS, "Bullets"),
|
|
||||||
EP_ENUMVALUE(AIT_ROCKETS, "Rockets"),
|
|
||||||
EP_ENUMVALUE(AIT_GRENADES, "Grenades"),
|
|
||||||
EP_ENUMVALUE(AIT_ELECTRICITY, "Electricity"),
|
|
||||||
EP_ENUMVALUE(AIT_NUKEBALL, "obsolete"),
|
|
||||||
EP_ENUMVALUE(AIT_IRONBALLS, "IronBalls"),
|
|
||||||
EP_ENUMVALUE(AIT_SERIOUSPACK, "SeriousPack - don't use"),
|
|
||||||
EP_ENUMVALUE(AIT_BACKPACK, "BackPack - don't use"),
|
|
||||||
EP_ENUMVALUE(AIT_NAPALM, "Napalm"),
|
|
||||||
EP_ENUMVALUE(AIT_SNIPERBULLETS, "Sniper bullets"),
|
|
||||||
EP_ENUMEND(AmmoItemType);
|
|
||||||
|
|
||||||
#define ENTITYCLASS CAmmoItem
|
|
||||||
|
|
||||||
CEntityProperty CAmmoItem_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &AmmoItemType_enum, (0x00000323<<8)+1, offsetof(CAmmoItem, m_EaitType), "Type", 'Y', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CAmmoItem_propertiesct ARRAYCOUNT(CAmmoItem_properties)
|
|
||||||
|
|
||||||
CEntityComponent CAmmoItem_components[] = {
|
|
||||||
#define CLASS_BASE ((0x00000323<<8)+0)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\Item.ecl"),
|
|
||||||
#define MODEL_SHELLS ((0x00000323<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_SHELLS, "EFNM" "Models\\Items\\Ammo\\Shells\\Shells.mdl"),
|
|
||||||
#define TEXTURE_SHELLS ((0x00000323<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_SHELLS, "EFNM" "Models\\Items\\Ammo\\Shells\\Shells.tex"),
|
|
||||||
#define MODEL_BULLETS ((0x00000323<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BULLETS, "EFNM" "Models\\Items\\Ammo\\Bullets\\Bullets.mdl"),
|
|
||||||
#define TEXTURE_BULLETS ((0x00000323<<8)+11)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BULLETS, "EFNM" "Models\\Items\\Ammo\\Bullets\\Bullets.tex"),
|
|
||||||
#define MODEL_ROCKETS ((0x00000323<<8)+20)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_ROCKETS, "EFNM" "Models\\Items\\Ammo\\Rockets\\Rockets.mdl"),
|
|
||||||
#define MODEL_RC_ROCKET ((0x00000323<<8)+21)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_RC_ROCKET, "EFNM" "Models\\Weapons\\RocketLauncher\\Projectile\\Rocket.mdl"),
|
|
||||||
#define TEXTURE_ROCKET ((0x00000323<<8)+22)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_ROCKET, "EFNM" "Models\\Weapons\\RocketLauncher\\Projectile\\Rocket.tex"),
|
|
||||||
#define MODEL_GRENADES ((0x00000323<<8)+30)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_GRENADES, "EFNM" "Models\\Items\\Ammo\\Grenades\\Grenades.mdl"),
|
|
||||||
#define MODEL_GR_GRENADE ((0x00000323<<8)+31)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_GR_GRENADE, "EFNM" "Models\\Items\\Ammo\\Grenades\\Grenade.mdl"),
|
|
||||||
#define TEXTURE_GRENADES ((0x00000323<<8)+32)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_GRENADES, "EFNM" "Models\\Items\\Ammo\\Grenades\\Grenades.tex"),
|
|
||||||
#define TEXTURE_GR_GRENADE ((0x00000323<<8)+33)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_GR_GRENADE, "EFNM" "Models\\Weapons\\GrenadeLauncher\\Grenade\\Grenade.tex"),
|
|
||||||
#define MODEL_ELECTRICITY ((0x00000323<<8)+40)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_ELECTRICITY, "EFNM" "Models\\Items\\Ammo\\Electricity\\Electricity.mdl"),
|
|
||||||
#define MODEL_EL_EFFECT ((0x00000323<<8)+41)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_EL_EFFECT, "EFNM" "Models\\Items\\Ammo\\Electricity\\Effect.mdl"),
|
|
||||||
#define MODEL_EL_EFFECT2 ((0x00000323<<8)+42)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_EL_EFFECT2, "EFNM" "Models\\Items\\Ammo\\Electricity\\Effect2.mdl"),
|
|
||||||
#define TEXTURE_ELECTRICITY ((0x00000323<<8)+43)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_ELECTRICITY, "EFNM" "Models\\Items\\Ammo\\Electricity\\Electricity.tex"),
|
|
||||||
#define TEXTURE_EL_EFFECT ((0x00000323<<8)+44)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_EL_EFFECT, "EFNM" "Models\\Items\\Ammo\\Electricity\\Effect.tex"),
|
|
||||||
#define MODEL_CANNONBALL ((0x00000323<<8)+50)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CANNONBALL, "EFNM" "Models\\Items\\Ammo\\Cannonball\\Cannonball.mdl"),
|
|
||||||
#define MODEL_CANNONBALLS ((0x00000323<<8)+51)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CANNONBALLS, "EFNM" "Models\\Items\\Ammo\\Cannonball\\CannonballQuad.mdl"),
|
|
||||||
#define TEXTURE_IRONBALL ((0x00000323<<8)+52)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_IRONBALL, "EFNM" "Models\\Weapons\\Cannon\\Projectile\\IronBall.tex"),
|
|
||||||
#define MODEL_BACKPACK ((0x00000323<<8)+60)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BACKPACK, "EFNM" "Models\\Items\\PowerUps\\BackPack\\BackPack.mdl"),
|
|
||||||
#define TEXTURE_BACKPACK ((0x00000323<<8)+61)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BACKPACK, "EFNM" "Models\\Items\\PowerUps\\BackPack\\BackPack.tex"),
|
|
||||||
#define MODEL_SERIOUSPACK ((0x00000323<<8)+70)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_SERIOUSPACK, "EFNM" "Models\\Items\\PowerUps\\SeriousPack\\SeriousPack.mdl"),
|
|
||||||
#define TEXTURE_SERIOUSPACK ((0x00000323<<8)+71)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_SERIOUSPACK, "EFNM" "Models\\Items\\PowerUps\\SeriousPack\\SeriousPack.tex"),
|
|
||||||
#define MODEL_FL_RESERVOIR ((0x00000323<<8)+80)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_FL_RESERVOIR, "EFNM" "ModelsMP\\Items\\Ammo\\Napalm\\Napalm.mdl"),
|
|
||||||
#define TEXTURE_FL_FUELRESERVOIR ((0x00000323<<8)+81)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_FL_FUELRESERVOIR, "EFNM" "ModelsMP\\Weapons\\Flamer\\FuelReservoir.tex"),
|
|
||||||
#define MODEL_SNIPER_BULLETS ((0x00000323<<8)+90)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_SNIPER_BULLETS, "EFNM" "ModelsMP\\Items\\Ammo\\SniperBullets\\SniperBullets.mdl"),
|
|
||||||
#define TEXTURE_SNIPER_BULLETS ((0x00000323<<8)+91)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_SNIPER_BULLETS, "EFNM" "ModelsMP\\Items\\Ammo\\SniperBullets\\SniperBullets.tex"),
|
|
||||||
#define TEXTURE_FLARE ((0x00000323<<8)+100)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_FLARE, "EFNM" "Models\\Items\\Flares\\Flare.tex"),
|
|
||||||
#define MODEL_FLARE ((0x00000323<<8)+101)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_FLARE, "EFNM" "Models\\Items\\Flares\\Flare.mdl"),
|
|
||||||
#define TEX_REFL_BWRIPLES01 ((0x00000323<<8)+200)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_REFL_BWRIPLES01, "EFNM" "Models\\ReflectionTextures\\BWRiples01.tex"),
|
|
||||||
#define TEX_REFL_BWRIPLES02 ((0x00000323<<8)+201)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_REFL_BWRIPLES02, "EFNM" "Models\\ReflectionTextures\\BWRiples02.tex"),
|
|
||||||
#define TEX_REFL_LIGHTMETAL01 ((0x00000323<<8)+202)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_REFL_LIGHTMETAL01, "EFNM" "Models\\ReflectionTextures\\LightMetal01.tex"),
|
|
||||||
#define TEX_REFL_LIGHTBLUEMETAL01 ((0x00000323<<8)+203)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_REFL_LIGHTBLUEMETAL01, "EFNM" "Models\\ReflectionTextures\\LightBlueMetal01.tex"),
|
|
||||||
#define TEX_REFL_DARKMETAL ((0x00000323<<8)+204)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_REFL_DARKMETAL, "EFNM" "Models\\ReflectionTextures\\DarkMetal.tex"),
|
|
||||||
#define TEX_REFL_PURPLE01 ((0x00000323<<8)+205)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_REFL_PURPLE01, "EFNM" "Models\\ReflectionTextures\\Purple01.tex"),
|
|
||||||
#define TEX_SPEC_WEAK ((0x00000323<<8)+210)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_SPEC_WEAK, "EFNM" "Models\\SpecularTextures\\Weak.tex"),
|
|
||||||
#define TEX_SPEC_MEDIUM ((0x00000323<<8)+211)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_SPEC_MEDIUM, "EFNM" "Models\\SpecularTextures\\Medium.tex"),
|
|
||||||
#define TEX_SPEC_STRONG ((0x00000323<<8)+212)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_SPEC_STRONG, "EFNM" "Models\\SpecularTextures\\Strong.tex"),
|
|
||||||
#define SOUND_PICK ((0x00000323<<8)+213)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_PICK, "EFNM" "Sounds\\Items\\Ammo.wav"),
|
|
||||||
#define SOUND_DEFAULT ((0x00000323<<8)+214)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_DEFAULT, "EFNM" "Sounds\\Default.wav"),
|
|
||||||
};
|
|
||||||
#define CAmmoItem_componentsct ARRAYCOUNT(CAmmoItem_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CAmmoItem_handlers[] = {
|
|
||||||
{0x03230001, STATE_CItem_ItemCollected, CEntity::pEventHandler(&CAmmoItem::
|
|
||||||
#line 361 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
ItemCollected),DEBUGSTRING("CAmmoItem::ItemCollected")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CAmmoItem::
|
|
||||||
#line 400 "D:/SE1_GPL/Sources/EntitiesMP/AmmoItem.es"
|
|
||||||
Main),DEBUGSTRING("CAmmoItem::Main")},
|
|
||||||
};
|
|
||||||
#define CAmmoItem_handlersct ARRAYCOUNT(CAmmoItem_handlers)
|
|
||||||
|
|
||||||
CEntity *CAmmoItem_New(void) { return new CAmmoItem; };
|
|
||||||
void CAmmoItem_OnInitClass(void) {};
|
|
||||||
void CAmmoItem_OnEndClass(void) {};
|
|
||||||
void CAmmoItem_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CAmmoItem_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CAmmoItem_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CAmmoItem_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CAmmoItem_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CAmmoItem, CItem, "Ammo Item", "Thumbnails\\AmmoItem.tbn", 0x00000323);
|
|
||||||
DECLARE_CTFILENAME(_fnmCAmmoItem_tbn, "Thumbnails\\AmmoItem.tbn");
|
|
|
@ -1,262 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "Models/Items/ItemHolder/ItemHolder.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/AmmoPack.h>
|
|
||||||
#include <EntitiesMP/AmmoPack_tables.h>
|
|
||||||
CEntityEvent *EAmmoPackItem::MakeCopy(void) { CEntityEvent *peeCopy = new EAmmoPackItem(*this); return peeCopy;}
|
|
||||||
EAmmoPackItem::EAmmoPackItem() : CEntityEvent(EVENTCODE_EAmmoPackItem) {;
|
|
||||||
ClearToDefault(iShells);
|
|
||||||
ClearToDefault(iBullets);
|
|
||||||
ClearToDefault(iRockets);
|
|
||||||
ClearToDefault(iGrenades);
|
|
||||||
ClearToDefault(iNapalm);
|
|
||||||
ClearToDefault(iElectricity);
|
|
||||||
ClearToDefault(iIronBalls);
|
|
||||||
ClearToDefault(iSniperBullets);
|
|
||||||
};
|
|
||||||
void CAmmoPack::SetDefaultProperties(void) {
|
|
||||||
m_aptPackType = APT_CUSTOM ;
|
|
||||||
m_iShells = MAX_SHELLS ;
|
|
||||||
m_iBullets = MAX_BULLETS ;
|
|
||||||
m_iRockets = MAX_ROCKETS ;
|
|
||||||
m_iGrenades = MAX_GRENADES ;
|
|
||||||
m_iNapalm = MAX_NAPALM ;
|
|
||||||
m_iElectricity = MAX_ELECTRICITY ;
|
|
||||||
m_iIronBalls = MAX_IRONBALLS ;
|
|
||||||
m_iSniperBullets = MAX_SNIPERBULLETS ;
|
|
||||||
CItem::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
void CAmmoPack::Precache(void) {
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
PrecacheSound (SOUND_PICK );
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
void CAmmoPack::RenderParticles(void)
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
{
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(GetRenderType () != CEntity :: RT_MODEL || GetSP () -> sp_gmGameMode > CSessionProperties :: GM_COOPERATIVE
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
|| ! ShowItemParticles ())
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
{
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
return ;
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
Particles_Spiral (this , 3.0f * 0.5 , 2.5f * 0.5 , PT_STAR04 , 10);
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
BOOL CAmmoPack::FillEntityStatistics(EntityStats * pes)
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
{
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
pes -> es_ctCount = 1;
|
|
||||||
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
pes -> es_ctAmmount = 1;
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
pes -> es_strName . PrintF ("Back pack: %d Shells, %d Bullets, %d Rockets, %d Grenades, %d Napalm, %d Electricity, %d Iron balls, %d Sniper bullets" ,
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iShells , m_iBullets , m_iRockets , m_iGrenades , m_iNapalm , m_iElectricity , m_iIronBalls , m_iSniperBullets );
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
pes -> es_fValue =
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iShells * AV_SHELLS +
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iBullets * AV_BULLETS +
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iRockets * AV_ROCKETS +
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iGrenades * AV_GRENADES +
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iNapalm * AV_NAPALM +
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iElectricity * AV_ELECTRICITY +
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iIronBalls * AV_IRONBALLS +
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iSniperBullets * AV_SNIPERBULLETS
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
;
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
pes -> es_iScore = 0;
|
|
||||||
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
void CAmmoPack::SetProperties(void)
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
{
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
switch(m_aptPackType )
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
{
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
case APT_SERIOUS :
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_strDescription = "Serious:";
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
AddItem (MODEL_SERIOUSPACK , TEXTURE_SERIOUSPACK , 0 , 0 , 0);
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.75f , 0) , FLOAT3D (2 , 2 , 1.3f));
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
StretchItem (FLOAT3D (0.5f , 0.5f , 0.5f));
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
break ;
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
case APT_CUSTOM :
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_strDescription = "Custom:";
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
AddItem (MODEL_BACKPACK , TEXTURE_BACKPACK , 0 , 0 , 0);
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.75f , 0) , FLOAT3D (2 , 2 , 1.3f));
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
StretchItem (FLOAT3D (0.5f , 0.5f , 0.5f));
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
break ;
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
default : ASSERTALWAYS ("Uknown ammo");
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_fValue = 1.0f;
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 30.0f;
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(m_iShells != 0){m_strDescription . PrintF ("%s: Shells (%d)" , m_strDescription , m_iShells );}
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(m_iBullets != 0){m_strDescription . PrintF ("%s: Bullets (%d)" , m_strDescription , m_iBullets );}
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(m_iRockets != 0){m_strDescription . PrintF ("%s: Rockets (%d)" , m_strDescription , m_iRockets );}
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(m_iGrenades != 0){m_strDescription . PrintF ("%s: Grenades (%d)" , m_strDescription , m_iGrenades );}
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(m_iNapalm != 0){m_strDescription . PrintF ("%s: Napalm (%d)" , m_strDescription , m_iNapalm );}
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(m_iElectricity != 0){m_strDescription . PrintF ("%s: Electricity (%d)" , m_strDescription , m_iElectricity );}
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(m_iIronBalls != 0){m_strDescription . PrintF ("%s: Iron balls (%d)" , m_strDescription , m_iIronBalls );}
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(m_iSniperBullets != 0){m_strDescription . PrintF ("%s: Sniper bullets (%d)" , m_strDescription , m_iSniperBullets );}
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
void CAmmoPack::AdjustDifficulty(void)
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
{
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(GetSP () -> sp_bInfiniteAmmo && m_penTarget == NULL ){
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
BOOL CAmmoPack::
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
ItemCollected(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CAmmoPack_ItemCollected
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EPass, "CAmmoPack::ItemCollected expects 'EPass' as input!"); const EPass &epass = (const EPass &)__eeInput;
|
|
||||||
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
ASSERT (epass . penOther != NULL );
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(GetSP () -> sp_bAmmoStays && ! (m_bPickupOnce || m_bRespawn )){
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
BOOL bWasPicked = MarkPickedBy (epass . penOther );
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(bWasPicked ){
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
EAmmoPackItem eAmmo ;
|
|
||||||
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
eAmmo . iShells = m_iShells ;
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
eAmmo . iBullets = m_iBullets ;
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
eAmmo . iRockets = m_iRockets ;
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
eAmmo . iGrenades = m_iGrenades ;
|
|
||||||
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
eAmmo . iNapalm = m_iNapalm ;
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
eAmmo . iElectricity = m_iElectricity ;
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
eAmmo . iIronBalls = m_iIronBalls ;
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
eAmmo . iSniperBullets = m_iSniperBullets ;
|
|
||||||
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(epass . penOther -> ReceiveItem (eAmmo )){
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_soPick . Set3DParameters (50.0f , 1.0f , 1.0f , 1.0f);
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
PlaySound (m_soPick , SOUND_PICK , SOF_3D );
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_fPickSoundLen = GetSoundLength (SOUND_PICK );
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
if(! GetSP () -> sp_bAmmoStays || (m_bPickupOnce || m_bRespawn )){
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CItem_ItemReceived, FALSE, EVoid());return TRUE;
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
}
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CAmmoPack::
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CAmmoPack_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CAmmoPack::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iShells = Clamp (m_iShells , INDEX (0) , MAX_SHELLS );
|
|
||||||
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iBullets = Clamp (m_iBullets , INDEX (0) , MAX_BULLETS );
|
|
||||||
#line 198 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iRockets = Clamp (m_iRockets , INDEX (0) , MAX_ROCKETS );
|
|
||||||
#line 199 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iGrenades = Clamp (m_iGrenades , INDEX (0) , MAX_GRENADES );
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iNapalm = Clamp (m_iNapalm , INDEX (0) , MAX_NAPALM );
|
|
||||||
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iElectricity = Clamp (m_iElectricity , INDEX (0) , MAX_ELECTRICITY );
|
|
||||||
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iIronBalls = Clamp (m_iIronBalls , INDEX (0) , MAX_IRONBALLS );
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
m_iSniperBullets = Clamp (m_iSniperBullets , INDEX (0) , MAX_SNIPERBULLETS );
|
|
||||||
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
Initialize ();
|
|
||||||
#line 207 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
StartModelAnim (ITEMHOLDER_ANIM_MEDIUMOSCILATION , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
ForceCollisionBoxIndexChange (ITEMHOLDER_COLLISION_BOX_MEDIUM );
|
|
||||||
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
SetProperties ();
|
|
||||||
#line 211 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CItem_ItemLoop, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,66 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_AmmoPack_INCLUDED
|
|
||||||
#define _EntitiesMP_AmmoPack_INCLUDED 1
|
|
||||||
#include <EntitiesMP/Item.h>
|
|
||||||
extern DECL_DLL CEntityPropertyEnumType AmmoPackType_enum;
|
|
||||||
enum AmmoPackType {
|
|
||||||
APT_CUSTOM = 1,
|
|
||||||
APT_SERIOUS = 2,
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(AmmoPackType &e) { e = (AmmoPackType)0; } ;
|
|
||||||
#define EVENTCODE_EAmmoPackItem 0x03260000
|
|
||||||
class DECL_DLL EAmmoPackItem : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EAmmoPackItem();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
INDEX iShells;
|
|
||||||
INDEX iBullets;
|
|
||||||
INDEX iRockets;
|
|
||||||
INDEX iGrenades;
|
|
||||||
INDEX iNapalm;
|
|
||||||
INDEX iElectricity;
|
|
||||||
INDEX iIronBalls;
|
|
||||||
INDEX iSniperBullets;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EAmmoPackItem &e) { e = EAmmoPackItem(); } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CAmmoPack_DLLClass;
|
|
||||||
class CAmmoPack : public CItem {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
enum AmmoPackType m_aptPackType;
|
|
||||||
INDEX m_iShells;
|
|
||||||
INDEX m_iBullets;
|
|
||||||
INDEX m_iRockets;
|
|
||||||
INDEX m_iGrenades;
|
|
||||||
INDEX m_iNapalm;
|
|
||||||
INDEX m_iElectricity;
|
|
||||||
INDEX m_iIronBalls;
|
|
||||||
INDEX m_iSniperBullets;
|
|
||||||
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
void RenderParticles(void);
|
|
||||||
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
BOOL FillEntityStatistics(EntityStats * pes);
|
|
||||||
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
void SetProperties(void);
|
|
||||||
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
void AdjustDifficulty(void);
|
|
||||||
#define STATE_CAmmoPack_ItemCollected 0x03260001
|
|
||||||
BOOL
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
ItemCollected(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CAmmoPack_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_AmmoPack_INCLUDED
|
|
|
@ -1,64 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
EP_ENUMBEG(AmmoPackType)
|
|
||||||
EP_ENUMVALUE(APT_CUSTOM, "Custom pack"),
|
|
||||||
EP_ENUMVALUE(APT_SERIOUS, "Serious pack"),
|
|
||||||
EP_ENUMEND(AmmoPackType);
|
|
||||||
|
|
||||||
#define ENTITYCLASS CAmmoPack
|
|
||||||
|
|
||||||
CEntityProperty CAmmoPack_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &AmmoPackType_enum, (0x00000326<<8)+1, offsetof(CAmmoPack, m_aptPackType), "Type", 'Y', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000326<<8)+10, offsetof(CAmmoPack, m_iShells), "Shells", 'S', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000326<<8)+11, offsetof(CAmmoPack, m_iBullets), "Bullets", 'B', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000326<<8)+12, offsetof(CAmmoPack, m_iRockets), "Rockets", 'C', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000326<<8)+13, offsetof(CAmmoPack, m_iGrenades), "Grenades", 'G', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000326<<8)+14, offsetof(CAmmoPack, m_iNapalm), "Napalm", 'P', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000326<<8)+15, offsetof(CAmmoPack, m_iElectricity), "Electricity", 'E', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000326<<8)+16, offsetof(CAmmoPack, m_iIronBalls), "Iron balls", 'I', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000326<<8)+17, offsetof(CAmmoPack, m_iSniperBullets), "Sniper bullets", 'N', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CAmmoPack_propertiesct ARRAYCOUNT(CAmmoPack_properties)
|
|
||||||
|
|
||||||
CEntityComponent CAmmoPack_components[] = {
|
|
||||||
#define CLASS_BASE ((0x00000326<<8)+0)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\Item.ecl"),
|
|
||||||
#define MODEL_BACKPACK ((0x00000326<<8)+60)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BACKPACK, "EFNM" "Models\\Items\\PowerUps\\BackPack\\BackPack.mdl"),
|
|
||||||
#define TEXTURE_BACKPACK ((0x00000326<<8)+61)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BACKPACK, "EFNM" "Models\\Items\\PowerUps\\BackPack\\BackPack.tex"),
|
|
||||||
#define MODEL_SERIOUSPACK ((0x00000326<<8)+70)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_SERIOUSPACK, "EFNM" "Models\\Items\\PowerUps\\SeriousPack\\SeriousPack.mdl"),
|
|
||||||
#define TEXTURE_SERIOUSPACK ((0x00000326<<8)+71)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_SERIOUSPACK, "EFNM" "Models\\Items\\PowerUps\\SeriousPack\\SeriousPack.tex"),
|
|
||||||
#define TEXTURE_FLARE ((0x00000326<<8)+100)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_FLARE, "EFNM" "Models\\Items\\Flares\\Flare.tex"),
|
|
||||||
#define MODEL_FLARE ((0x00000326<<8)+101)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_FLARE, "EFNM" "Models\\Items\\Flares\\Flare.mdl"),
|
|
||||||
#define SOUND_PICK ((0x00000326<<8)+213)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_PICK, "EFNM" "Sounds\\Items\\Ammo.wav"),
|
|
||||||
};
|
|
||||||
#define CAmmoPack_componentsct ARRAYCOUNT(CAmmoPack_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CAmmoPack_handlers[] = {
|
|
||||||
{0x03260001, STATE_CItem_ItemCollected, CEntity::pEventHandler(&CAmmoPack::
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
ItemCollected),DEBUGSTRING("CAmmoPack::ItemCollected")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CAmmoPack::
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/AmmoPack.es"
|
|
||||||
Main),DEBUGSTRING("CAmmoPack::Main")},
|
|
||||||
};
|
|
||||||
#define CAmmoPack_handlersct ARRAYCOUNT(CAmmoPack_handlers)
|
|
||||||
|
|
||||||
CEntity *CAmmoPack_New(void) { return new CAmmoPack; };
|
|
||||||
void CAmmoPack_OnInitClass(void) {};
|
|
||||||
void CAmmoPack_OnEndClass(void) {};
|
|
||||||
void CAmmoPack_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CAmmoPack_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CAmmoPack_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CAmmoPack_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CAmmoPack_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CAmmoPack, CItem, "Ammo Pack", "Thumbnails\\AmmoPack.tbn", 0x00000326);
|
|
||||||
DECLARE_CTFILENAME(_fnmCAmmoPack_tbn, "Thumbnails\\AmmoPack.tbn");
|
|
|
@ -1,206 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include <EntitiesMP/AnimationHub.h>
|
|
||||||
|
|
||||||
#include <EntitiesMP/AnimationChanger.h>
|
|
||||||
#include <EntitiesMP/AnimationChanger_tables.h>
|
|
||||||
CEntityEvent *EChangeAnim::MakeCopy(void) { CEntityEvent *peeCopy = new EChangeAnim(*this); return peeCopy;}
|
|
||||||
EChangeAnim::EChangeAnim() : CEntityEvent(EVENTCODE_EChangeAnim) {;
|
|
||||||
ClearToDefault(iModelAnim);
|
|
||||||
ClearToDefault(bModelLoop);
|
|
||||||
ClearToDefault(iTextureAnim);
|
|
||||||
ClearToDefault(bTextureLoop);
|
|
||||||
ClearToDefault(iLightAnim);
|
|
||||||
ClearToDefault(iAmbientLightAnim);
|
|
||||||
ClearToDefault(bLightLoop);
|
|
||||||
ClearToDefault(bAmbientLightLoop);
|
|
||||||
ClearToDefault(colAmbient);
|
|
||||||
ClearToDefault(colDiffuse);
|
|
||||||
};
|
|
||||||
void CAnimationChanger::SetDefaultProperties(void) {
|
|
||||||
m_strName = "Animation changer";
|
|
||||||
m_strDescription = "";
|
|
||||||
m_penTarget = NULL;
|
|
||||||
m_iModelAnim = 0;
|
|
||||||
m_bModelLoop = FALSE ;
|
|
||||||
m_iTextureAnim = 0;
|
|
||||||
m_bTextureLoop = FALSE ;
|
|
||||||
m_iLightAnim = 0;
|
|
||||||
m_bLightLoop = FALSE ;
|
|
||||||
m_iAmbientLightAnim = 0;
|
|
||||||
m_bAmbientLightLoop = FALSE ;
|
|
||||||
m_colAmbient = C_dBLUE ;
|
|
||||||
m_colDiffuse = C_GRAY ;
|
|
||||||
CRationalEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
const CTString & CAnimationChanger::GetDescription(void)const {
|
|
||||||
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
((CTString &) m_strDescription ) . PrintF ("-><none>");
|
|
||||||
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
if(m_penTarget != NULL ){
|
|
||||||
#line 54 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
((CTString &) m_strDescription ) . PrintF ("->%s" , m_penTarget -> GetName ());
|
|
||||||
#line 55 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
#line 56 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return m_strDescription ;
|
|
||||||
#line 57 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
CAnimData * CAnimationChanger::GetAnimData(SLONG slPropertyOffset)
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
{
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
CEntity * penTarget = m_penTarget ;
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
if(penTarget == NULL ){
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return NULL ;
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
if(IsOfClass (penTarget , "AnimationHub")){
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
penTarget = ((CAnimationHub *) penTarget ) -> m_penTarget0 ;
|
|
||||||
#line 70 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
if(penTarget == NULL ){
|
|
||||||
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return NULL ;
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
if(IsOfClass (penTarget , "ModelHolder2")){
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
CModelHolder2 * penModel = (CModelHolder2 *) & * penTarget ;
|
|
||||||
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
if(slPropertyOffset == offsetof (CAnimationChanger , m_iModelAnim )){
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return penModel -> GetModelObject () -> GetData ();
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}else if(slPropertyOffset == offsetof (CAnimationChanger , m_iTextureAnim )){
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return penModel -> GetModelObject () -> mo_toTexture . GetData ();
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}else if(slPropertyOffset == offsetof (CAnimationChanger , m_iLightAnim )){
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return penModel -> m_aoLightAnimation . GetData ();
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}else if(IsOfClass (penTarget , "Light")){
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
CLight * penLight = (CLight *) & * penTarget ;
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
if(slPropertyOffset == offsetof (CAnimationChanger , m_iLightAnim ))
|
|
||||||
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
{
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return penLight -> m_aoLightAnimation . GetData ();
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
else if(slPropertyOffset == offsetof (CAnimationChanger , m_iAmbientLightAnim ))
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
{
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return penLight -> m_aoAmbientLightAnimation . GetData ();
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return CEntity :: GetAnimData (slPropertyOffset );
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
BOOL CAnimationChanger::
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CAnimationChanger_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CAnimationChanger::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
SetModel (MODEL_CHANGER );
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
SetModelMainTexture (TEXTURE_CHANGER );
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
if(m_penTarget != NULL &&
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
! IsOfClass (m_penTarget , "AnimationHub") &&
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
! IsOfClass (m_penTarget , "ModelHolder2") &&
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
! IsOfClass (m_penTarget , "Light")){
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
WarningMessage ("Target must be AnimationHub ModelHolder2 or Light!");
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
m_penTarget = NULL ;
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
if(m_penTarget == NULL ){
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x00da0001, FALSE, EBegin());return TRUE;}BOOL CAnimationChanger::H0x00da0001_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00da0001
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
||||||
return TRUE;}ASSERT(FALSE);break;case(EVENTCODE_EStart):{const EStart&e= (EStart&)__eeInput;
|
|
||||||
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
EChangeAnim eChange ;
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
eChange . iModelAnim = m_iModelAnim ;
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
eChange . iTextureAnim = m_iTextureAnim ;
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
eChange . iLightAnim = m_iLightAnim ;
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
eChange . iAmbientLightAnim = m_iAmbientLightAnim ;
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
eChange . bModelLoop = m_bModelLoop ;
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
eChange . bTextureLoop = m_bTextureLoop ;
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
eChange . bLightLoop = m_bLightLoop ;
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
eChange . colAmbient = m_colAmbient ;
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
eChange . colDiffuse = m_colDiffuse ;
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
m_penTarget -> SendEvent (eChange );
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}ASSERT(FALSE);break;default: return FALSE; break;
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
}return TRUE;}BOOL CAnimationChanger::H0x00da0002_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00da0002
|
|
||||||
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,59 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_AnimationChanger_INCLUDED
|
|
||||||
#define _EntitiesMP_AnimationChanger_INCLUDED 1
|
|
||||||
#include <EntitiesMP/ModelHolder2.h>
|
|
||||||
#include <EntitiesMP/Light.h>
|
|
||||||
#define EVENTCODE_EChangeAnim 0x00da0000
|
|
||||||
class DECL_DLL EChangeAnim : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EChangeAnim();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
INDEX iModelAnim;
|
|
||||||
BOOL bModelLoop;
|
|
||||||
INDEX iTextureAnim;
|
|
||||||
BOOL bTextureLoop;
|
|
||||||
INDEX iLightAnim;
|
|
||||||
INDEX iAmbientLightAnim;
|
|
||||||
BOOL bLightLoop;
|
|
||||||
BOOL bAmbientLightLoop;
|
|
||||||
COLOR colAmbient;
|
|
||||||
COLOR colDiffuse;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EChangeAnim &e) { e = EChangeAnim(); } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CAnimationChanger_DLLClass;
|
|
||||||
class CAnimationChanger : public CRationalEntity {
|
|
||||||
public:
|
|
||||||
virtual const CTString &GetName(void) const { return m_strName; };
|
|
||||||
virtual CEntity *GetTarget(void) const { return m_penTarget; };
|
|
||||||
virtual BOOL IsTargetable(void) const { return TRUE; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
CTString m_strName;
|
|
||||||
CTString m_strDescription;
|
|
||||||
CEntityPointer m_penTarget;
|
|
||||||
ANIMATION m_iModelAnim;
|
|
||||||
BOOL m_bModelLoop;
|
|
||||||
ANIMATION m_iTextureAnim;
|
|
||||||
BOOL m_bTextureLoop;
|
|
||||||
ANIMATION m_iLightAnim;
|
|
||||||
BOOL m_bLightLoop;
|
|
||||||
ANIMATION m_iAmbientLightAnim;
|
|
||||||
BOOL m_bAmbientLightLoop;
|
|
||||||
COLOR m_colAmbient;
|
|
||||||
COLOR m_colDiffuse;
|
|
||||||
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
const CTString & GetDescription(void)const;
|
|
||||||
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
CAnimData * GetAnimData(SLONG slPropertyOffset);
|
|
||||||
#define STATE_CAnimationChanger_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00da0001_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00da0002_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_AnimationChanger_INCLUDED
|
|
|
@ -1,50 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CAnimationChanger
|
|
||||||
|
|
||||||
CEntityProperty CAnimationChanger_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000da<<8)+1, offsetof(CAnimationChanger, m_strName), "Name", 'N', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000da<<8)+2, offsetof(CAnimationChanger, m_strDescription), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000da<<8)+3, offsetof(CAnimationChanger, m_penTarget), "Target", 'T', C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ANIMATION, NULL, (0x000000da<<8)+4, offsetof(CAnimationChanger, m_iModelAnim), "Model Animation", 'M', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000da<<8)+5, offsetof(CAnimationChanger, m_bModelLoop), "Model Looping", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ANIMATION, NULL, (0x000000da<<8)+6, offsetof(CAnimationChanger, m_iTextureAnim), "Texture Animation", 'X', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000da<<8)+7, offsetof(CAnimationChanger, m_bTextureLoop), "Texture Looping", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ANIMATION, NULL, (0x000000da<<8)+8, offsetof(CAnimationChanger, m_iLightAnim), "Diffuse Light Animation", 'L', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000da<<8)+9, offsetof(CAnimationChanger, m_bLightLoop), "Diffuse Light Looping", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ANIMATION, NULL, (0x000000da<<8)+10, offsetof(CAnimationChanger, m_iAmbientLightAnim), "Ambient Light Animation", 'B', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000da<<8)+11, offsetof(CAnimationChanger, m_bAmbientLightLoop), "Ambient Light Looping", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x000000da<<8)+12, offsetof(CAnimationChanger, m_colAmbient), "Ambient Light Color", 'A', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x000000da<<8)+13, offsetof(CAnimationChanger, m_colDiffuse), "Diffuse Light Color", 'C', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CAnimationChanger_propertiesct ARRAYCOUNT(CAnimationChanger_properties)
|
|
||||||
|
|
||||||
CEntityComponent CAnimationChanger_components[] = {
|
|
||||||
#define MODEL_CHANGER ((0x000000da<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CHANGER, "EFNM" "Models\\Editor\\AnimationChanger.mdl"),
|
|
||||||
#define TEXTURE_CHANGER ((0x000000da<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_CHANGER, "EFNM" "Models\\Editor\\AnimationChanger.tex"),
|
|
||||||
};
|
|
||||||
#define CAnimationChanger_componentsct ARRAYCOUNT(CAnimationChanger_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CAnimationChanger_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CAnimationChanger::
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/AnimationChanger.es"
|
|
||||||
Main),DEBUGSTRING("CAnimationChanger::Main")},
|
|
||||||
{0x00da0001, -1, CEntity::pEventHandler(&CAnimationChanger::H0x00da0001_Main_01), DEBUGSTRING("CAnimationChanger::H0x00da0001_Main_01")},
|
|
||||||
{0x00da0002, -1, CEntity::pEventHandler(&CAnimationChanger::H0x00da0002_Main_02), DEBUGSTRING("CAnimationChanger::H0x00da0002_Main_02")},
|
|
||||||
};
|
|
||||||
#define CAnimationChanger_handlersct ARRAYCOUNT(CAnimationChanger_handlers)
|
|
||||||
|
|
||||||
CEntity *CAnimationChanger_New(void) { return new CAnimationChanger; };
|
|
||||||
void CAnimationChanger_OnInitClass(void) {};
|
|
||||||
void CAnimationChanger_OnEndClass(void) {};
|
|
||||||
void CAnimationChanger_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CAnimationChanger_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CAnimationChanger_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CAnimationChanger_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CAnimationChanger_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CAnimationChanger, CRationalEntity, "AnimationChanger", "Thumbnails\\AnimationChanger.tbn", 0x000000da);
|
|
||||||
DECLARE_CTFILENAME(_fnmCAnimationChanger_tbn, "Thumbnails\\AnimationChanger.tbn");
|
|
|
@ -1,216 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include <EntitiesMP/AnimationChanger.h>
|
|
||||||
|
|
||||||
#include <EntitiesMP/AnimationHub.h>
|
|
||||||
#include <EntitiesMP/AnimationHub_tables.h>
|
|
||||||
void CAnimationHub::SetDefaultProperties(void) {
|
|
||||||
m_strName = "Animation hub";
|
|
||||||
m_strDescription = "";
|
|
||||||
m_tmDelayEach = 0.0f;
|
|
||||||
m_penTarget0 = NULL;
|
|
||||||
m_penTarget1 = NULL;
|
|
||||||
m_penTarget2 = NULL;
|
|
||||||
m_penTarget3 = NULL;
|
|
||||||
m_penTarget4 = NULL;
|
|
||||||
m_penTarget5 = NULL;
|
|
||||||
m_penTarget6 = NULL;
|
|
||||||
m_penTarget7 = NULL;
|
|
||||||
m_penTarget8 = NULL;
|
|
||||||
m_penTarget9 = NULL;
|
|
||||||
m_tmDelay0 = 0.0f;
|
|
||||||
m_tmDelay1 = 0.0f;
|
|
||||||
m_tmDelay2 = 0.0f;
|
|
||||||
m_tmDelay3 = 0.0f;
|
|
||||||
m_tmDelay4 = 0.0f;
|
|
||||||
m_tmDelay5 = 0.0f;
|
|
||||||
m_tmDelay6 = 0.0f;
|
|
||||||
m_tmDelay7 = 0.0f;
|
|
||||||
m_tmDelay8 = 0.0f;
|
|
||||||
m_tmDelay9 = 0.0f;
|
|
||||||
m_iModelAnim = 0;
|
|
||||||
m_bModelLoop = 0;
|
|
||||||
m_iTextureAnim = 0;
|
|
||||||
m_bTextureLoop = 0;
|
|
||||||
m_iLightAnim = 0;
|
|
||||||
m_bLightLoop = 0;
|
|
||||||
m_colAmbient = 0;
|
|
||||||
m_colDiffuse = 0;
|
|
||||||
m_iCounter = 0;
|
|
||||||
CRationalEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
const CTString & CAnimationHub::GetDescription(void)const {
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
((CTString &) m_strDescription ) . PrintF ("-><none>");
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
if(m_penTarget0 != NULL ){
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
((CTString &) m_strDescription ) . PrintF ("->%s..." , m_penTarget0 -> GetName ());
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
}
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
return m_strDescription ;
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
}
|
|
||||||
BOOL CAnimationHub::
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
RelayEvents(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CAnimationHub_RelayEvents
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CAnimationHub::RelayEvents expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
m_iCounter = 0;
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
Jump(STATE_CURRENT,0x00e40004, FALSE, EInternal());return TRUE;}BOOL CAnimationHub::H0x00e40004_RelayEvents_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e40004
|
|
||||||
if(!(m_iCounter < 10)){ Jump(STATE_CURRENT,0x00e40005, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
FLOAT fDelay = m_tmDelayEach + (& m_tmDelay0 ) [ m_iCounter ];
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
if(!(fDelay > 0)){ Jump(STATE_CURRENT,0x00e40003, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
SetTimerAfter(fDelay );
|
|
||||||
Jump(STATE_CURRENT, 0x00e40001, FALSE, EBegin());return TRUE;}BOOL CAnimationHub::H0x00e40001_RelayEvents_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e40001
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x00e40002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CAnimationHub::H0x00e40002_RelayEvents_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e40002
|
|
||||||
;Jump(STATE_CURRENT,0x00e40003, FALSE, EInternal());return TRUE;}BOOL CAnimationHub::H0x00e40003_RelayEvents_03(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e40003
|
|
||||||
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
CEntity * penTarget = (& m_penTarget0 ) [ m_iCounter ];
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
if(penTarget == NULL ){
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CAnimationHub_WaitChange, TRUE, EVoid());return TRUE;
|
|
||||||
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
}
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
EChangeAnim eca ;
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
eca . iModelAnim = m_iModelAnim ;
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
eca . bModelLoop = m_bModelLoop ;
|
|
||||||
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
eca . iTextureAnim = m_iTextureAnim ;
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
eca . bTextureLoop = m_bTextureLoop ;
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
eca . iLightAnim = m_iLightAnim ;
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
eca . bLightLoop = m_bLightLoop ;
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
eca . colAmbient = m_colAmbient ;
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
eca . colDiffuse = m_colDiffuse ;
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
penTarget -> SendEvent (eca );
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
m_iCounter ++;Jump(STATE_CURRENT,0x00e40004, FALSE, EInternal());return TRUE;
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
}BOOL CAnimationHub::H0x00e40005_RelayEvents_05(const CEntityEvent &__eeInput) {
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e40005
|
|
||||||
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CAnimationHub_WaitChange, TRUE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};BOOL CAnimationHub::
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
WaitChange(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CAnimationHub_WaitChange
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CAnimationHub::WaitChange expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
Jump(STATE_CURRENT,0x00e40009, FALSE, EInternal());return TRUE;}BOOL CAnimationHub::H0x00e40009_WaitChange_03(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e40009
|
|
||||||
if(!(TRUE )){ Jump(STATE_CURRENT,0x00e4000a, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x00e40007, FALSE, EBegin());return TRUE;}BOOL CAnimationHub::H0x00e40007_WaitChange_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e40007
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EChangeAnim):{const EChangeAnim&eca= (EChangeAnim&)__eeInput;
|
|
||||||
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
m_iModelAnim = eca . iModelAnim ;
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
m_bModelLoop = eca . bModelLoop ;
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
m_iTextureAnim = eca . iTextureAnim ;
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
m_bTextureLoop = eca . bTextureLoop ;
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
m_iLightAnim = eca . iLightAnim ;
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
m_bLightLoop = eca . bLightLoop ;
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
m_colAmbient = eca . colAmbient ;
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
m_colDiffuse = eca . colDiffuse ;
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CAnimationHub_RelayEvents, TRUE, EVoid());return TRUE;
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
}ASSERT(FALSE);break;default: return FALSE; break;
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
}return TRUE;}BOOL CAnimationHub::H0x00e40008_WaitChange_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e40008
|
|
||||||
Jump(STATE_CURRENT,0x00e40009, FALSE, EInternal());return TRUE;
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
}BOOL CAnimationHub::H0x00e4000a_WaitChange_04(const CEntityEvent &__eeInput) {
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e4000a
|
|
||||||
ASSERT(FALSE); return TRUE;};BOOL CAnimationHub::
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CAnimationHub_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CAnimationHub::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
SetModel (MODEL_HUB );
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
SetModelMainTexture (TEXTURE_HUB );
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
for(INDEX i = 0;i < 10;i ++){
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
CEntityPointer & penTarget = (& m_penTarget0 ) [ i ];
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
if(penTarget != NULL &&
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
! IsOfClass (penTarget , "ModelHolder2") &&
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
! IsOfClass (penTarget , "Light")){
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
WarningMessage ("All targets must be ModelHolder2 or Light!");
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
penTarget = NULL ;
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
}
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
}
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CAnimationHub_WaitChange, TRUE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,70 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_AnimationHub_INCLUDED
|
|
||||||
#define _EntitiesMP_AnimationHub_INCLUDED 1
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CAnimationHub_DLLClass;
|
|
||||||
class CAnimationHub : public CRationalEntity {
|
|
||||||
public:
|
|
||||||
virtual const CTString &GetName(void) const { return m_strName; };
|
|
||||||
virtual BOOL IsTargetable(void) const { return TRUE; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
CTString m_strName;
|
|
||||||
CTString m_strDescription;
|
|
||||||
FLOAT m_tmDelayEach;
|
|
||||||
CEntityPointer m_penTarget0;
|
|
||||||
CEntityPointer m_penTarget1;
|
|
||||||
CEntityPointer m_penTarget2;
|
|
||||||
CEntityPointer m_penTarget3;
|
|
||||||
CEntityPointer m_penTarget4;
|
|
||||||
CEntityPointer m_penTarget5;
|
|
||||||
CEntityPointer m_penTarget6;
|
|
||||||
CEntityPointer m_penTarget7;
|
|
||||||
CEntityPointer m_penTarget8;
|
|
||||||
CEntityPointer m_penTarget9;
|
|
||||||
FLOAT m_tmDelay0;
|
|
||||||
FLOAT m_tmDelay1;
|
|
||||||
FLOAT m_tmDelay2;
|
|
||||||
FLOAT m_tmDelay3;
|
|
||||||
FLOAT m_tmDelay4;
|
|
||||||
FLOAT m_tmDelay5;
|
|
||||||
FLOAT m_tmDelay6;
|
|
||||||
FLOAT m_tmDelay7;
|
|
||||||
FLOAT m_tmDelay8;
|
|
||||||
FLOAT m_tmDelay9;
|
|
||||||
INDEX m_iModelAnim;
|
|
||||||
BOOL m_bModelLoop;
|
|
||||||
INDEX m_iTextureAnim;
|
|
||||||
BOOL m_bTextureLoop;
|
|
||||||
INDEX m_iLightAnim;
|
|
||||||
BOOL m_bLightLoop;
|
|
||||||
COLOR m_colAmbient;
|
|
||||||
COLOR m_colDiffuse;
|
|
||||||
INDEX m_iCounter;
|
|
||||||
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
const CTString & GetDescription(void)const;
|
|
||||||
#define STATE_CAnimationHub_RelayEvents 0x00e40000
|
|
||||||
BOOL
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
RelayEvents(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e40001_RelayEvents_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e40002_RelayEvents_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e40003_RelayEvents_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e40004_RelayEvents_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e40005_RelayEvents_05(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CAnimationHub_WaitChange 0x00e40006
|
|
||||||
BOOL
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
WaitChange(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e40007_WaitChange_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e40008_WaitChange_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e40009_WaitChange_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e4000a_WaitChange_04(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CAnimationHub_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_AnimationHub_INCLUDED
|
|
|
@ -1,82 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CAnimationHub
|
|
||||||
|
|
||||||
CEntityProperty CAnimationHub_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000e4<<8)+1, offsetof(CAnimationHub, m_strName), "Name", 'N', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000e4<<8)+2, offsetof(CAnimationHub, m_strDescription), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+3, offsetof(CAnimationHub, m_tmDelayEach), "Delay each", 'D', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e4<<8)+10, offsetof(CAnimationHub, m_penTarget0), "Target0", 'T', C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e4<<8)+11, offsetof(CAnimationHub, m_penTarget1), "Target1", 0, C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e4<<8)+12, offsetof(CAnimationHub, m_penTarget2), "Target2", 0, C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e4<<8)+13, offsetof(CAnimationHub, m_penTarget3), "Target3", 0, C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e4<<8)+14, offsetof(CAnimationHub, m_penTarget4), "Target4", 0, C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e4<<8)+15, offsetof(CAnimationHub, m_penTarget5), "Target5", 0, C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e4<<8)+16, offsetof(CAnimationHub, m_penTarget6), "Target6", 0, C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e4<<8)+17, offsetof(CAnimationHub, m_penTarget7), "Target7", 0, C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e4<<8)+18, offsetof(CAnimationHub, m_penTarget8), "Target8", 0, C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e4<<8)+19, offsetof(CAnimationHub, m_penTarget9), "Target9", 0, C_GREEN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+20, offsetof(CAnimationHub, m_tmDelay0), "Delay0", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+21, offsetof(CAnimationHub, m_tmDelay1), "Delay1", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+22, offsetof(CAnimationHub, m_tmDelay2), "Delay2", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+23, offsetof(CAnimationHub, m_tmDelay3), "Delay3", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+24, offsetof(CAnimationHub, m_tmDelay4), "Delay4", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+25, offsetof(CAnimationHub, m_tmDelay5), "Delay5", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+26, offsetof(CAnimationHub, m_tmDelay6), "Delay6", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+27, offsetof(CAnimationHub, m_tmDelay7), "Delay7", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+28, offsetof(CAnimationHub, m_tmDelay8), "Delay8", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e4<<8)+29, offsetof(CAnimationHub, m_tmDelay9), "Delay9", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x000000e4<<8)+100, offsetof(CAnimationHub, m_iModelAnim), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000e4<<8)+101, offsetof(CAnimationHub, m_bModelLoop), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x000000e4<<8)+102, offsetof(CAnimationHub, m_iTextureAnim), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000e4<<8)+103, offsetof(CAnimationHub, m_bTextureLoop), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x000000e4<<8)+104, offsetof(CAnimationHub, m_iLightAnim), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000e4<<8)+105, offsetof(CAnimationHub, m_bLightLoop), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x000000e4<<8)+106, offsetof(CAnimationHub, m_colAmbient), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x000000e4<<8)+107, offsetof(CAnimationHub, m_colDiffuse), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x000000e4<<8)+110, offsetof(CAnimationHub, m_iCounter), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CAnimationHub_propertiesct ARRAYCOUNT(CAnimationHub_properties)
|
|
||||||
|
|
||||||
CEntityComponent CAnimationHub_components[] = {
|
|
||||||
#define MODEL_HUB ((0x000000e4<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_HUB, "EFNM" "Models\\Editor\\AnimationHub.mdl"),
|
|
||||||
#define TEXTURE_HUB ((0x000000e4<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_HUB, "EFNM" "Models\\Editor\\AnimationHub.tex"),
|
|
||||||
};
|
|
||||||
#define CAnimationHub_componentsct ARRAYCOUNT(CAnimationHub_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CAnimationHub_handlers[] = {
|
|
||||||
{0x00e40000, -1, CEntity::pEventHandler(&CAnimationHub::
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
RelayEvents),DEBUGSTRING("CAnimationHub::RelayEvents")},
|
|
||||||
{0x00e40001, -1, CEntity::pEventHandler(&CAnimationHub::H0x00e40001_RelayEvents_01), DEBUGSTRING("CAnimationHub::H0x00e40001_RelayEvents_01")},
|
|
||||||
{0x00e40002, -1, CEntity::pEventHandler(&CAnimationHub::H0x00e40002_RelayEvents_02), DEBUGSTRING("CAnimationHub::H0x00e40002_RelayEvents_02")},
|
|
||||||
{0x00e40003, -1, CEntity::pEventHandler(&CAnimationHub::H0x00e40003_RelayEvents_03), DEBUGSTRING("CAnimationHub::H0x00e40003_RelayEvents_03")},
|
|
||||||
{0x00e40004, -1, CEntity::pEventHandler(&CAnimationHub::H0x00e40004_RelayEvents_04), DEBUGSTRING("CAnimationHub::H0x00e40004_RelayEvents_04")},
|
|
||||||
{0x00e40005, -1, CEntity::pEventHandler(&CAnimationHub::H0x00e40005_RelayEvents_05), DEBUGSTRING("CAnimationHub::H0x00e40005_RelayEvents_05")},
|
|
||||||
{0x00e40006, -1, CEntity::pEventHandler(&CAnimationHub::
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
WaitChange),DEBUGSTRING("CAnimationHub::WaitChange")},
|
|
||||||
{0x00e40007, -1, CEntity::pEventHandler(&CAnimationHub::H0x00e40007_WaitChange_01), DEBUGSTRING("CAnimationHub::H0x00e40007_WaitChange_01")},
|
|
||||||
{0x00e40008, -1, CEntity::pEventHandler(&CAnimationHub::H0x00e40008_WaitChange_02), DEBUGSTRING("CAnimationHub::H0x00e40008_WaitChange_02")},
|
|
||||||
{0x00e40009, -1, CEntity::pEventHandler(&CAnimationHub::H0x00e40009_WaitChange_03), DEBUGSTRING("CAnimationHub::H0x00e40009_WaitChange_03")},
|
|
||||||
{0x00e4000a, -1, CEntity::pEventHandler(&CAnimationHub::H0x00e4000a_WaitChange_04), DEBUGSTRING("CAnimationHub::H0x00e4000a_WaitChange_04")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CAnimationHub::
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/AnimationHub.es"
|
|
||||||
Main),DEBUGSTRING("CAnimationHub::Main")},
|
|
||||||
};
|
|
||||||
#define CAnimationHub_handlersct ARRAYCOUNT(CAnimationHub_handlers)
|
|
||||||
|
|
||||||
CEntity *CAnimationHub_New(void) { return new CAnimationHub; };
|
|
||||||
void CAnimationHub_OnInitClass(void) {};
|
|
||||||
void CAnimationHub_OnEndClass(void) {};
|
|
||||||
void CAnimationHub_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CAnimationHub_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CAnimationHub_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CAnimationHub_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CAnimationHub_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CAnimationHub, CRationalEntity, "AnimationHub", "Thumbnails\\AnimationHub.tbn", 0x000000e4);
|
|
||||||
DECLARE_CTFILENAME(_fnmCAnimationHub_tbn, "Thumbnails\\AnimationHub.tbn");
|
|
|
@ -1,47 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/AreaMarker.h>
|
|
||||||
#include <EntitiesMP/AreaMarker_tables.h>
|
|
||||||
void CAreaMarker::SetDefaultProperties(void) {
|
|
||||||
m_strName = "AreaMarker";
|
|
||||||
m_strDescription = "";
|
|
||||||
m_boxArea = FLOATaabbox3D(FLOAT3D (0 , 0 , 0) , FLOAT3D (10 , 10 , 10));
|
|
||||||
CEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 24 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
void CAreaMarker::GetAreaBox(FLOATaabbox3D & box) {
|
|
||||||
#line 25 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
box = m_boxArea ;
|
|
||||||
#line 26 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
box += GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 27 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
return ;
|
|
||||||
#line 28 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
}
|
|
||||||
BOOL CAreaMarker::
|
|
||||||
#line 31 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CAreaMarker_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CAreaMarker::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 33 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 34 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 35 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 38 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
SetModel (MODEL_AREAMARKER );
|
|
||||||
#line 39 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
SetModelMainTexture (TEXTURE_AREAMARKER );
|
|
||||||
#line 41 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 41 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_AreaMarker_INCLUDED
|
|
||||||
#define _EntitiesMP_AreaMarker_INCLUDED 1
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CAreaMarker_DLLClass;
|
|
||||||
class CAreaMarker : public CEntity {
|
|
||||||
public:
|
|
||||||
virtual const CTString &GetName(void) const { return m_strName; };
|
|
||||||
virtual BOOL IsTargetable(void) const { return TRUE; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
CTString m_strName;
|
|
||||||
CTString m_strDescription;
|
|
||||||
FLOATaabbox3D m_boxArea;
|
|
||||||
|
|
||||||
#line 24 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
void GetAreaBox(FLOATaabbox3D & box);
|
|
||||||
#define STATE_CAreaMarker_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 31 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_AreaMarker_INCLUDED
|
|
|
@ -1,38 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CAreaMarker
|
|
||||||
|
|
||||||
CEntityProperty CAreaMarker_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000ca<<8)+1, offsetof(CAreaMarker, m_strName), "Name", 'N', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000ca<<8)+2, offsetof(CAreaMarker, m_strDescription), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATAABBOX3D, NULL, (0x000000ca<<8)+3, offsetof(CAreaMarker, m_boxArea), "Area box", 'B', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CAreaMarker_propertiesct ARRAYCOUNT(CAreaMarker_properties)
|
|
||||||
|
|
||||||
CEntityComponent CAreaMarker_components[] = {
|
|
||||||
#define MODEL_AREAMARKER ((0x000000ca<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_AREAMARKER, "EFNM" "Models\\Editor\\Axis.mdl"),
|
|
||||||
#define TEXTURE_AREAMARKER ((0x000000ca<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_AREAMARKER, "EFNM" "Models\\Editor\\Vector.tex"),
|
|
||||||
};
|
|
||||||
#define CAreaMarker_componentsct ARRAYCOUNT(CAreaMarker_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CAreaMarker_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CAreaMarker::
|
|
||||||
#line 31 "D:/SE1_GPL/Sources/EntitiesMP/AreaMarker.es"
|
|
||||||
Main),DEBUGSTRING("CAreaMarker::Main")},
|
|
||||||
};
|
|
||||||
#define CAreaMarker_handlersct ARRAYCOUNT(CAreaMarker_handlers)
|
|
||||||
|
|
||||||
CEntity *CAreaMarker_New(void) { return new CAreaMarker; };
|
|
||||||
void CAreaMarker_OnInitClass(void) {};
|
|
||||||
void CAreaMarker_OnEndClass(void) {};
|
|
||||||
void CAreaMarker_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CAreaMarker_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CAreaMarker_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CAreaMarker_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CAreaMarker_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CAreaMarker, CEntity, "AreaMarker", "Thumbnails\\AreaMarker.tbn", 0x000000ca);
|
|
||||||
DECLARE_CTFILENAME(_fnmCAreaMarker_tbn, "Thumbnails\\AreaMarker.tbn");
|
|
|
@ -1,372 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "Models/Items/ItemHolder/ItemHolder.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/ArmorItem.h>
|
|
||||||
#include <EntitiesMP/ArmorItem_tables.h>
|
|
||||||
CEntityEvent *EArmor::MakeCopy(void) { CEntityEvent *peeCopy = new EArmor(*this); return peeCopy;}
|
|
||||||
EArmor::EArmor() : CEntityEvent(EVENTCODE_EArmor) {;
|
|
||||||
ClearToDefault(fArmor);
|
|
||||||
ClearToDefault(bOverTopArmor);
|
|
||||||
};
|
|
||||||
void CArmorItem::SetDefaultProperties(void) {
|
|
||||||
m_EaitType = ARIT_SHARD ;
|
|
||||||
m_bOverTopArmor = FALSE ;
|
|
||||||
m_iSoundComponent = 0;
|
|
||||||
CItem::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
void CArmorItem::Precache(void) {
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
switch(m_EaitType ){
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SHARD : PrecacheSound (SOUND_SHARD );break ;
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SMALL : PrecacheSound (SOUND_SMALL );break ;
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_MEDIUM : PrecacheSound (SOUND_MEDIUM );break ;
|
|
||||||
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_STRONG : PrecacheSound (SOUND_STRONG );break ;
|
|
||||||
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SUPER : PrecacheSound (SOUND_SUPER );break ;
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_HELM : PrecacheSound (SOUND_HELM );break ;
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
BOOL CArmorItem::FillEntityStatistics(EntityStats * pes)
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
{
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
pes -> es_strName = "Armor";
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
pes -> es_ctCount = 1;
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
pes -> es_ctAmmount = m_fValue ;
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
pes -> es_fValue = m_fValue * 2;
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
pes -> es_iScore = 0;
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
switch(m_EaitType ){
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SHARD : pes -> es_strName += " shard";break ;
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SMALL : pes -> es_strName += " small";break ;
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_MEDIUM : pes -> es_strName += " medium";break ;
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_STRONG : pes -> es_strName += " strong";break ;
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SUPER : pes -> es_strName += " super";break ;
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_HELM : pes -> es_strName += " helm";break ;
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
void CArmorItem::RenderParticles(void) {
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
if(GetRenderType () != CEntity :: RT_MODEL || GetSP () -> sp_gmGameMode > CSessionProperties :: GM_COOPERATIVE
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
|| ! ShowItemParticles ())
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
{
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
return ;
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
switch(m_EaitType ){
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SHARD :
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Particles_Emanate (this , 0.75f * 0.75 , 0.75f * 0.75 , PT_STAR04 , 8 , 7.0f);
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SMALL :
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Particles_Emanate (this , 1.0f * 0.75 , 1.0f * 0.75 , PT_STAR04 , 32 , 7.0f);
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_MEDIUM :
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Particles_Emanate (this , 1.5f * 0.75 , 1.5f * 0.75 , PT_STAR04 , 64 , 7.0f);
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_STRONG :
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Particles_Emanate (this , 2.0f * 0.75 , 1.25f * 0.75 , PT_STAR04 , 96 , 7.0f);
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SUPER :
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Particles_Emanate (this , 2.5f * 0.75 , 1.5f * 0.75 , PT_STAR04 , 128 , 7.0f);
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_HELM :
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Particles_Emanate (this , 0.875f * 0.75 , 0.875f * 0.75 , PT_STAR04 , 16 , 7.0f);
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
void CArmorItem::SetProperties(void) {
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
switch(m_EaitType ){
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SHARD :
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
ForceCollisionBoxIndexChange (ITEMHOLDER_COLLISION_BOX_SMALL );
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fValue = 1.0f;
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_bOverTopArmor = TRUE ;
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 10.0f;
|
|
||||||
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_strDescription . PrintF ("Shard - H:%g T:%g" , m_fValue , m_fRespawnTime );
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddItem (MODEL_1 , TEXTURE_1 , 0 , TEX_SPEC_MEDIUM , 0);
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.4f , 0) , FLOAT3D (1.0 , 1.0 , 0.3f));
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
StretchItem (FLOAT3D (0.75f * 0.75 , 0.75f * 0.75 , 0.75f * 0.75));
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_iSoundComponent = SOUND_SHARD ;
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SMALL :
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
ForceCollisionBoxIndexChange (ITEMHOLDER_COLLISION_BOX_MEDIUM );
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fValue = 25.0f;
|
|
||||||
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_bOverTopArmor = FALSE ;
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 10.0f;
|
|
||||||
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_strDescription . PrintF ("Small - H:%g T:%g" , m_fValue , m_fRespawnTime );
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddItem (MODEL_25 , TEXTURE_25 , TEX_REFL_LIGHTMETAL01 , TEX_SPEC_MEDIUM , 0);
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.6f , 0) , FLOAT3D (2 , 2 , 0.5f));
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
StretchItem (FLOAT3D (2.0f , 2.0f , 2.0f));
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_iSoundComponent = SOUND_SMALL ;
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_MEDIUM : {
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
ForceCollisionBoxIndexChange (ITEMHOLDER_COLLISION_BOX_MEDIUM );
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fValue = 50.0f;
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_bOverTopArmor = FALSE ;
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 25.0f;
|
|
||||||
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_strDescription . PrintF ("Medium - H:%g T:%g" , m_fValue , m_fRespawnTime );
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddItem (MODEL_50 , TEXTURE_50 , TEX_REFL_LIGHTMETAL01 , TEX_SPEC_MEDIUM , 0);
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 1.0f , 0) , FLOAT3D (3 , 3 , 0.5f));
|
|
||||||
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
StretchItem (FLOAT3D (2.0f , 2.0f , 2.0f));
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_iSoundComponent = SOUND_MEDIUM ;
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}break ;
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_STRONG :
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
ForceCollisionBoxIndexChange (ITEMHOLDER_COLLISION_BOX_MEDIUM );
|
|
||||||
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fValue = 100.0f;
|
|
||||||
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_bOverTopArmor = FALSE ;
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 60.0f;
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_strDescription . PrintF ("Strong - H:%g T:%g" , m_fValue , m_fRespawnTime );
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddItem (MODEL_100 , TEXTURE_100 , TEX_REFL_LIGHTMETAL01 , TEX_SPEC_MEDIUM , 0);
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.75f , 0) , FLOAT3D (3.5 , 3.5 , 1.0f));
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
StretchItem (FLOAT3D (2.5f , 2.5f , 2.5f));
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_iSoundComponent = SOUND_STRONG ;
|
|
||||||
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SUPER :
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
ForceCollisionBoxIndexChange (ITEMHOLDER_COLLISION_BOX_MEDIUM );
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fValue = 200.0f;
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_bOverTopArmor = TRUE ;
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 120.0f;
|
|
||||||
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_strDescription . PrintF ("Super - H:%g T:%g" , m_fValue , m_fRespawnTime );
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddItem (MODEL_200 , TEXTURE_200 , TEX_REFL_LIGHTMETAL01 , TEX_SPEC_MEDIUM , 0);
|
|
||||||
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.75f , 0) , FLOAT3D (3 , 3 , 1.0f));
|
|
||||||
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
StretchItem (FLOAT3D (2.5f , 2.5f , 2.5f));
|
|
||||||
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_iSoundComponent = SOUND_SUPER ;
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_HELM :
|
|
||||||
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
ForceCollisionBoxIndexChange (ITEMHOLDER_COLLISION_BOX_SMALL );
|
|
||||||
#line 207 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fValue = 5.0f;
|
|
||||||
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_bOverTopArmor = FALSE ;
|
|
||||||
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fRespawnTime = (m_fCustomRespawnTime > 0) ? m_fCustomRespawnTime : 10.0f;
|
|
||||||
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_strDescription . PrintF ("Helm - H:%g T:%g" , m_fValue , m_fRespawnTime );
|
|
||||||
#line 212 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddItem (MODEL_5 , TEXTURE_5 , 0 , TEX_SPEC_MEDIUM , 0);
|
|
||||||
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
AddFlare (MODEL_FLARE , TEXTURE_FLARE , FLOAT3D (0 , 0.5f , 0) , FLOAT3D (1.5 , 1.5 , 0.4f));
|
|
||||||
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
StretchItem (FLOAT3D (0.875f * 0.75 , 0.875f * 0.75 , 0.875f * 0.75));
|
|
||||||
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_iSoundComponent = SOUND_HELM ;
|
|
||||||
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
break ;
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 218 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
void CArmorItem::AdjustDifficulty(void)
|
|
||||||
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
{
|
|
||||||
#line 222 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
if(! GetSP () -> sp_bAllowArmor && m_penTarget == NULL ){
|
|
||||||
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 224 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
BOOL CArmorItem::
|
|
||||||
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
ItemCollected(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CArmorItem_ItemCollected
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EPass, "CArmorItem::ItemCollected expects 'EPass' as input!"); const EPass &epass = (const EPass &)__eeInput;
|
|
||||||
#line 229 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
ASSERT (epass . penOther != NULL );
|
|
||||||
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
if(GetSP () -> sp_bHealthArmorStays && ! (m_bPickupOnce || m_bRespawn )){
|
|
||||||
#line 234 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
BOOL bWasPicked = MarkPickedBy (epass . penOther );
|
|
||||||
#line 235 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
if(bWasPicked ){
|
|
||||||
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
EArmor eArmor ;
|
|
||||||
#line 243 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
eArmor . fArmor = m_fValue ;
|
|
||||||
#line 244 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
eArmor . bOverTopArmor = m_bOverTopArmor ;
|
|
||||||
#line 246 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
if(epass . penOther -> ReceiveItem (eArmor )){
|
|
||||||
#line 248 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
if(_pNetwork -> IsPlayerLocal (epass . penOther ))
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
{
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
switch(m_EaitType )
|
|
||||||
#line 251 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
{
|
|
||||||
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SHARD : IFeel_PlayEffect ("PU_ArmourShard");break ;
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SMALL : IFeel_PlayEffect ("PU_ArmourSmall");break ;
|
|
||||||
#line 254 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_MEDIUM : IFeel_PlayEffect ("PU_ArmourMedium");break ;
|
|
||||||
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_STRONG : IFeel_PlayEffect ("PU_ArmourStrong");break ;
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_SUPER : IFeel_PlayEffect ("PU_ArmourSuper");break ;
|
|
||||||
#line 257 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
case ARIT_HELM : IFeel_PlayEffect ("PU_ArmourHelm");break ;
|
|
||||||
#line 258 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_soPick . Set3DParameters (50.0f , 1.0f , 1.0f , 1.0f);
|
|
||||||
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
PlaySound (m_soPick , m_iSoundComponent , SOF_3D );
|
|
||||||
#line 264 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
m_fPickSoundLen = GetSoundLength (m_iSoundComponent );
|
|
||||||
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
if(! GetSP () -> sp_bHealthArmorStays || (m_bPickupOnce || m_bRespawn )){
|
|
||||||
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CItem_ItemReceived, FALSE, EVoid());return TRUE;
|
|
||||||
#line 268 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
}
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CArmorItem::
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CArmorItem_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CArmorItem::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Initialize ();
|
|
||||||
#line 275 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
StartModelAnim (ITEMHOLDER_ANIM_SMALLOSCILATION , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
SetProperties ();
|
|
||||||
#line 278 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CItem_ItemLoop, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,58 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_ArmorItem_INCLUDED
|
|
||||||
#define _EntitiesMP_ArmorItem_INCLUDED 1
|
|
||||||
#include <EntitiesMP/Item.h>
|
|
||||||
extern DECL_DLL CEntityPropertyEnumType ArmorItemType_enum;
|
|
||||||
enum ArmorItemType {
|
|
||||||
ARIT_SHARD = 0,
|
|
||||||
ARIT_SMALL = 1,
|
|
||||||
ARIT_MEDIUM = 2,
|
|
||||||
ARIT_STRONG = 3,
|
|
||||||
ARIT_SUPER = 4,
|
|
||||||
ARIT_HELM = 5,
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(ArmorItemType &e) { e = (ArmorItemType)0; } ;
|
|
||||||
#define EVENTCODE_EArmor 0x03240000
|
|
||||||
class DECL_DLL EArmor : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EArmor();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
FLOAT fArmor;
|
|
||||||
BOOL bOverTopArmor;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EArmor &e) { e = EArmor(); } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CArmorItem_DLLClass;
|
|
||||||
class CArmorItem : public CItem {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
enum ArmorItemType m_EaitType;
|
|
||||||
BOOL m_bOverTopArmor;
|
|
||||||
INDEX m_iSoundComponent;
|
|
||||||
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
BOOL FillEntityStatistics(EntityStats * pes);
|
|
||||||
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
void RenderParticles(void);
|
|
||||||
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
void SetProperties(void);
|
|
||||||
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
void AdjustDifficulty(void);
|
|
||||||
#define STATE_CArmorItem_ItemCollected 0x03240001
|
|
||||||
BOOL
|
|
||||||
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
ItemCollected(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CArmorItem_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_ArmorItem_INCLUDED
|
|
|
@ -1,92 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
EP_ENUMBEG(ArmorItemType)
|
|
||||||
EP_ENUMVALUE(ARIT_SHARD, "Shard"),
|
|
||||||
EP_ENUMVALUE(ARIT_SMALL, "Small"),
|
|
||||||
EP_ENUMVALUE(ARIT_MEDIUM, "Medium"),
|
|
||||||
EP_ENUMVALUE(ARIT_STRONG, "Strong"),
|
|
||||||
EP_ENUMVALUE(ARIT_SUPER, "Super"),
|
|
||||||
EP_ENUMVALUE(ARIT_HELM, "Helm"),
|
|
||||||
EP_ENUMEND(ArmorItemType);
|
|
||||||
|
|
||||||
#define ENTITYCLASS CArmorItem
|
|
||||||
|
|
||||||
CEntityProperty CArmorItem_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &ArmorItemType_enum, (0x00000324<<8)+1, offsetof(CArmorItem, m_EaitType), "Type", 'Y', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000324<<8)+2, offsetof(CArmorItem, m_bOverTopArmor), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000324<<8)+3, offsetof(CArmorItem, m_iSoundComponent), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CArmorItem_propertiesct ARRAYCOUNT(CArmorItem_properties)
|
|
||||||
|
|
||||||
CEntityComponent CArmorItem_components[] = {
|
|
||||||
#define CLASS_BASE ((0x00000324<<8)+0)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\Item.ecl"),
|
|
||||||
#define MODEL_1 ((0x00000324<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_1, "EFNM" "Models\\Items\\Armor\\Armor_1.mdl"),
|
|
||||||
#define TEXTURE_1 ((0x00000324<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_1, "EFNM" "Models\\Items\\Armor\\Armor_1.tex"),
|
|
||||||
#define MODEL_25 ((0x00000324<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_25, "EFNM" "Models\\Items\\Armor\\Armor_25.mdl"),
|
|
||||||
#define TEXTURE_25 ((0x00000324<<8)+11)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_25, "EFNM" "Models\\Items\\Armor\\Armor_25.tex"),
|
|
||||||
#define MODEL_50 ((0x00000324<<8)+20)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_50, "EFNM" "Models\\Items\\Armor\\Armor_50.mdl"),
|
|
||||||
#define TEXTURE_50 ((0x00000324<<8)+21)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_50, "EFNM" "Models\\Items\\Armor\\Armor_50.tex"),
|
|
||||||
#define MODEL_100 ((0x00000324<<8)+22)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_100, "EFNM" "Models\\Items\\Armor\\Armor_100.mdl"),
|
|
||||||
#define TEXTURE_100 ((0x00000324<<8)+23)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_100, "EFNM" "Models\\Items\\Armor\\Armor_100.tex"),
|
|
||||||
#define MODEL_200 ((0x00000324<<8)+40)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_200, "EFNM" "Models\\Items\\Armor\\Armor_200.mdl"),
|
|
||||||
#define TEXTURE_200 ((0x00000324<<8)+41)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_200, "EFNM" "Models\\Items\\Armor\\Armor_200.tex"),
|
|
||||||
#define MODEL_5 ((0x00000324<<8)+50)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_5, "EFNM" "ModelsMP\\Items\\Armor\\Armor_5.mdl"),
|
|
||||||
#define TEXTURE_5 ((0x00000324<<8)+51)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_5, "EFNM" "ModelsMP\\Items\\Armor\\Armor_5.tex"),
|
|
||||||
#define TEXTURE_FLARE ((0x00000324<<8)+100)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_FLARE, "EFNM" "Models\\Items\\Flares\\Flare.tex"),
|
|
||||||
#define MODEL_FLARE ((0x00000324<<8)+101)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_FLARE, "EFNM" "Models\\Items\\Flares\\Flare.mdl"),
|
|
||||||
#define TEX_REFL_LIGHTMETAL01 ((0x00000324<<8)+200)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_REFL_LIGHTMETAL01, "EFNM" "Models\\ReflectionTextures\\LightMetal01.tex"),
|
|
||||||
#define TEX_SPEC_MEDIUM ((0x00000324<<8)+210)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_SPEC_MEDIUM, "EFNM" "Models\\SpecularTextures\\Medium.tex"),
|
|
||||||
#define SOUND_SHARD ((0x00000324<<8)+301)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_SHARD, "EFNM" "Sounds\\Items\\ArmourShard.wav"),
|
|
||||||
#define SOUND_SMALL ((0x00000324<<8)+302)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_SMALL, "EFNM" "Sounds\\Items\\ArmourSmall.wav"),
|
|
||||||
#define SOUND_MEDIUM ((0x00000324<<8)+303)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_MEDIUM, "EFNM" "Sounds\\Items\\ArmourMedium.wav"),
|
|
||||||
#define SOUND_STRONG ((0x00000324<<8)+304)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_STRONG, "EFNM" "Sounds\\Items\\ArmourStrong.wav"),
|
|
||||||
#define SOUND_SUPER ((0x00000324<<8)+305)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_SUPER, "EFNM" "Sounds\\Items\\ArmourSuper.wav"),
|
|
||||||
#define SOUND_HELM ((0x00000324<<8)+306)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_HELM, "EFNM" "SoundsMP\\Items\\ArmourHelm.wav"),
|
|
||||||
};
|
|
||||||
#define CArmorItem_componentsct ARRAYCOUNT(CArmorItem_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CArmorItem_handlers[] = {
|
|
||||||
{0x03240001, STATE_CItem_ItemCollected, CEntity::pEventHandler(&CArmorItem::
|
|
||||||
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
ItemCollected),DEBUGSTRING("CArmorItem::ItemCollected")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CArmorItem::
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/ArmorItem.es"
|
|
||||||
Main),DEBUGSTRING("CArmorItem::Main")},
|
|
||||||
};
|
|
||||||
#define CArmorItem_handlersct ARRAYCOUNT(CArmorItem_handlers)
|
|
||||||
|
|
||||||
CEntity *CArmorItem_New(void) { return new CArmorItem; };
|
|
||||||
void CArmorItem_OnInitClass(void) {};
|
|
||||||
void CArmorItem_OnEndClass(void) {};
|
|
||||||
void CArmorItem_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CArmorItem_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CArmorItem_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CArmorItem_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CArmorItem_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CArmorItem, CItem, "Armor Item", "Thumbnails\\ArmorItem.tbn", 0x00000324);
|
|
||||||
DECLARE_CTFILENAME(_fnmCArmorItem_tbn, "Thumbnails\\ArmorItem.tbn");
|
|
|
@ -1,87 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/BackgroundViewer.h>
|
|
||||||
#include <EntitiesMP/BackgroundViewer_tables.h>
|
|
||||||
void CBackgroundViewer::SetDefaultProperties(void) {
|
|
||||||
m_bActive = TRUE ;
|
|
||||||
m_penWorldSettingsController = NULL;
|
|
||||||
CMarker::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 25 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
BOOL CBackgroundViewer::IsTargetValid(SLONG slPropertyOffset,CEntity * penTarget)
|
|
||||||
#line 26 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
{
|
|
||||||
#line 27 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
if(penTarget == NULL )
|
|
||||||
#line 28 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
{
|
|
||||||
#line 29 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 30 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
}
|
|
||||||
#line 32 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
if(slPropertyOffset == offsetof (CBackgroundViewer , m_penWorldSettingsController ))
|
|
||||||
#line 33 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
{
|
|
||||||
#line 34 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
return IsOfClass (penTarget , "WorldSettingsController");
|
|
||||||
#line 35 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
}
|
|
||||||
#line 36 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 37 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 39 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
BOOL CBackgroundViewer::HandleEvent(const CEntityEvent & ee) {
|
|
||||||
#line 40 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
if(ee . ee_slEvent == EVENTCODE_EStart ){
|
|
||||||
#line 41 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
GetWorld () -> SetBackgroundViewer (this );
|
|
||||||
#line 42 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
}
|
|
||||||
#line 45 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 46 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
}
|
|
||||||
BOOL CBackgroundViewer::
|
|
||||||
#line 49 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBackgroundViewer_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBackgroundViewer::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 56 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
SetModel (MODEL_MARKER );
|
|
||||||
#line 57 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
SetModelMainTexture (TEXTURE_MARKER );
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
if(m_strName == "Marker"){
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
m_strName = "Background Viewer";
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
}
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
if(m_bActive ){
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
GetWorld () -> SetBackgroundViewer (this );
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
}
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,26 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_BackgroundViewer_INCLUDED
|
|
||||||
#define _EntitiesMP_BackgroundViewer_INCLUDED 1
|
|
||||||
#include <EntitiesMP/Marker.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CBackgroundViewer_DLLClass;
|
|
||||||
class CBackgroundViewer : public CMarker {
|
|
||||||
public:
|
|
||||||
virtual BOOL IsImportant(void) const { return TRUE; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
BOOL m_bActive;
|
|
||||||
CEntityPointer m_penWorldSettingsController;
|
|
||||||
|
|
||||||
#line 25 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
BOOL IsTargetValid(SLONG slPropertyOffset,CEntity * penTarget);
|
|
||||||
|
|
||||||
#line 39 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
BOOL HandleEvent(const CEntityEvent & ee);
|
|
||||||
#define STATE_CBackgroundViewer_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 49 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_BackgroundViewer_INCLUDED
|
|
|
@ -1,37 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CBackgroundViewer
|
|
||||||
|
|
||||||
CEntityProperty CBackgroundViewer_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000d3<<8)+1, offsetof(CBackgroundViewer, m_bActive), "Active", 'A', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000d3<<8)+2, offsetof(CBackgroundViewer, m_penWorldSettingsController), "World settings controller", 'W', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CBackgroundViewer_propertiesct ARRAYCOUNT(CBackgroundViewer_properties)
|
|
||||||
|
|
||||||
CEntityComponent CBackgroundViewer_components[] = {
|
|
||||||
#define MODEL_MARKER ((0x000000d3<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_MARKER, "EFNM" "Models\\Editor\\Axis.mdl"),
|
|
||||||
#define TEXTURE_MARKER ((0x000000d3<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_MARKER, "EFNM" "Models\\Editor\\Vector.tex"),
|
|
||||||
};
|
|
||||||
#define CBackgroundViewer_componentsct ARRAYCOUNT(CBackgroundViewer_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CBackgroundViewer_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CBackgroundViewer::
|
|
||||||
#line 49 "D:/SE1_GPL/Sources/EntitiesMP/BackgroundViewer.es"
|
|
||||||
Main),DEBUGSTRING("CBackgroundViewer::Main")},
|
|
||||||
};
|
|
||||||
#define CBackgroundViewer_handlersct ARRAYCOUNT(CBackgroundViewer_handlers)
|
|
||||||
|
|
||||||
CEntity *CBackgroundViewer_New(void) { return new CBackgroundViewer; };
|
|
||||||
void CBackgroundViewer_OnInitClass(void) {};
|
|
||||||
void CBackgroundViewer_OnEndClass(void) {};
|
|
||||||
void CBackgroundViewer_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CBackgroundViewer_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CBackgroundViewer_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CBackgroundViewer_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CBackgroundViewer_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CBackgroundViewer, CMarker, "Background Viewer", "Thumbnails\\BackgroundViewer.tbn", 0x000000d3);
|
|
||||||
DECLARE_CTFILENAME(_fnmCBackgroundViewer_tbn, "Thumbnails\\BackgroundViewer.tbn");
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,274 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_BasicEffects_INCLUDED
|
|
||||||
#define _EntitiesMP_BasicEffects_INCLUDED 1
|
|
||||||
#include <EntitiesMP/Light.h>
|
|
||||||
extern DECL_DLL CEntityPropertyEnumType BasicEffectType_enum;
|
|
||||||
enum BasicEffectType {
|
|
||||||
BET_NONE = 0,
|
|
||||||
BET_ROCKET = 1,
|
|
||||||
BET_ROCKET_PLANE = 2,
|
|
||||||
BET_GRENADE = 3,
|
|
||||||
BET_GRENADE_PLANE = 4,
|
|
||||||
BET_EXPLOSIONSTAIN = 5,
|
|
||||||
BET_SHOCKWAVE = 6,
|
|
||||||
BET_LASERWAVE = 7,
|
|
||||||
BET_BLOODSPILL = 10,
|
|
||||||
BET_BLOODSTAIN = 11,
|
|
||||||
BET_BLOODSTAINGROW = 19,
|
|
||||||
BET_BLOODEXPLODE = 12,
|
|
||||||
BET_CANNON = 13,
|
|
||||||
BET_CANNON_PLANE = 14,
|
|
||||||
BET_CANNONEXPLOSIONSTAIN = 15,
|
|
||||||
BET_CANNONSHOCKWAVE = 16,
|
|
||||||
BET_TELEPORT = 17,
|
|
||||||
BET_BOMB = 18,
|
|
||||||
BET_BULLETTRAIL = 20,
|
|
||||||
BET_GIZMO_SPLASH_FX = 21,
|
|
||||||
BET_GIZMOSTAIN = 22,
|
|
||||||
BET_BULLETSTAINSTONE = 30,
|
|
||||||
BET_BULLETSTAINSAND = 31,
|
|
||||||
BET_BULLETSTAINWATER = 32,
|
|
||||||
BET_BULLETSTAINUNDERWATER = 33,
|
|
||||||
BET_BULLETSTAINSTONENOSOUND = 34,
|
|
||||||
BET_BULLETSTAINSANDNOSOUND = 35,
|
|
||||||
BET_BULLETSTAINWATERNOSOUND = 36,
|
|
||||||
BET_BULLETSTAINUNDERWATERNOSOUND = 37,
|
|
||||||
BET_BULLETSTAINREDSAND = 38,
|
|
||||||
BET_BULLETSTAINREDSANDNOSOUND = 39,
|
|
||||||
BET_LIGHT_CANNON = 40,
|
|
||||||
BET_CANNON_NOLIGHT = 41,
|
|
||||||
BET_BULLETSTAINGRASS = 42,
|
|
||||||
BET_BULLETSTAINWOOD = 43,
|
|
||||||
BET_BULLETSTAINGRASSNOSOUND = 44,
|
|
||||||
BET_BULLETSTAINWOODNOSOUND = 45,
|
|
||||||
BET_EXPLOSION_DEBRIS = 46,
|
|
||||||
BET_EXPLOSION_SMOKE = 47,
|
|
||||||
BET_SUMMONERSTAREXPLOSION = 48,
|
|
||||||
BET_COLLECT_ENERGY = 49,
|
|
||||||
BET_GROWING_SWIRL = 50,
|
|
||||||
BET_DISAPPEAR_DUST = 52,
|
|
||||||
BET_DUST_FALL = 53,
|
|
||||||
BET_BULLETSTAINSNOW = 54,
|
|
||||||
BET_BULLETSTAINSNOWNOSOUND = 55,
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(BasicEffectType &e) { e = (BasicEffectType)0; } ;
|
|
||||||
#define EVENTCODE_ESpawnEffect 0x02590000
|
|
||||||
class DECL_DLL ESpawnEffect : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
ESpawnEffect();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
enum BasicEffectType betType;
|
|
||||||
FLOAT3D vNormal;
|
|
||||||
FLOAT3D vDirection;
|
|
||||||
FLOAT3D vStretch;
|
|
||||||
COLOR colMuliplier;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(ESpawnEffect &e) { e = ESpawnEffect(); } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CBasicEffect_DLLClass;
|
|
||||||
class CBasicEffect : public CRationalEntity {
|
|
||||||
public:
|
|
||||||
virtual CEntity *GetPredictionPair(void) { return m_penPrediction; };
|
|
||||||
virtual void SetPredictionPair(CEntity *penPair) { m_penPrediction = penPair; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
enum BasicEffectType m_betType;
|
|
||||||
FLOAT m_fWaitTime;
|
|
||||||
FLOAT m_fFadeTime;
|
|
||||||
BOOL m_bFade;
|
|
||||||
FLOAT m_fFadeStartTime;
|
|
||||||
FLOAT m_fFadeStartAlpha;
|
|
||||||
FLOAT3D m_vNormal;
|
|
||||||
FLOAT3D m_vStretch;
|
|
||||||
FLOAT3D m_vDirection;
|
|
||||||
FLOAT m_fDepthSortOffset;
|
|
||||||
FLOAT m_fFadeInSpeed;
|
|
||||||
FLOAT m_tmSpawn;
|
|
||||||
FLOAT m_tmWaitAfterDeath;
|
|
||||||
BOOL m_bLightSource;
|
|
||||||
CAnimObject m_aoLightAnimation;
|
|
||||||
INDEX m_iLightAnimation;
|
|
||||||
COLOR m_colMultiplyColor;
|
|
||||||
CSoundObject m_soEffect;
|
|
||||||
FLOAT m_fSoundTime;
|
|
||||||
enum EffectParticlesType m_eptType;
|
|
||||||
FLOAT m_tmWhenShot;
|
|
||||||
FLOAT3D m_vGravity;
|
|
||||||
CEntityPointer m_penPrediction;
|
|
||||||
CLightSource m_lsLightSource;
|
|
||||||
DECL_DLL void DumpSync_t(CTStream & strm,INDEX iExtensiveSyncCheck);
|
|
||||||
|
|
||||||
#line 336 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void Read_t(CTStream * istr);
|
|
||||||
|
|
||||||
#line 346 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
CLightSource * GetLightSource(void);
|
|
||||||
|
|
||||||
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void SetupLightSource(void);
|
|
||||||
|
|
||||||
#line 423 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void RenderParticles(void);
|
|
||||||
|
|
||||||
#line 476 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
BOOL AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient);
|
|
||||||
|
|
||||||
#line 496 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
FLOAT GetDepthSortOffset(void);
|
|
||||||
|
|
||||||
#line 507 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void SetNonLoopingTexAnims(void);
|
|
||||||
|
|
||||||
#line 517 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void SetNormalForHalfFaceForward(void);
|
|
||||||
|
|
||||||
#line 524 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void SetNormal(void);
|
|
||||||
|
|
||||||
#line 531 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void SetNormalWithRandomBanking(void);
|
|
||||||
|
|
||||||
#line 539 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void FindGravityVectorFromSector(void);
|
|
||||||
|
|
||||||
#line 560 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void SetNormalAndDirection(void);
|
|
||||||
|
|
||||||
#line 587 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void RandomBanking(void);
|
|
||||||
|
|
||||||
#line 594 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void Stretch(void);
|
|
||||||
|
|
||||||
#line 600 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void ParentToNearestPolygonAndStretch(void);
|
|
||||||
|
|
||||||
#line 661 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void ProjectileExplosion(void);
|
|
||||||
|
|
||||||
#line 678 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void ProjectilePlaneExplosion(void);
|
|
||||||
|
|
||||||
#line 690 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BombExplosion(void);
|
|
||||||
|
|
||||||
#line 705 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void GizmoSplashFX(void);
|
|
||||||
|
|
||||||
#line 717 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void ExplosionDebris(void);
|
|
||||||
|
|
||||||
#line 726 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void CollectEnergy(void);
|
|
||||||
|
|
||||||
#line 735 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void GrowingSwirl(void);
|
|
||||||
|
|
||||||
#line 744 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void DisappearDust(void);
|
|
||||||
|
|
||||||
#line 753 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void DustFall(void);
|
|
||||||
|
|
||||||
#line 762 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void SniperResidue(void);
|
|
||||||
|
|
||||||
#line 773 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void ExplosionSmoke(void);
|
|
||||||
|
|
||||||
#line 783 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void GrenadeExplosion(void);
|
|
||||||
|
|
||||||
#line 799 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void GrenadePlaneExplosion(void);
|
|
||||||
|
|
||||||
#line 811 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void CannonExplosion(BOOL bLoVolume,BOOL bNoLight);
|
|
||||||
|
|
||||||
#line 843 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void CannonPlaneExplosion(void);
|
|
||||||
|
|
||||||
#line 855 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void Stain(void);
|
|
||||||
|
|
||||||
#line 865 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void CannonStain(void);
|
|
||||||
|
|
||||||
#line 881 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void ShockWave(void);
|
|
||||||
|
|
||||||
#line 894 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void CannonShockWave(void);
|
|
||||||
|
|
||||||
#line 908 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void LaserWave(void);
|
|
||||||
|
|
||||||
#line 926 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void TeleportEffect(void);
|
|
||||||
|
|
||||||
#line 946 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void SummonerStarExplosion();
|
|
||||||
|
|
||||||
#line 961 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BulletStainSand(BOOL bSound);
|
|
||||||
|
|
||||||
#line 986 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BulletStainRedSand(BOOL bSound);
|
|
||||||
|
|
||||||
#line 1012 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BulletStainStone(BOOL bSound,BOOL bSmoke);
|
|
||||||
|
|
||||||
#line 1039 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BulletStainWater(BOOL bSound);
|
|
||||||
|
|
||||||
#line 1064 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BulletTrail(void);
|
|
||||||
|
|
||||||
#line 1075 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BulletStainGrass(BOOL bSound);
|
|
||||||
|
|
||||||
#line 1100 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BulletStainWood(BOOL bSound);
|
|
||||||
|
|
||||||
#line 1125 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BulletStainSnow(BOOL bSound);
|
|
||||||
|
|
||||||
#line 1156 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BloodExplode(void);
|
|
||||||
|
|
||||||
#line 1190 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BloodStain(void);
|
|
||||||
|
|
||||||
#line 1228 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BloodStainGrow(void);
|
|
||||||
|
|
||||||
#line 1265 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void GizmoStain(void);
|
|
||||||
|
|
||||||
#line 1301 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
void BloodSpill(COLOR colBloodSpillColor);
|
|
||||||
#define STATE_CBasicEffect_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 1346 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x02590001_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x02590002_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBasicEffect_EffectLoop 0x02590003
|
|
||||||
BOOL
|
|
||||||
#line 1444 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
EffectLoop(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x02590004_EffectLoop_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x02590005_EffectLoop_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x02590006_EffectLoop_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x02590007_EffectLoop_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x02590008_EffectLoop_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x02590009_EffectLoop_06(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0259000a_EffectLoop_07(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0259000b_EffectLoop_08(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0259000c_EffectLoop_09(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0259000d_EffectLoop_10(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0259000e_EffectLoop_11(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0259000f_EffectLoop_12(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_BasicEffects_INCLUDED
|
|
|
@ -1,230 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
EP_ENUMBEG(BasicEffectType)
|
|
||||||
EP_ENUMVALUE(BET_NONE, "None"),
|
|
||||||
EP_ENUMVALUE(BET_ROCKET, "Rocket"),
|
|
||||||
EP_ENUMVALUE(BET_ROCKET_PLANE, "Rocket plane"),
|
|
||||||
EP_ENUMVALUE(BET_GRENADE, "Grenade"),
|
|
||||||
EP_ENUMVALUE(BET_GRENADE_PLANE, "Grenade plane"),
|
|
||||||
EP_ENUMVALUE(BET_EXPLOSIONSTAIN, "Explosionstain"),
|
|
||||||
EP_ENUMVALUE(BET_SHOCKWAVE, "Shockwave"),
|
|
||||||
EP_ENUMVALUE(BET_LASERWAVE, "Laserwave"),
|
|
||||||
EP_ENUMVALUE(BET_BLOODSPILL, "Blood spill"),
|
|
||||||
EP_ENUMVALUE(BET_BLOODSTAIN, "Blood stain"),
|
|
||||||
EP_ENUMVALUE(BET_BLOODSTAINGROW, "Blood staingrow"),
|
|
||||||
EP_ENUMVALUE(BET_BLOODEXPLODE, "Blood explode"),
|
|
||||||
EP_ENUMVALUE(BET_CANNON, "Cannon"),
|
|
||||||
EP_ENUMVALUE(BET_CANNON_PLANE, "Cannon plane"),
|
|
||||||
EP_ENUMVALUE(BET_CANNONEXPLOSIONSTAIN, "Cannon explosion stain"),
|
|
||||||
EP_ENUMVALUE(BET_CANNONSHOCKWAVE, "Cannon shockwave"),
|
|
||||||
EP_ENUMVALUE(BET_TELEPORT, "Teleport"),
|
|
||||||
EP_ENUMVALUE(BET_BOMB, "Bomb"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETTRAIL, "Bullet trail"),
|
|
||||||
EP_ENUMVALUE(BET_GIZMO_SPLASH_FX, "Gizmo splash fx"),
|
|
||||||
EP_ENUMVALUE(BET_GIZMOSTAIN, "Gizmo stain"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINSTONE, "Bullet stain stone"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINSAND, "Bullet stain sand"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINWATER, "Bullet stain water"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINUNDERWATER, "Bullet stain underwater"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINSTONENOSOUND, "Bullet stain stonenosound"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINSANDNOSOUND, "Bullet stain sandnosound"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINWATERNOSOUND, "Bullet stain waternosound"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINUNDERWATERNOSOUND, "Bullet stain underwater no sound"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINREDSAND, "Bullet stain red sand"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINREDSANDNOSOUND, "Bullet stain red sand no sound"),
|
|
||||||
EP_ENUMVALUE(BET_LIGHT_CANNON, "Light cannon"),
|
|
||||||
EP_ENUMVALUE(BET_CANNON_NOLIGHT, "Cannon no light"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINGRASS, "Bullet stain grass"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINWOOD, "Bullet stain wood"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINGRASSNOSOUND, "Bullet stain grass no sound"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINWOODNOSOUND, "Bullet stain wood no sound"),
|
|
||||||
EP_ENUMVALUE(BET_EXPLOSION_DEBRIS, "Explosion debris"),
|
|
||||||
EP_ENUMVALUE(BET_EXPLOSION_SMOKE, "Explosion smoke"),
|
|
||||||
EP_ENUMVALUE(BET_SUMMONERSTAREXPLOSION, "Summoner star explosion"),
|
|
||||||
EP_ENUMVALUE(BET_COLLECT_ENERGY, "Collect energy"),
|
|
||||||
EP_ENUMVALUE(BET_GROWING_SWIRL, "Growing swirl"),
|
|
||||||
EP_ENUMVALUE(BET_DISAPPEAR_DUST, "Disappear dust"),
|
|
||||||
EP_ENUMVALUE(BET_DUST_FALL, "Dust fall"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINSNOW, "Bullet stain snow"),
|
|
||||||
EP_ENUMVALUE(BET_BULLETSTAINSNOWNOSOUND, "Bullet stain snow"),
|
|
||||||
EP_ENUMEND(BasicEffectType);
|
|
||||||
|
|
||||||
#define ENTITYCLASS CBasicEffect
|
|
||||||
|
|
||||||
CEntityProperty CBasicEffect_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &BasicEffectType_enum, (0x00000259<<8)+1, offsetof(CBasicEffect, m_betType), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000259<<8)+2, offsetof(CBasicEffect, m_fWaitTime), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000259<<8)+3, offsetof(CBasicEffect, m_fFadeTime), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000259<<8)+4, offsetof(CBasicEffect, m_bFade), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000259<<8)+5, offsetof(CBasicEffect, m_fFadeStartTime), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000259<<8)+9, offsetof(CBasicEffect, m_fFadeStartAlpha), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000259<<8)+6, offsetof(CBasicEffect, m_vNormal), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000259<<8)+7, offsetof(CBasicEffect, m_vStretch), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000259<<8)+8, offsetof(CBasicEffect, m_vDirection), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000259<<8)+10, offsetof(CBasicEffect, m_fDepthSortOffset), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000259<<8)+11, offsetof(CBasicEffect, m_fFadeInSpeed), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000259<<8)+12, offsetof(CBasicEffect, m_tmSpawn), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000259<<8)+13, offsetof(CBasicEffect, m_tmWaitAfterDeath), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000259<<8)+20, offsetof(CBasicEffect, m_bLightSource), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ANIMOBJECT, NULL, (0x00000259<<8)+21, offsetof(CBasicEffect, m_aoLightAnimation), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000259<<8)+22, offsetof(CBasicEffect, m_iLightAnimation), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x00000259<<8)+23, offsetof(CBasicEffect, m_colMultiplyColor), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x00000259<<8)+30, offsetof(CBasicEffect, m_soEffect), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000259<<8)+31, offsetof(CBasicEffect, m_fSoundTime), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &EffectParticlesType_enum, (0x00000259<<8)+40, offsetof(CBasicEffect, m_eptType), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000259<<8)+41, offsetof(CBasicEffect, m_tmWhenShot), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000259<<8)+42, offsetof(CBasicEffect, m_vGravity), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x00000259<<8)+255, offsetof(CBasicEffect, m_penPrediction), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CBasicEffect_propertiesct ARRAYCOUNT(CBasicEffect_properties)
|
|
||||||
|
|
||||||
CEntityComponent CBasicEffect_components[] = {
|
|
||||||
#define MDL_ROCKET_EXPLOSION ((0x00000259<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MDL_ROCKET_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionRocket\\ExplosionRocket.mdl"),
|
|
||||||
#define MDL_ROCKET3D_EXPLOSION ((0x00000259<<8)+2)
|
|
||||||
CEntityComponent(ECT_MODEL, MDL_ROCKET3D_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionRocket\\ExplosionRocket3D.mdl"),
|
|
||||||
#define TXT_ROCKET_EXPLOSION ((0x00000259<<8)+3)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TXT_ROCKET_EXPLOSION, "EFNM" "Models\\Effects\\Explosionrocket\\Texture.tex"),
|
|
||||||
#define MDL_GRENADE_EXPLOSION ((0x00000259<<8)+4)
|
|
||||||
CEntityComponent(ECT_MODEL, MDL_GRENADE_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionGrenade\\ExplosionGrenade.mdl"),
|
|
||||||
#define MDL_GRENADE3D_EXPLOSION ((0x00000259<<8)+5)
|
|
||||||
CEntityComponent(ECT_MODEL, MDL_GRENADE3D_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionGrenade\\ExplosionGrenade3D.mdl"),
|
|
||||||
#define TXT_GRENADE_EXPLOSION ((0x00000259<<8)+6)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TXT_GRENADE_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionGrenade\\Texture.tex"),
|
|
||||||
#define MDL_PARTICLES_EXPLOSION ((0x00000259<<8)+7)
|
|
||||||
CEntityComponent(ECT_MODEL, MDL_PARTICLES_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionParticles\\Particles.mdl"),
|
|
||||||
#define MDL_PARTICLES3D_EXPLOSION ((0x00000259<<8)+8)
|
|
||||||
CEntityComponent(ECT_MODEL, MDL_PARTICLES3D_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionParticles\\Particles3D.mdl"),
|
|
||||||
#define TXT_PARTICLES_EXPLOSION ((0x00000259<<8)+9)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TXT_PARTICLES_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionParticles\\Texture.tex"),
|
|
||||||
#define SOUND_EXPLOSION ((0x00000259<<8)+10)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_EXPLOSION, "EFNM" "Sounds\\Weapons\\_Explosion02.wav"),
|
|
||||||
#define MDL_CANNON_EXPLOSION ((0x00000259<<8)+11)
|
|
||||||
CEntityComponent(ECT_MODEL, MDL_CANNON_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionGrenade\\ExplosionGrenade.mdl"),
|
|
||||||
#define MDL_CANNON3D_EXPLOSION ((0x00000259<<8)+12)
|
|
||||||
CEntityComponent(ECT_MODEL, MDL_CANNON3D_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionGrenade\\ExplosionGrenade3D.mdl"),
|
|
||||||
#define TXT_CANNON_EXPLOSION ((0x00000259<<8)+13)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TXT_CANNON_EXPLOSION, "EFNM" "Models\\Effects\\ExplosionGrenade\\Texture.tex"),
|
|
||||||
#define MODEL_BULLET_HIT ((0x00000259<<8)+15)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BULLET_HIT, "EFNM" "Models\\Effects\\BulletParticles\\BulletParticles.mdl"),
|
|
||||||
#define TEXTURE_BULLET_HIT ((0x00000259<<8)+16)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BULLET_HIT, "EFNM" "Models\\Effects\\BulletParticles\\BulletParticles.tex"),
|
|
||||||
#define MODEL_BULLET_STAIN ((0x00000259<<8)+18)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BULLET_STAIN, "EFNM" "Models\\Effects\\BulletOnTheWall\\Bullet.mdl"),
|
|
||||||
#define TEXTURE_BULLET_STAIN ((0x00000259<<8)+19)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BULLET_STAIN, "EFNM" "Models\\Effects\\BulletOnTheWall\\Bullet.tex"),
|
|
||||||
#define TEXTURE_BULLET_TRAIL ((0x00000259<<8)+70)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BULLET_TRAIL, "EFNM" "Models\\Effects\\BulletTrail\\BulletTrail.tex"),
|
|
||||||
#define MODEL_BULLET_TRAIL ((0x00000259<<8)+71)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BULLET_TRAIL, "EFNM" "Models\\Effects\\BulletTrail\\BulletTrail.mdl"),
|
|
||||||
#define SOUND_BULLET_STONE ((0x00000259<<8)+90)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_BULLET_STONE, "EFNM" "Sounds\\Weapons\\_BulletHitWall.wav"),
|
|
||||||
#define SOUND_BULLET_SAND ((0x00000259<<8)+91)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_BULLET_SAND, "EFNM" "Sounds\\Weapons\\BulletHitSand.wav"),
|
|
||||||
#define SOUND_BULLET_WATER ((0x00000259<<8)+92)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_BULLET_WATER, "EFNM" "Sounds\\Weapons\\BulletHitWater.wav"),
|
|
||||||
#define SOUND_BULLET_FLESH ((0x00000259<<8)+93)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_BULLET_FLESH, "EFNM" "Sounds\\Weapons\\_BulletHitFlesh.wav"),
|
|
||||||
#define TEXTURE_BULLET_SAND ((0x00000259<<8)+94)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BULLET_SAND, "EFNM" "Models\\Effects\\BulletOnTheWall\\BulletSand.tex"),
|
|
||||||
#define SOUND_BULLET_GRASS ((0x00000259<<8)+95)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_BULLET_GRASS, "EFNM" "SoundsMP\\Weapons\\BulletHitGrass.wav"),
|
|
||||||
#define SOUND_BULLET_WOOD ((0x00000259<<8)+96)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_BULLET_WOOD, "EFNM" "SoundsMP\\Weapons\\BulletHitWood.wav"),
|
|
||||||
#define SOUND_BULLET_SNOW ((0x00000259<<8)+97)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_BULLET_SNOW, "EFNM" "SoundsMP\\Weapons\\BulletHitSnow.wav"),
|
|
||||||
#define MODEL_BLOOD_EXPLODE ((0x00000259<<8)+21)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BLOOD_EXPLODE, "EFNM" "Models\\Effects\\BloodCloud\\BloodCloud.mdl"),
|
|
||||||
#define TEXTURE_BLOOD_EXPLODE ((0x00000259<<8)+22)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_EXPLODE, "EFNM" "Models\\Effects\\BloodCloud\\BloodCloud.tex"),
|
|
||||||
#define MODEL_BLOOD_STAIN ((0x00000259<<8)+23)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BLOOD_STAIN, "EFNM" "Models\\Effects\\BloodOnTheWall01\\Blood.mdl"),
|
|
||||||
#define TEXTURE_BLOOD_STAIN1 ((0x00000259<<8)+24)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_STAIN1, "EFNM" "Models\\Effects\\BloodOnTheWall01\\BloodStain01.tex"),
|
|
||||||
#define TEXTURE_BLOOD_STAIN2 ((0x00000259<<8)+25)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_STAIN2, "EFNM" "Models\\Effects\\BloodOnTheWall01\\BloodStain02.tex"),
|
|
||||||
#define TEXTURE_BLOOD_STAIN3 ((0x00000259<<8)+26)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_STAIN3, "EFNM" "Models\\Effects\\BloodOnTheWall01\\BloodStain03.tex"),
|
|
||||||
#define TEXTURE_BLOOD_STAIN4 ((0x00000259<<8)+27)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_STAIN4, "EFNM" "Models\\Effects\\BloodOnTheWall01\\BloodStain04.tex"),
|
|
||||||
#define TEXTURE_BLOOD_SPILL1 ((0x00000259<<8)+28)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_SPILL1, "EFNM" "Models\\Effects\\BloodOnTheWall01\\BloodSpill02.tex"),
|
|
||||||
#define TEXTURE_BLOOD_SPILL2 ((0x00000259<<8)+29)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_SPILL2, "EFNM" "Models\\Effects\\BloodOnTheWall01\\BloodSpill05.tex"),
|
|
||||||
#define TEXTURE_BLOOD_SPILL3 ((0x00000259<<8)+30)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_SPILL3, "EFNM" "Models\\Effects\\BloodOnTheWall01\\BloodSpill06.tex"),
|
|
||||||
#define TEXTURE_BLOOD_FLOWER1 ((0x00000259<<8)+31)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_FLOWER1, "EFNM" "Models\\Effects\\Flowers\\Flowers1s.tex"),
|
|
||||||
#define TEXTURE_BLOOD_FLOWER2 ((0x00000259<<8)+32)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_FLOWER2, "EFNM" "Models\\Effects\\Flowers\\Flowers2s.tex"),
|
|
||||||
#define TEXTURE_BLOOD_FLOWER3 ((0x00000259<<8)+33)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BLOOD_FLOWER3, "EFNM" "Models\\Effects\\Flowers\\Flowers3s.tex"),
|
|
||||||
#define MODEL_SHOCKWAVE ((0x00000259<<8)+40)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_SHOCKWAVE, "EFNM" "Models\\Effects\\ShockWave01\\ShockWave.mdl"),
|
|
||||||
#define TEXTURE_SHOCKWAVE ((0x00000259<<8)+41)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_SHOCKWAVE, "EFNM" "Models\\Effects\\ShockWave01\\Textures\\ShockWave.tex"),
|
|
||||||
#define MODEL_CANNONSHOCKWAVE ((0x00000259<<8)+42)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CANNONSHOCKWAVE, "EFNM" "Models\\Effects\\ShockWave01\\ShockWave.mdl"),
|
|
||||||
#define TEXTURE_CANNONSHOCKWAVE ((0x00000259<<8)+43)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_CANNONSHOCKWAVE, "EFNM" "Models\\Effects\\ShockWave01\\Textures\\ShockWave.tex"),
|
|
||||||
#define MODEL_EXPLOSION_STAIN ((0x00000259<<8)+45)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_EXPLOSION_STAIN, "EFNM" "Models\\Effects\\BurnedStainOnTheWall\\BurnedStainOnTheWall.mdl"),
|
|
||||||
#define TEXTURE_EXPLOSION_STAIN ((0x00000259<<8)+46)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_EXPLOSION_STAIN, "EFNM" "Models\\Effects\\BurnedStainOnTheWall\\BurnedStainOnTheWall.tex"),
|
|
||||||
#define MODEL_CANNON_EXPLOSION_STAIN ((0x00000259<<8)+47)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CANNON_EXPLOSION_STAIN, "EFNM" "Models\\Effects\\BurnedStainOnTheWall\\BurnedStainOnTheWall.mdl"),
|
|
||||||
#define TEXTURE_CANNON_EXPLOSION_STAIN ((0x00000259<<8)+48)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_CANNON_EXPLOSION_STAIN, "EFNM" "Models\\Effects\\BurnedStainOnTheWall\\BurnedStainOnTheWall.tex"),
|
|
||||||
#define MODEL_LASERWAVE ((0x00000259<<8)+50)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_LASERWAVE, "EFNM" "Models\\Effects\\ShockWaveGreen\\ShockWaveGreen.mdl"),
|
|
||||||
#define TEXTURE_LASERWAVE ((0x00000259<<8)+51)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_LASERWAVE, "EFNM" "Models\\Effects\\ShockWaveGreen\\ShockWaveGreen.tex"),
|
|
||||||
#define MODEL_TELEPORT_EFFECT ((0x00000259<<8)+61)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_TELEPORT_EFFECT, "EFNM" "Models\\Effects\\Teleport01\\Teleport.mdl"),
|
|
||||||
#define TEXTURE_TELEPORT_EFFECT ((0x00000259<<8)+62)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_TELEPORT_EFFECT, "EFNM" "Textures\\Effects\\Effect01\\Effect.tex"),
|
|
||||||
#define SOUND_TELEPORT ((0x00000259<<8)+63)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_TELEPORT, "EFNM" "Sounds\\Misc\\Teleport.wav"),
|
|
||||||
#define SOUND_GIZMO_SPLASH ((0x00000259<<8)+80)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_GIZMO_SPLASH, "EFNM" "Models\\Enemies\\Gizmo\\Sounds\\Death.wav"),
|
|
||||||
#define TEXTURE_WATER_WAVE ((0x00000259<<8)+100)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_WATER_WAVE, "EFNM" "Models\\Effects\\ShockWave01\\Textures\\WaterWave.tex"),
|
|
||||||
};
|
|
||||||
#define CBasicEffect_componentsct ARRAYCOUNT(CBasicEffect_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CBasicEffect_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CBasicEffect::
|
|
||||||
#line 1346 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
Main),DEBUGSTRING("CBasicEffect::Main")},
|
|
||||||
{0x02590001, -1, CEntity::pEventHandler(&CBasicEffect::H0x02590001_Main_01), DEBUGSTRING("CBasicEffect::H0x02590001_Main_01")},
|
|
||||||
{0x02590002, -1, CEntity::pEventHandler(&CBasicEffect::H0x02590002_Main_02), DEBUGSTRING("CBasicEffect::H0x02590002_Main_02")},
|
|
||||||
{0x02590003, -1, CEntity::pEventHandler(&CBasicEffect::
|
|
||||||
#line 1444 "D:/SE1_GPL/Sources/EntitiesMP/BasicEffects.es"
|
|
||||||
EffectLoop),DEBUGSTRING("CBasicEffect::EffectLoop")},
|
|
||||||
{0x02590004, -1, CEntity::pEventHandler(&CBasicEffect::H0x02590004_EffectLoop_01), DEBUGSTRING("CBasicEffect::H0x02590004_EffectLoop_01")},
|
|
||||||
{0x02590005, -1, CEntity::pEventHandler(&CBasicEffect::H0x02590005_EffectLoop_02), DEBUGSTRING("CBasicEffect::H0x02590005_EffectLoop_02")},
|
|
||||||
{0x02590006, -1, CEntity::pEventHandler(&CBasicEffect::H0x02590006_EffectLoop_03), DEBUGSTRING("CBasicEffect::H0x02590006_EffectLoop_03")},
|
|
||||||
{0x02590007, -1, CEntity::pEventHandler(&CBasicEffect::H0x02590007_EffectLoop_04), DEBUGSTRING("CBasicEffect::H0x02590007_EffectLoop_04")},
|
|
||||||
{0x02590008, -1, CEntity::pEventHandler(&CBasicEffect::H0x02590008_EffectLoop_05), DEBUGSTRING("CBasicEffect::H0x02590008_EffectLoop_05")},
|
|
||||||
{0x02590009, -1, CEntity::pEventHandler(&CBasicEffect::H0x02590009_EffectLoop_06), DEBUGSTRING("CBasicEffect::H0x02590009_EffectLoop_06")},
|
|
||||||
{0x0259000a, -1, CEntity::pEventHandler(&CBasicEffect::H0x0259000a_EffectLoop_07), DEBUGSTRING("CBasicEffect::H0x0259000a_EffectLoop_07")},
|
|
||||||
{0x0259000b, -1, CEntity::pEventHandler(&CBasicEffect::H0x0259000b_EffectLoop_08), DEBUGSTRING("CBasicEffect::H0x0259000b_EffectLoop_08")},
|
|
||||||
{0x0259000c, -1, CEntity::pEventHandler(&CBasicEffect::H0x0259000c_EffectLoop_09), DEBUGSTRING("CBasicEffect::H0x0259000c_EffectLoop_09")},
|
|
||||||
{0x0259000d, -1, CEntity::pEventHandler(&CBasicEffect::H0x0259000d_EffectLoop_10), DEBUGSTRING("CBasicEffect::H0x0259000d_EffectLoop_10")},
|
|
||||||
{0x0259000e, -1, CEntity::pEventHandler(&CBasicEffect::H0x0259000e_EffectLoop_11), DEBUGSTRING("CBasicEffect::H0x0259000e_EffectLoop_11")},
|
|
||||||
{0x0259000f, -1, CEntity::pEventHandler(&CBasicEffect::H0x0259000f_EffectLoop_12), DEBUGSTRING("CBasicEffect::H0x0259000f_EffectLoop_12")},
|
|
||||||
};
|
|
||||||
#define CBasicEffect_handlersct ARRAYCOUNT(CBasicEffect_handlers)
|
|
||||||
|
|
||||||
CEntity *CBasicEffect_New(void) { return new CBasicEffect; };
|
|
||||||
void CBasicEffect_OnInitClass(void) {};
|
|
||||||
void CBasicEffect_OnEndClass(void) {};
|
|
||||||
void CBasicEffect_OnPrecache(CDLLEntityClass *pdec, INDEX iUser);
|
|
||||||
void CBasicEffect_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CBasicEffect_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CBasicEffect_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CBasicEffect_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CBasicEffect, CRationalEntity, "BasicEffect", "", 0x00000259);
|
|
||||||
DECLARE_CTFILENAME(_fnmCBasicEffect_tbn, "");
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,162 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_Beast_INCLUDED
|
|
||||||
#define _EntitiesMP_Beast_INCLUDED 1
|
|
||||||
#include <EntitiesMP/EnemyBase.h>
|
|
||||||
#include <EntitiesMP/BasicEffects.h>
|
|
||||||
extern DECL_DLL CEntityPropertyEnumType BeastType_enum;
|
|
||||||
enum BeastType {
|
|
||||||
BT_NORMAL = 0,
|
|
||||||
BT_BIG = 1,
|
|
||||||
BT_HUGE = 2,
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(BeastType &e) { e = (BeastType)0; } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CBeast_DLLClass;
|
|
||||||
class CBeast : public CEnemyBase {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
enum BeastType m_bcType;
|
|
||||||
INDEX m_iCounter;
|
|
||||||
BOOL m_bBeBoss;
|
|
||||||
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
virtual CTString GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath);
|
|
||||||
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
virtual const CTFileName & GetComputerMessageName(void)const;
|
|
||||||
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void * GetEntityInfo(void);
|
|
||||||
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void ShakeItBaby(FLOAT tmShaketime,FLOAT fPower);
|
|
||||||
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
FLOAT GetCrushHealth(void);
|
|
||||||
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
BOOL ForcesCannonballToExplode(void);
|
|
||||||
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
||||||
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection);
|
|
||||||
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
INDEX AnimForDamage(FLOAT fDamage);
|
|
||||||
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
INDEX AnimForDeath(void);
|
|
||||||
|
|
||||||
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
FLOAT WaitForDust(FLOAT3D & vStretch);
|
|
||||||
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void DeathNotify(void);
|
|
||||||
|
|
||||||
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void StandingAnim(void);
|
|
||||||
|
|
||||||
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void WalkingAnim(void);
|
|
||||||
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void RunningAnim(void);
|
|
||||||
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void RotatingAnim(void);
|
|
||||||
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void IdleSound(void);
|
|
||||||
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void SightSound(void);
|
|
||||||
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void WoundSound(void);
|
|
||||||
|
|
||||||
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void DeathSound(void);
|
|
||||||
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
void EnemyPostInit(void);
|
|
||||||
#define STATE_CBeast_Death 0x01500000
|
|
||||||
BOOL
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
Death(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500001_Death_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500002_Death_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500003_Death_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500004_Death_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500005_Death_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500006_Death_06(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBeast_Fire 0x01500007
|
|
||||||
BOOL
|
|
||||||
#line 333 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
Fire(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500008_Fire_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500009_Fire_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150000a_Fire_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150000b_Fire_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150000c_Fire_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150000d_Fire_06(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150000e_Fire_07(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150000f_Fire_08(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500010_Fire_09(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500011_Fire_10(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500012_Fire_11(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500013_Fire_12(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500014_Fire_13(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500015_Fire_14(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500016_Fire_15(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500017_Fire_16(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500018_Fire_17(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500019_Fire_18(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150001a_Fire_19(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150001b_Fire_20(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150001c_Fire_21(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150001d_Fire_22(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150001e_Fire_23(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150001f_Fire_24(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500020_Fire_25(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500021_Fire_26(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500022_Fire_27(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500023_Fire_28(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500024_Fire_29(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500025_Fire_30(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500026_Fire_31(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500027_Fire_32(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500028_Fire_33(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500029_Fire_34(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150002a_Fire_35(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150002b_Fire_36(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150002c_Fire_37(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150002d_Fire_38(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150002e_Fire_39(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150002f_Fire_40(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500030_Fire_41(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500031_Fire_42(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500032_Fire_43(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500033_Fire_44(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500034_Fire_45(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500035_Fire_46(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500036_Fire_47(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBeast_Hit 0x01500037
|
|
||||||
BOOL
|
|
||||||
#line 453 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
Hit(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500038_Hit_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01500039_Hit_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150003a_Hit_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0150003b_Hit_04(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBeast_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 486 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_Beast_INCLUDED
|
|
|
@ -1,136 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
EP_ENUMBEG(BeastType)
|
|
||||||
EP_ENUMVALUE(BT_NORMAL, "Small"),
|
|
||||||
EP_ENUMVALUE(BT_BIG, "Big"),
|
|
||||||
EP_ENUMVALUE(BT_HUGE, "Huge"),
|
|
||||||
EP_ENUMEND(BeastType);
|
|
||||||
|
|
||||||
#define ENTITYCLASS CBeast
|
|
||||||
|
|
||||||
CEntityProperty CBeast_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &BeastType_enum, (0x00000150<<8)+1, offsetof(CBeast, m_bcType), "Character", 'C', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000150<<8)+2, offsetof(CBeast, m_iCounter), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000150<<8)+3, offsetof(CBeast, m_bBeBoss), "Boss", 'B', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CBeast_propertiesct ARRAYCOUNT(CBeast_properties)
|
|
||||||
|
|
||||||
CEntityComponent CBeast_components[] = {
|
|
||||||
#define CLASS_BASE ((0x00000150<<8)+0)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\EnemyBase.ecl"),
|
|
||||||
#define CLASS_PROJECTILE ((0x00000150<<8)+1)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_PROJECTILE, "EFNM" "Classes\\Projectile.ecl"),
|
|
||||||
#define CLASS_BASIC_EFFECT ((0x00000150<<8)+2)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASIC_EFFECT, "EFNM" "Classes\\BasicEffect.ecl"),
|
|
||||||
#define MODEL_BEAST ((0x00000150<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BEAST, "EFNM" "Models\\Enemies\\Beast\\Beast.mdl"),
|
|
||||||
#define TEXTURE_BEAST_NORMAL ((0x00000150<<8)+11)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BEAST_NORMAL, "EFNM" "Models\\Enemies\\Beast\\Beast.tex"),
|
|
||||||
#define TEXTURE_BEAST_BIG ((0x00000150<<8)+12)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BEAST_BIG, "EFNM" "Models\\Enemies\\Beast\\BeastBig.tex"),
|
|
||||||
#define TEXTURE_BEAST_HUGE ((0x00000150<<8)+13)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BEAST_HUGE, "EFNM" "ModelsMP\\Enemies\\Beast\\BeastBiggest.tex"),
|
|
||||||
#define SOUND_IDLE ((0x00000150<<8)+50)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_IDLE, "EFNM" "Models\\Enemies\\Beast\\Sounds\\Idle.wav"),
|
|
||||||
#define SOUND_SIGHT ((0x00000150<<8)+51)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_SIGHT, "EFNM" "Models\\Enemies\\Beast\\Sounds\\Sight.wav"),
|
|
||||||
#define SOUND_WOUND ((0x00000150<<8)+52)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_WOUND, "EFNM" "Models\\Enemies\\Beast\\Sounds\\Wound.wav"),
|
|
||||||
#define SOUND_FIRE ((0x00000150<<8)+53)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_FIRE, "EFNM" "Models\\Enemies\\Beast\\Sounds\\Fire.wav"),
|
|
||||||
#define SOUND_KICK ((0x00000150<<8)+54)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_KICK, "EFNM" "Models\\Enemies\\Beast\\Sounds\\Kick.wav"),
|
|
||||||
#define SOUND_DEATH ((0x00000150<<8)+55)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_DEATH, "EFNM" "Models\\Enemies\\Beast\\Sounds\\Death.wav"),
|
|
||||||
#define SOUND_DEATHBIG ((0x00000150<<8)+56)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_DEATHBIG, "EFNM" "Models\\Enemies\\Beast\\Sounds\\DeathBig.wav"),
|
|
||||||
#define SOUND_ANGER ((0x00000150<<8)+57)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_ANGER, "EFNM" "Models\\Enemies\\Beast\\Sounds\\Anger.wav"),
|
|
||||||
};
|
|
||||||
#define CBeast_componentsct ARRAYCOUNT(CBeast_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CBeast_handlers[] = {
|
|
||||||
{0x01500000, STATE_CEnemyBase_Death, CEntity::pEventHandler(&CBeast::
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
Death),DEBUGSTRING("CBeast::Death")},
|
|
||||||
{0x01500001, -1, CEntity::pEventHandler(&CBeast::H0x01500001_Death_01), DEBUGSTRING("CBeast::H0x01500001_Death_01")},
|
|
||||||
{0x01500002, -1, CEntity::pEventHandler(&CBeast::H0x01500002_Death_02), DEBUGSTRING("CBeast::H0x01500002_Death_02")},
|
|
||||||
{0x01500003, -1, CEntity::pEventHandler(&CBeast::H0x01500003_Death_03), DEBUGSTRING("CBeast::H0x01500003_Death_03")},
|
|
||||||
{0x01500004, -1, CEntity::pEventHandler(&CBeast::H0x01500004_Death_04), DEBUGSTRING("CBeast::H0x01500004_Death_04")},
|
|
||||||
{0x01500005, -1, CEntity::pEventHandler(&CBeast::H0x01500005_Death_05), DEBUGSTRING("CBeast::H0x01500005_Death_05")},
|
|
||||||
{0x01500006, -1, CEntity::pEventHandler(&CBeast::H0x01500006_Death_06), DEBUGSTRING("CBeast::H0x01500006_Death_06")},
|
|
||||||
{0x01500007, STATE_CEnemyBase_Fire, CEntity::pEventHandler(&CBeast::
|
|
||||||
#line 333 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
Fire),DEBUGSTRING("CBeast::Fire")},
|
|
||||||
{0x01500008, -1, CEntity::pEventHandler(&CBeast::H0x01500008_Fire_01), DEBUGSTRING("CBeast::H0x01500008_Fire_01")},
|
|
||||||
{0x01500009, -1, CEntity::pEventHandler(&CBeast::H0x01500009_Fire_02), DEBUGSTRING("CBeast::H0x01500009_Fire_02")},
|
|
||||||
{0x0150000a, -1, CEntity::pEventHandler(&CBeast::H0x0150000a_Fire_03), DEBUGSTRING("CBeast::H0x0150000a_Fire_03")},
|
|
||||||
{0x0150000b, -1, CEntity::pEventHandler(&CBeast::H0x0150000b_Fire_04), DEBUGSTRING("CBeast::H0x0150000b_Fire_04")},
|
|
||||||
{0x0150000c, -1, CEntity::pEventHandler(&CBeast::H0x0150000c_Fire_05), DEBUGSTRING("CBeast::H0x0150000c_Fire_05")},
|
|
||||||
{0x0150000d, -1, CEntity::pEventHandler(&CBeast::H0x0150000d_Fire_06), DEBUGSTRING("CBeast::H0x0150000d_Fire_06")},
|
|
||||||
{0x0150000e, -1, CEntity::pEventHandler(&CBeast::H0x0150000e_Fire_07), DEBUGSTRING("CBeast::H0x0150000e_Fire_07")},
|
|
||||||
{0x0150000f, -1, CEntity::pEventHandler(&CBeast::H0x0150000f_Fire_08), DEBUGSTRING("CBeast::H0x0150000f_Fire_08")},
|
|
||||||
{0x01500010, -1, CEntity::pEventHandler(&CBeast::H0x01500010_Fire_09), DEBUGSTRING("CBeast::H0x01500010_Fire_09")},
|
|
||||||
{0x01500011, -1, CEntity::pEventHandler(&CBeast::H0x01500011_Fire_10), DEBUGSTRING("CBeast::H0x01500011_Fire_10")},
|
|
||||||
{0x01500012, -1, CEntity::pEventHandler(&CBeast::H0x01500012_Fire_11), DEBUGSTRING("CBeast::H0x01500012_Fire_11")},
|
|
||||||
{0x01500013, -1, CEntity::pEventHandler(&CBeast::H0x01500013_Fire_12), DEBUGSTRING("CBeast::H0x01500013_Fire_12")},
|
|
||||||
{0x01500014, -1, CEntity::pEventHandler(&CBeast::H0x01500014_Fire_13), DEBUGSTRING("CBeast::H0x01500014_Fire_13")},
|
|
||||||
{0x01500015, -1, CEntity::pEventHandler(&CBeast::H0x01500015_Fire_14), DEBUGSTRING("CBeast::H0x01500015_Fire_14")},
|
|
||||||
{0x01500016, -1, CEntity::pEventHandler(&CBeast::H0x01500016_Fire_15), DEBUGSTRING("CBeast::H0x01500016_Fire_15")},
|
|
||||||
{0x01500017, -1, CEntity::pEventHandler(&CBeast::H0x01500017_Fire_16), DEBUGSTRING("CBeast::H0x01500017_Fire_16")},
|
|
||||||
{0x01500018, -1, CEntity::pEventHandler(&CBeast::H0x01500018_Fire_17), DEBUGSTRING("CBeast::H0x01500018_Fire_17")},
|
|
||||||
{0x01500019, -1, CEntity::pEventHandler(&CBeast::H0x01500019_Fire_18), DEBUGSTRING("CBeast::H0x01500019_Fire_18")},
|
|
||||||
{0x0150001a, -1, CEntity::pEventHandler(&CBeast::H0x0150001a_Fire_19), DEBUGSTRING("CBeast::H0x0150001a_Fire_19")},
|
|
||||||
{0x0150001b, -1, CEntity::pEventHandler(&CBeast::H0x0150001b_Fire_20), DEBUGSTRING("CBeast::H0x0150001b_Fire_20")},
|
|
||||||
{0x0150001c, -1, CEntity::pEventHandler(&CBeast::H0x0150001c_Fire_21), DEBUGSTRING("CBeast::H0x0150001c_Fire_21")},
|
|
||||||
{0x0150001d, -1, CEntity::pEventHandler(&CBeast::H0x0150001d_Fire_22), DEBUGSTRING("CBeast::H0x0150001d_Fire_22")},
|
|
||||||
{0x0150001e, -1, CEntity::pEventHandler(&CBeast::H0x0150001e_Fire_23), DEBUGSTRING("CBeast::H0x0150001e_Fire_23")},
|
|
||||||
{0x0150001f, -1, CEntity::pEventHandler(&CBeast::H0x0150001f_Fire_24), DEBUGSTRING("CBeast::H0x0150001f_Fire_24")},
|
|
||||||
{0x01500020, -1, CEntity::pEventHandler(&CBeast::H0x01500020_Fire_25), DEBUGSTRING("CBeast::H0x01500020_Fire_25")},
|
|
||||||
{0x01500021, -1, CEntity::pEventHandler(&CBeast::H0x01500021_Fire_26), DEBUGSTRING("CBeast::H0x01500021_Fire_26")},
|
|
||||||
{0x01500022, -1, CEntity::pEventHandler(&CBeast::H0x01500022_Fire_27), DEBUGSTRING("CBeast::H0x01500022_Fire_27")},
|
|
||||||
{0x01500023, -1, CEntity::pEventHandler(&CBeast::H0x01500023_Fire_28), DEBUGSTRING("CBeast::H0x01500023_Fire_28")},
|
|
||||||
{0x01500024, -1, CEntity::pEventHandler(&CBeast::H0x01500024_Fire_29), DEBUGSTRING("CBeast::H0x01500024_Fire_29")},
|
|
||||||
{0x01500025, -1, CEntity::pEventHandler(&CBeast::H0x01500025_Fire_30), DEBUGSTRING("CBeast::H0x01500025_Fire_30")},
|
|
||||||
{0x01500026, -1, CEntity::pEventHandler(&CBeast::H0x01500026_Fire_31), DEBUGSTRING("CBeast::H0x01500026_Fire_31")},
|
|
||||||
{0x01500027, -1, CEntity::pEventHandler(&CBeast::H0x01500027_Fire_32), DEBUGSTRING("CBeast::H0x01500027_Fire_32")},
|
|
||||||
{0x01500028, -1, CEntity::pEventHandler(&CBeast::H0x01500028_Fire_33), DEBUGSTRING("CBeast::H0x01500028_Fire_33")},
|
|
||||||
{0x01500029, -1, CEntity::pEventHandler(&CBeast::H0x01500029_Fire_34), DEBUGSTRING("CBeast::H0x01500029_Fire_34")},
|
|
||||||
{0x0150002a, -1, CEntity::pEventHandler(&CBeast::H0x0150002a_Fire_35), DEBUGSTRING("CBeast::H0x0150002a_Fire_35")},
|
|
||||||
{0x0150002b, -1, CEntity::pEventHandler(&CBeast::H0x0150002b_Fire_36), DEBUGSTRING("CBeast::H0x0150002b_Fire_36")},
|
|
||||||
{0x0150002c, -1, CEntity::pEventHandler(&CBeast::H0x0150002c_Fire_37), DEBUGSTRING("CBeast::H0x0150002c_Fire_37")},
|
|
||||||
{0x0150002d, -1, CEntity::pEventHandler(&CBeast::H0x0150002d_Fire_38), DEBUGSTRING("CBeast::H0x0150002d_Fire_38")},
|
|
||||||
{0x0150002e, -1, CEntity::pEventHandler(&CBeast::H0x0150002e_Fire_39), DEBUGSTRING("CBeast::H0x0150002e_Fire_39")},
|
|
||||||
{0x0150002f, -1, CEntity::pEventHandler(&CBeast::H0x0150002f_Fire_40), DEBUGSTRING("CBeast::H0x0150002f_Fire_40")},
|
|
||||||
{0x01500030, -1, CEntity::pEventHandler(&CBeast::H0x01500030_Fire_41), DEBUGSTRING("CBeast::H0x01500030_Fire_41")},
|
|
||||||
{0x01500031, -1, CEntity::pEventHandler(&CBeast::H0x01500031_Fire_42), DEBUGSTRING("CBeast::H0x01500031_Fire_42")},
|
|
||||||
{0x01500032, -1, CEntity::pEventHandler(&CBeast::H0x01500032_Fire_43), DEBUGSTRING("CBeast::H0x01500032_Fire_43")},
|
|
||||||
{0x01500033, -1, CEntity::pEventHandler(&CBeast::H0x01500033_Fire_44), DEBUGSTRING("CBeast::H0x01500033_Fire_44")},
|
|
||||||
{0x01500034, -1, CEntity::pEventHandler(&CBeast::H0x01500034_Fire_45), DEBUGSTRING("CBeast::H0x01500034_Fire_45")},
|
|
||||||
{0x01500035, -1, CEntity::pEventHandler(&CBeast::H0x01500035_Fire_46), DEBUGSTRING("CBeast::H0x01500035_Fire_46")},
|
|
||||||
{0x01500036, -1, CEntity::pEventHandler(&CBeast::H0x01500036_Fire_47), DEBUGSTRING("CBeast::H0x01500036_Fire_47")},
|
|
||||||
{0x01500037, STATE_CEnemyBase_Hit, CEntity::pEventHandler(&CBeast::
|
|
||||||
#line 453 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
Hit),DEBUGSTRING("CBeast::Hit")},
|
|
||||||
{0x01500038, -1, CEntity::pEventHandler(&CBeast::H0x01500038_Hit_01), DEBUGSTRING("CBeast::H0x01500038_Hit_01")},
|
|
||||||
{0x01500039, -1, CEntity::pEventHandler(&CBeast::H0x01500039_Hit_02), DEBUGSTRING("CBeast::H0x01500039_Hit_02")},
|
|
||||||
{0x0150003a, -1, CEntity::pEventHandler(&CBeast::H0x0150003a_Hit_03), DEBUGSTRING("CBeast::H0x0150003a_Hit_03")},
|
|
||||||
{0x0150003b, -1, CEntity::pEventHandler(&CBeast::H0x0150003b_Hit_04), DEBUGSTRING("CBeast::H0x0150003b_Hit_04")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CBeast::
|
|
||||||
#line 486 "D:/SE1_GPL/Sources/EntitiesMP/Beast.es"
|
|
||||||
Main),DEBUGSTRING("CBeast::Main")},
|
|
||||||
};
|
|
||||||
#define CBeast_handlersct ARRAYCOUNT(CBeast_handlers)
|
|
||||||
|
|
||||||
CEntity *CBeast_New(void) { return new CBeast; };
|
|
||||||
void CBeast_OnInitClass(void) {};
|
|
||||||
void CBeast_OnEndClass(void) {};
|
|
||||||
void CBeast_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CBeast_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CBeast_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CBeast_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CBeast_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CBeast, CEnemyBase, "Beast", "Thumbnails\\Beast.tbn", 0x00000150);
|
|
||||||
DECLARE_CTFILENAME(_fnmCBeast_tbn, "Thumbnails\\Beast.tbn");
|
|
|
@ -1,532 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "ModelsMP/Enemies/Mental/Mental.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/BigHead.h>
|
|
||||||
#include <EntitiesMP/BigHead_tables.h>
|
|
||||||
#line 18 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
|
|
||||||
// info structure
|
|
||||||
static EntityInfo eiMental = {
|
|
||||||
EIBT_FLESH, 200.0f,
|
|
||||||
0.0f, 1.5f, 0.0f, // source (eyes)
|
|
||||||
0.0f, 1.0f, 0.0f, // target (body)
|
|
||||||
};
|
|
||||||
|
|
||||||
#define GREET_SENSE_RANGE 10.0f
|
|
||||||
#define GREET_SENSE_DELAY 30.0f
|
|
||||||
|
|
||||||
|
|
||||||
void CBigHead::SetDefaultProperties(void) {
|
|
||||||
m_fnmHeadTex = CTString("");
|
|
||||||
m_fnmNameSnd = CTString("");
|
|
||||||
m_tmLastGreetTime = -100.0f;
|
|
||||||
m_bhtType = BHT_NORMAL ;
|
|
||||||
m_bIgnorePlayer = FALSE ;
|
|
||||||
m_bPlayingWalkSound = FALSE ;
|
|
||||||
m_bSleeping = FALSE ;
|
|
||||||
m_tmLastWalkingSoundTime = -100.0f;
|
|
||||||
m_tmWalkingSound = 5.0f;
|
|
||||||
CEnemyBase::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
BOOL CBigHead::HandleEvent(const CEntityEvent & ee)
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
{
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(m_bIgnorePlayer ){
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(ee . ee_slEvent == EVENTCODE_ETouch ){
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
ETouch & et = (ETouch &) ee ;
|
|
||||||
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(IsOfClass (et . penOther , "Player")){
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return CEnemyBase :: HandleEvent (ee );
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void * CBigHead::GetEntityInfo(void)
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
{
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return & eiMental ;
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::Precache(void)
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
{
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
CEnemyBase :: Precache ();
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PrecacheSound (SOUND_SIGHT );
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PrecacheSound (SOUND_IDLE );
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PrecacheSound (SOUND_WOUND );
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PrecacheSound (SOUND_DEATH );
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PrecacheSound (SOUND_WALKZOMBIE );
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PrecacheSound (SOUND_WALKSAINT );
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_aps . Precache (m_fnmNameSnd );
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_apt . Precache (m_fnmHeadTex );
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
INDEX CBigHead::GetWalkAnim(void)
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
{
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(m_bhtType == BHT_ZOMBIE ){
|
|
||||||
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return MENTAL_ANIM_WALKZOMBIE ;
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}else if(m_bhtType == BHT_SAINT ){
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return MENTAL_ANIM_WALKANGEL ;
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}else {
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return MENTAL_ANIM_RUN ;
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
INDEX CBigHead::AnimForDamage(FLOAT fDamage) {
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
INDEX iAnim ;
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
iAnim = MENTAL_ANIM_PANIC ;
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
StartModelAnim (iAnim , 0);
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return iAnim ;
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
INDEX CBigHead::AnimForDeath(void) {
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
INDEX iAnim ;
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
iAnim = MENTAL_ANIM_DEATH ;
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
StartModelAnim (iAnim , 0);
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return iAnim ;
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::DeathNotify(void) {
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
en_fDensity = 500.0f;
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::StandingAnim(void) {
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
StartModelAnim (MENTAL_ANIM_GROUNDREST , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::WalkingAnim(void) {
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PlayWalkSound ();
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
StartModelAnim (GetWalkAnim () , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(! m_bIgnorePlayer && _pTimer -> CurrentTick () > m_tmLastGreetTime + GREET_SENSE_DELAY ){
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fSenseRange = GREET_SENSE_RANGE ;
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bDeaf = FALSE ;
|
|
||||||
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::RunningAnim(void)
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
{
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PlayWalkSound ();
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
StartModelAnim (GetWalkAnim () , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::RotatingAnim(void) {
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
RunningAnim ();
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::PlayWalkSound(void)
|
|
||||||
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
{
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
INDEX iSound = SOUND_WALKZOMBIE ;
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(m_bhtType == BHT_ZOMBIE ){
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
iSound = SOUND_WALKZOMBIE ;
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}else if(m_bhtType == BHT_SAINT ){
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
iSound = SOUND_WALKSAINT ;
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}else {
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return ;
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(! m_bPlayingWalkSound || _pTimer -> CurrentTick () - m_tmLastWalkingSoundTime > m_tmWalkingSound ){
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bPlayingWalkSound = TRUE ;
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_tmLastWalkingSoundTime = _pTimer -> CurrentTick ();
|
|
||||||
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PlaySound (m_soSound , iSound , SOF_3D );
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::IdleSound(void) {
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(m_bIgnorePlayer ){
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return ;
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PlaySound (m_soSound , SOUND_IDLE , SOF_3D );
|
|
||||||
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bPlayingWalkSound = FALSE ;
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::SightSound(void) {
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PlaySound (m_soSound , SOUND_SIGHT , SOF_3D );
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bPlayingWalkSound = FALSE ;
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::WoundSound(void) {
|
|
||||||
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PlaySound (m_soSound , SOUND_WOUND , SOF_3D );
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bPlayingWalkSound = FALSE ;
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void CBigHead::DeathSound(void) {
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PlaySound (m_soSound , SOUND_DEATH , SOF_3D );
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bPlayingWalkSound = FALSE ;
|
|
||||||
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
BOOL CBigHead::
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Fire(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBigHead_Fire
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBigHead::Fire expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(!(CalcDist (m_penEnemy ) <= m_fStopDistance * 1.1f)){ Jump(STATE_CURRENT,0x01540003, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(m_fnmNameSnd != ""){
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PlaySound (m_soSound , m_fnmNameSnd , SOF_3D );
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bPlayingWalkSound = FALSE ;
|
|
||||||
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 207 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bBlind = TRUE ;
|
|
||||||
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bDeaf = TRUE ;
|
|
||||||
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fSenseRange = 0.0f;
|
|
||||||
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_tmLastGreetTime = _pTimer -> CurrentTick ();
|
|
||||||
#line 211 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetTargetNone ();
|
|
||||||
#line 212 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
StartModelAnim (MENTAL_ANIM_GREET , 0);
|
|
||||||
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetTimerAfter(GetModelObject () -> GetCurrentAnimLength ());
|
|
||||||
Jump(STATE_CURRENT, 0x01540001, FALSE, EBegin());return TRUE;}BOOL CBigHead::H0x01540001_Fire_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01540001
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01540002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBigHead::H0x01540002_Fire_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01540002
|
|
||||||
;
|
|
||||||
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
StandingAnim ();
|
|
||||||
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Return(STATE_CURRENT,EReconsiderBehavior ());
|
|
||||||
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return TRUE;Jump(STATE_CURRENT,0x01540003, FALSE, EInternal());return TRUE;}BOOL CBigHead::H0x01540003_Fire_03(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01540003
|
|
||||||
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CBigHead::
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Sleep(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBigHead_Sleep
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBigHead::Sleep expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
StartModelAnim (MENTAL_ANIM_SNORE , AOF_LOOPING );
|
|
||||||
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x01540005, FALSE, EBegin());return TRUE;}BOOL CBigHead::H0x01540005_Sleep_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01540005
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_ETrigger):{const ETrigger&eTrigger= (ETrigger&)__eeInput;
|
|
||||||
|
|
||||||
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CBigHead_WakeUp, TRUE, EVoid());return TRUE;
|
|
||||||
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}ASSERT(FALSE);break;default:{
|
|
||||||
#line 240 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 241 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}ASSERT(FALSE);break;
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}return TRUE;}BOOL CBigHead::H0x01540006_Sleep_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01540006
|
|
||||||
ASSERT(FALSE); return TRUE;};BOOL CBigHead::
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
WakeUp(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBigHead_WakeUp
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBigHead::WakeUp expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 248 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SightSound ();
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
StartModelAnim (MENTAL_ANIM_GETUP , 0);
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetTimerAfter(GetModelObject () -> GetCurrentAnimLength ());
|
|
||||||
Jump(STATE_CURRENT, 0x01540008, FALSE, EBegin());return TRUE;}BOOL CBigHead::H0x01540008_WakeUp_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01540008
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01540009, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBigHead::H0x01540009_WakeUp_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01540009
|
|
||||||
;
|
|
||||||
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CBigHead::
|
|
||||||
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PreMainLoop(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBigHead_PreMainLoop
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBigHead::PreMainLoop expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(!(m_bSleeping )){ Jump(STATE_CURRENT,0x0154000d, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bSleeping = FALSE ;
|
|
||||||
#line 265 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x0154000b, FALSE, EBegin());return TRUE;}BOOL CBigHead::H0x0154000b_PreMainLoop_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0154000b
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
||||||
|
|
||||||
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Call(STATE_CURRENT, STATE_CBigHead_Sleep, TRUE, EVoid());return TRUE;
|
|
||||||
#line 268 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EReturn):{const EReturn&e= (EReturn&)__eeInput;
|
|
||||||
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x0154000c, FALSE, EInternal());return TRUE;
|
|
||||||
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EDeath):{const EDeath&eDeath= (EDeath&)__eeInput;
|
|
||||||
|
|
||||||
#line 275 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CEnemyBase_Die, FALSE, eDeath );return TRUE;
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}ASSERT(FALSE);break;default: return FALSE; break;
|
|
||||||
#line 277 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}return TRUE;}BOOL CBigHead::H0x0154000c_PreMainLoop_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0154000c
|
|
||||||
Jump(STATE_CURRENT,0x0154000d, FALSE, EInternal());return TRUE;}BOOL CBigHead::H0x0154000d_PreMainLoop_03(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0154000d
|
|
||||||
|
|
||||||
#line 279 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 279 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CBigHead::
|
|
||||||
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBigHead_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBigHead::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 287 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
InitAsModel ();
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_WALKING | EPF_HASLUNGS );
|
|
||||||
#line 289 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetCollisionFlags (ECF_MODEL );
|
|
||||||
#line 290 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetFlags (GetFlags () | ENF_ALIVE );
|
|
||||||
#line 291 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetHealth (20.0f);
|
|
||||||
#line 292 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fMaxHealth = 20.0f;
|
|
||||||
#line 293 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
en_tmMaxHoldBreath = 5.0f;
|
|
||||||
#line 294 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
en_fDensity = 2000.0f;
|
|
||||||
#line 295 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fBlowUpSize = 2.0f;
|
|
||||||
#line 298 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetModel (MODEL_MENTAL );
|
|
||||||
#line 299 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
SetModelMainTexture (TEXTURE_MENTAL );
|
|
||||||
#line 300 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
AddAttachment (0 , MODEL_HEAD , TEXTURE_MENTAL );
|
|
||||||
#line 301 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(m_fnmHeadTex != ""){
|
|
||||||
#line 303 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
try {
|
|
||||||
#line 304 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
CAttachmentModelObject * pamoHead = GetModelObject () -> GetAttachmentModel (0);
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(pamoHead != NULL ){
|
|
||||||
#line 306 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
pamoHead -> amo_moModelObject . mo_toTexture . SetData_t (m_fnmHeadTex );
|
|
||||||
#line 307 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}catch (char * strError ){
|
|
||||||
#line 311 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
CPrintF ("%s\n" , strError );
|
|
||||||
#line 312 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
AddAttachment (0 , MODEL_HEAD , TEXTURE_MENTAL );
|
|
||||||
#line 313 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 314 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 315 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(m_bhtType == BHT_ZOMBIE ){
|
|
||||||
#line 316 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
AddAttachment (MENTAL_ATTACHMENT_HORNS , MODEL_HORNS , TEXTURE_HORNS );
|
|
||||||
#line 317 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}else if(m_bhtType == BHT_SAINT ){
|
|
||||||
#line 318 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
AddAttachment (MENTAL_ATTACHMENT_AURA , MODEL_AURA , TEXTURE_AURA );
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 322 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fWalkSpeed = FRnd () + 1.5f;
|
|
||||||
#line 323 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_aWalkRotateSpeed = AngleDeg (FRnd () * 10.0f + 500.0f);
|
|
||||||
#line 324 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fAttackRunSpeed = FRnd () * 2.0f + 6.0f;
|
|
||||||
#line 325 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_aAttackRotateSpeed = AngleDeg (FRnd () * 50 + 245.0f);
|
|
||||||
#line 326 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fCloseRunSpeed = FRnd () * 2.0f + 6.0f;
|
|
||||||
#line 327 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_aCloseRotateSpeed = AngleDeg (FRnd () * 50 + 245.0f);
|
|
||||||
#line 329 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fAttackDistance = 50.0f;
|
|
||||||
#line 330 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fCloseDistance = 0.0f;
|
|
||||||
#line 331 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fStopDistance = 5.0f;
|
|
||||||
#line 332 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fAttackFireTime = 0.1f;
|
|
||||||
#line 333 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fCloseFireTime = 0.1f;
|
|
||||||
#line 334 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fIgnoreRange = 200.0f;
|
|
||||||
#line 336 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fBlowUpAmount = 65.0f;
|
|
||||||
#line 337 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fBodyParts = 4;
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fDamageWounded = 1.0f;
|
|
||||||
#line 339 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_iScore = 0;
|
|
||||||
#line 340 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
if(m_bIgnorePlayer ){
|
|
||||||
#line 341 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bBlind = TRUE ;
|
|
||||||
#line 342 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bDeaf = TRUE ;
|
|
||||||
#line 343 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fSenseRange = 0;
|
|
||||||
#line 344 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}else {
|
|
||||||
#line 345 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_bBlind = TRUE ;
|
|
||||||
#line 346 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
m_fSenseRange = GREET_SENSE_RANGE ;
|
|
||||||
#line 347 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
}
|
|
||||||
#line 350 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
const FLOAT fSize = 0.6f;
|
|
||||||
#line 351 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
GetModelObject () -> StretchModel (FLOAT3D (fSize , fSize , fSize ));
|
|
||||||
#line 352 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
ModelChangeNotify ();
|
|
||||||
#line 353 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
StandingAnim ();
|
|
||||||
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CEnemyBase_MainLoop, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,110 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_BigHead_INCLUDED
|
|
||||||
#define _EntitiesMP_BigHead_INCLUDED 1
|
|
||||||
#include <EntitiesMP/EnemyBase.h>
|
|
||||||
#include <EntitiesMP/BasicEffects.h>
|
|
||||||
extern DECL_DLL CEntityPropertyEnumType BigHeadType_enum;
|
|
||||||
enum BigHeadType {
|
|
||||||
BHT_NORMAL = 0,
|
|
||||||
BHT_ZOMBIE = 1,
|
|
||||||
BHT_SAINT = 2,
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(BigHeadType &e) { e = (BigHeadType)0; } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CBigHead_DLLClass;
|
|
||||||
class CBigHead : public CEnemyBase {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
CTFileName m_fnmHeadTex;
|
|
||||||
CTFileName m_fnmNameSnd;
|
|
||||||
FLOAT m_tmLastGreetTime;
|
|
||||||
enum BigHeadType m_bhtType;
|
|
||||||
BOOL m_bIgnorePlayer;
|
|
||||||
BOOL m_bPlayingWalkSound;
|
|
||||||
BOOL m_bSleeping;
|
|
||||||
FLOAT m_tmLastWalkingSoundTime;
|
|
||||||
FLOAT m_tmWalkingSound;
|
|
||||||
CAutoPrecacheSound m_aps;
|
|
||||||
CAutoPrecacheTexture m_apt;
|
|
||||||
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
BOOL HandleEvent(const CEntityEvent & ee);
|
|
||||||
|
|
||||||
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void * GetEntityInfo(void);
|
|
||||||
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
INDEX GetWalkAnim(void);
|
|
||||||
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
INDEX AnimForDamage(FLOAT fDamage);
|
|
||||||
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
INDEX AnimForDeath(void);
|
|
||||||
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void DeathNotify(void);
|
|
||||||
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void StandingAnim(void);
|
|
||||||
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void WalkingAnim(void);
|
|
||||||
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void RunningAnim(void);
|
|
||||||
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void RotatingAnim(void);
|
|
||||||
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void PlayWalkSound(void);
|
|
||||||
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void IdleSound(void);
|
|
||||||
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void SightSound(void);
|
|
||||||
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void WoundSound(void);
|
|
||||||
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
void DeathSound(void);
|
|
||||||
#define STATE_CBigHead_Fire 0x01540000
|
|
||||||
BOOL
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Fire(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01540001_Fire_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01540002_Fire_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01540003_Fire_03(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBigHead_Sleep 0x01540004
|
|
||||||
BOOL
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Sleep(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01540005_Sleep_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01540006_Sleep_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBigHead_WakeUp 0x01540007
|
|
||||||
BOOL
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
WakeUp(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01540008_WakeUp_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01540009_WakeUp_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBigHead_PreMainLoop 0x0154000a
|
|
||||||
BOOL
|
|
||||||
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PreMainLoop(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0154000b_PreMainLoop_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0154000c_PreMainLoop_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0154000d_PreMainLoop_03(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBigHead_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_BigHead_INCLUDED
|
|
|
@ -1,100 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
EP_ENUMBEG(BigHeadType)
|
|
||||||
EP_ENUMVALUE(BHT_NORMAL, "Normal"),
|
|
||||||
EP_ENUMVALUE(BHT_ZOMBIE, "Zombie"),
|
|
||||||
EP_ENUMVALUE(BHT_SAINT, "Saint"),
|
|
||||||
EP_ENUMEND(BigHeadType);
|
|
||||||
|
|
||||||
#define ENTITYCLASS CBigHead
|
|
||||||
|
|
||||||
CEntityProperty CBigHead_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000154<<8)+1, offsetof(CBigHead, m_fnmHeadTex), "Head texture", 'H', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000154<<8)+2, offsetof(CBigHead, m_fnmNameSnd), "Name sound", 'S', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000154<<8)+3, offsetof(CBigHead, m_tmLastGreetTime), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &BigHeadType_enum, (0x00000154<<8)+4, offsetof(CBigHead, m_bhtType), "Type", 'Y', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000154<<8)+5, offsetof(CBigHead, m_bIgnorePlayer), "Ignore player", 'I', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000154<<8)+6, offsetof(CBigHead, m_bPlayingWalkSound), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000154<<8)+7, offsetof(CBigHead, m_bSleeping), "Sleeping", 'S', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000154<<8)+8, offsetof(CBigHead, m_tmLastWalkingSoundTime), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000154<<8)+9, offsetof(CBigHead, m_tmWalkingSound), "Walk sound frequency", 0, 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CBigHead_propertiesct ARRAYCOUNT(CBigHead_properties)
|
|
||||||
|
|
||||||
CEntityComponent CBigHead_components[] = {
|
|
||||||
#define CLASS_BASE ((0x00000154<<8)+1)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\EnemyBase.ecl"),
|
|
||||||
#define CLASS_BLOOD_SPRAY ((0x00000154<<8)+2)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BLOOD_SPRAY, "EFNM" "Classes\\BloodSpray.ecl"),
|
|
||||||
#define CLASS_BASIC_EFFECT ((0x00000154<<8)+3)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASIC_EFFECT, "EFNM" "Classes\\BasicEffect.ecl"),
|
|
||||||
#define MODEL_MENTAL ((0x00000154<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_MENTAL, "EFNM" "ModelsMP\\Enemies\\Mental\\Mental.mdl"),
|
|
||||||
#define TEXTURE_MENTAL ((0x00000154<<8)+11)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_MENTAL, "EFNM" "ModelsMP\\Enemies\\Mental\\Mental.tex"),
|
|
||||||
#define MODEL_HEAD ((0x00000154<<8)+12)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_HEAD, "EFNM" "ModelsMP\\Enemies\\Mental\\Head.mdl"),
|
|
||||||
#define MODEL_HORNS ((0x00000154<<8)+13)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_HORNS, "EFNM" "ModelsMP\\Enemies\\Mental\\Horns.mdl"),
|
|
||||||
#define TEXTURE_HORNS ((0x00000154<<8)+14)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_HORNS, "EFNM" "ModelsMP\\Enemies\\Mental\\Horns.tex"),
|
|
||||||
#define MODEL_AURA ((0x00000154<<8)+15)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_AURA, "EFNM" "ModelsMP\\Enemies\\Mental\\Aura.mdl"),
|
|
||||||
#define TEXTURE_AURA ((0x00000154<<8)+16)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_AURA, "EFNM" "ModelsMP\\Enemies\\Mental\\Aura.tex"),
|
|
||||||
#define SOUND_IDLE ((0x00000154<<8)+50)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_IDLE, "EFNM" "Models\\Enemies\\Mental\\Sounds\\Idle.wav"),
|
|
||||||
#define SOUND_SIGHT ((0x00000154<<8)+51)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_SIGHT, "EFNM" "Models\\Enemies\\Mental\\Sounds\\Sight.wav"),
|
|
||||||
#define SOUND_WOUND ((0x00000154<<8)+52)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_WOUND, "EFNM" "Models\\Enemies\\Mental\\Sounds\\Wound.wav"),
|
|
||||||
#define SOUND_DEATH ((0x00000154<<8)+53)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_DEATH, "EFNM" "Models\\Enemies\\Mental\\Sounds\\Death.wav"),
|
|
||||||
#define SOUND_WALKZOMBIE ((0x00000154<<8)+54)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_WALKZOMBIE, "EFNM" "ModelsMP\\Enemies\\Mental\\Sounds\\ComeToDaddy.wav"),
|
|
||||||
#define SOUND_WALKSAINT ((0x00000154<<8)+55)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_WALKSAINT, "EFNM" "ModelsMP\\Enemies\\Mental\\Sounds\\PeaceWithYou.wav"),
|
|
||||||
};
|
|
||||||
#define CBigHead_componentsct ARRAYCOUNT(CBigHead_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CBigHead_handlers[] = {
|
|
||||||
{0x01540000, STATE_CEnemyBase_Fire, CEntity::pEventHandler(&CBigHead::
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Fire),DEBUGSTRING("CBigHead::Fire")},
|
|
||||||
{0x01540001, -1, CEntity::pEventHandler(&CBigHead::H0x01540001_Fire_01), DEBUGSTRING("CBigHead::H0x01540001_Fire_01")},
|
|
||||||
{0x01540002, -1, CEntity::pEventHandler(&CBigHead::H0x01540002_Fire_02), DEBUGSTRING("CBigHead::H0x01540002_Fire_02")},
|
|
||||||
{0x01540003, -1, CEntity::pEventHandler(&CBigHead::H0x01540003_Fire_03), DEBUGSTRING("CBigHead::H0x01540003_Fire_03")},
|
|
||||||
{0x01540004, -1, CEntity::pEventHandler(&CBigHead::
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Sleep),DEBUGSTRING("CBigHead::Sleep")},
|
|
||||||
{0x01540005, -1, CEntity::pEventHandler(&CBigHead::H0x01540005_Sleep_01), DEBUGSTRING("CBigHead::H0x01540005_Sleep_01")},
|
|
||||||
{0x01540006, -1, CEntity::pEventHandler(&CBigHead::H0x01540006_Sleep_02), DEBUGSTRING("CBigHead::H0x01540006_Sleep_02")},
|
|
||||||
{0x01540007, -1, CEntity::pEventHandler(&CBigHead::
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
WakeUp),DEBUGSTRING("CBigHead::WakeUp")},
|
|
||||||
{0x01540008, -1, CEntity::pEventHandler(&CBigHead::H0x01540008_WakeUp_01), DEBUGSTRING("CBigHead::H0x01540008_WakeUp_01")},
|
|
||||||
{0x01540009, -1, CEntity::pEventHandler(&CBigHead::H0x01540009_WakeUp_02), DEBUGSTRING("CBigHead::H0x01540009_WakeUp_02")},
|
|
||||||
{0x0154000a, STATE_CEnemyBase_PreMainLoop, CEntity::pEventHandler(&CBigHead::
|
|
||||||
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
PreMainLoop),DEBUGSTRING("CBigHead::PreMainLoop")},
|
|
||||||
{0x0154000b, -1, CEntity::pEventHandler(&CBigHead::H0x0154000b_PreMainLoop_01), DEBUGSTRING("CBigHead::H0x0154000b_PreMainLoop_01")},
|
|
||||||
{0x0154000c, -1, CEntity::pEventHandler(&CBigHead::H0x0154000c_PreMainLoop_02), DEBUGSTRING("CBigHead::H0x0154000c_PreMainLoop_02")},
|
|
||||||
{0x0154000d, -1, CEntity::pEventHandler(&CBigHead::H0x0154000d_PreMainLoop_03), DEBUGSTRING("CBigHead::H0x0154000d_PreMainLoop_03")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CBigHead::
|
|
||||||
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/BigHead.es"
|
|
||||||
Main),DEBUGSTRING("CBigHead::Main")},
|
|
||||||
};
|
|
||||||
#define CBigHead_handlersct ARRAYCOUNT(CBigHead_handlers)
|
|
||||||
|
|
||||||
CEntity *CBigHead_New(void) { return new CBigHead; };
|
|
||||||
void CBigHead_OnInitClass(void) {};
|
|
||||||
void CBigHead_OnEndClass(void) {};
|
|
||||||
void CBigHead_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CBigHead_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CBigHead_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CBigHead_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CBigHead_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CBigHead, CEnemyBase, "BigHead", "Thumbnails\\Mental.tbn", 0x00000154);
|
|
||||||
DECLARE_CTFILENAME(_fnmCBigHead_tbn, "Thumbnails\\Mental.tbn");
|
|
|
@ -1,147 +0,0 @@
|
||||||
/*
|
|
||||||
* 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 <EntitiesMP/BlendController.h>
|
|
||||||
#include <EntitiesMP/BlendController_tables.h>
|
|
||||||
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;};
|
|
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_BlendController_INCLUDED
|
|
||||||
#define _EntitiesMP_BlendController_INCLUDED 1
|
|
||||||
#include <EntitiesMP/Marker.h>
|
|
||||||
extern DECL_DLL CEntityPropertyEnumType BlendControllerType_enum;
|
|
||||||
enum BlendControllerType {
|
|
||||||
BCT_NONE = 0,
|
|
||||||
BCT_PYRAMID_PLATES = 1,
|
|
||||||
BCT_ACTIVATE_PLATE_1 = 2,
|
|
||||||
BCT_ACTIVATE_PLATE_2 = 3,
|
|
||||||
BCT_ACTIVATE_PLATE_3 = 4,
|
|
||||||
BCT_ACTIVATE_PLATE_4 = 5,
|
|
||||||
BCT_ACTIVATE_PYRAMID_MORPH_ROOM = 6,
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(BlendControllerType &e) { e = (BlendControllerType)0; } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CBlendController_DLLClass;
|
|
||||||
class CBlendController : public CMarker {
|
|
||||||
public:
|
|
||||||
virtual BOOL IsImportant(void) const { return TRUE; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
enum BlendControllerType m_bctType;
|
|
||||||
|
|
||||||
#line 41 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es"
|
|
||||||
BOOL HandleEvent(const CEntityEvent & ee);
|
|
||||||
#define STATE_CBlendController_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_BlendController_INCLUDED
|
|
|
@ -1,46 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
EP_ENUMBEG(BlendControllerType)
|
|
||||||
EP_ENUMVALUE(BCT_NONE, "None"),
|
|
||||||
EP_ENUMVALUE(BCT_PYRAMID_PLATES, "Appear pyramid plates"),
|
|
||||||
EP_ENUMVALUE(BCT_ACTIVATE_PLATE_1, "Activate plate 1"),
|
|
||||||
EP_ENUMVALUE(BCT_ACTIVATE_PLATE_2, "Activate plate 2"),
|
|
||||||
EP_ENUMVALUE(BCT_ACTIVATE_PLATE_3, "Activate plate 3"),
|
|
||||||
EP_ENUMVALUE(BCT_ACTIVATE_PLATE_4, "Activate plate 4"),
|
|
||||||
EP_ENUMVALUE(BCT_ACTIVATE_PYRAMID_MORPH_ROOM, "Pyramid morph room"),
|
|
||||||
EP_ENUMEND(BlendControllerType);
|
|
||||||
|
|
||||||
#define ENTITYCLASS CBlendController
|
|
||||||
|
|
||||||
CEntityProperty CBlendController_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &BlendControllerType_enum, (0x00000264<<8)+1, offsetof(CBlendController, m_bctType), "Blend type", 'Y', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CBlendController_propertiesct ARRAYCOUNT(CBlendController_properties)
|
|
||||||
|
|
||||||
CEntityComponent CBlendController_components[] = {
|
|
||||||
#define MODEL_CONTROLLER ((0x00000264<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CONTROLLER, "EFNM" "Models\\Editor\\BlendController.mdl"),
|
|
||||||
#define TEXTURE_CONTROLLER ((0x00000264<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_CONTROLLER, "EFNM" "Models\\Editor\\BlendController.tex"),
|
|
||||||
};
|
|
||||||
#define CBlendController_componentsct ARRAYCOUNT(CBlendController_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CBlendController_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CBlendController::
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/BlendController.es"
|
|
||||||
Main),DEBUGSTRING("CBlendController::Main")},
|
|
||||||
};
|
|
||||||
#define CBlendController_handlersct ARRAYCOUNT(CBlendController_handlers)
|
|
||||||
|
|
||||||
CEntity *CBlendController_New(void) { return new CBlendController; };
|
|
||||||
void CBlendController_OnInitClass(void) {};
|
|
||||||
void CBlendController_OnEndClass(void) {};
|
|
||||||
void CBlendController_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CBlendController_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CBlendController_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CBlendController_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CBlendController_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CBlendController, CMarker, "Blend controller", "Thumbnails\\BlendController.tbn", 0x00000264);
|
|
||||||
DECLARE_CTFILENAME(_fnmCBlendController_tbn, "Thumbnails\\BlendController.tbn");
|
|
|
@ -1,254 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/BloodSpray.h>
|
|
||||||
#include <EntitiesMP/BloodSpray_tables.h>
|
|
||||||
CEntityEvent *ESpawnSpray::MakeCopy(void) { CEntityEvent *peeCopy = new ESpawnSpray(*this); return peeCopy;}
|
|
||||||
ESpawnSpray::ESpawnSpray() : CEntityEvent(EVENTCODE_ESpawnSpray) {;
|
|
||||||
ClearToDefault(sptType);
|
|
||||||
ClearToDefault(fDamagePower);
|
|
||||||
ClearToDefault(fSizeMultiplier);
|
|
||||||
ClearToDefault(vDirection);
|
|
||||||
ClearToDefault(penOwner);
|
|
||||||
ClearToDefault(colCentralColor);
|
|
||||||
ClearToDefault(fLaunchPower);
|
|
||||||
ClearToDefault(colBurnColor);
|
|
||||||
};
|
|
||||||
void CBloodSpray::SetDefaultProperties(void) {
|
|
||||||
m_sptType = SPT_NONE ;
|
|
||||||
m_tmStarted = 0.0f;
|
|
||||||
m_vDirection = FLOAT3D(0 , 0 , 0);
|
|
||||||
m_penOwner = NULL;
|
|
||||||
m_fDamagePower = 1.0f;
|
|
||||||
m_boxSizedOwner = FLOATaabbox3D(FLOAT3D (0 , 0 , 0) , 0.01f);
|
|
||||||
m_vGDir = FLOAT3D(0 , 0 , 0);
|
|
||||||
m_fGA = 0.0f;
|
|
||||||
m_fLaunchPower = 1.0f;
|
|
||||||
m_colCentralColor = COLOR(C_WHITE | CT_OPAQUE );
|
|
||||||
m_boxOriginalOwner = FLOATaabbox3D(FLOAT3D (0 , 0 , 0) , 0.01f);
|
|
||||||
m_colBurnColor = COLOR(C_WHITE | CT_OPAQUE );
|
|
||||||
m_penPrediction = NULL;
|
|
||||||
CRationalEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 48 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
void CBloodSpray::RenderParticles(void)
|
|
||||||
#line 49 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
{
|
|
||||||
#line 50 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
switch(m_sptType )
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
{
|
|
||||||
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_BLOOD :
|
|
||||||
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_BONES :
|
|
||||||
#line 54 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_FEATHER :
|
|
||||||
#line 55 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_STONES :
|
|
||||||
#line 56 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_WOOD :
|
|
||||||
#line 57 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_SLIME :
|
|
||||||
#line 58 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_LAVA_STONES :
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_SMALL_LAVA_STONES :
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_BEAST_PROJECTILE_SPRAY :
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_AIRSPOUTS :
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_GOO :
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
{
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_BloodSpray (m_sptType , GetLerpedPlacement () . pl_PositionVector , m_vGDir , m_fGA ,
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_boxSizedOwner , m_vDirection , m_tmStarted , m_fDamagePower , m_colBurnColor );
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
break ;
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_COLOREDSTONE :
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
{
|
|
||||||
#line 70 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_BloodSpray (m_sptType , GetLerpedPlacement () . pl_PositionVector , m_vGDir , m_fGA ,
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_boxSizedOwner , m_vDirection , m_tmStarted , m_fDamagePower , MulColors (m_colCentralColor , m_colBurnColor ));
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
break ;
|
|
||||||
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_TREE01 :
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_BloodSpray (SPT_WOOD , GetLerpedPlacement () . pl_PositionVector , m_vGDir , m_fGA / 1.5f ,
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_boxSizedOwner , m_vDirection , m_tmStarted , m_fDamagePower / 2.0f , m_colBurnColor );
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_Leaves (m_penOwner , m_boxOriginalOwner , GetLerpedPlacement () . pl_PositionVector ,
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_fDamagePower , m_fDamagePower * m_fLaunchPower , m_vGDir ,
|
|
||||||
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_fGA / 2.0f , m_tmStarted , MulColors (m_colCentralColor , m_colBurnColor ));
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
break ;
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_PLASMA :
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_BloodSpray (m_sptType , GetLerpedPlacement () . pl_PositionVector , m_vGDir , m_fGA ,
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_boxSizedOwner , m_vDirection , m_tmStarted , m_fDamagePower );
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_DamageSmoke (this , m_tmStarted , m_boxSizedOwner , m_fDamagePower );
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_ElectricitySparks (this , m_tmStarted , 5.0f , 0.0f , 32);
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
break ;
|
|
||||||
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_ELECTRICITY_SPARKS :
|
|
||||||
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
{
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_MetalParts (this , m_tmStarted , m_boxSizedOwner , m_fDamagePower );
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_DamageSmoke (this , m_tmStarted , m_boxSizedOwner , m_fDamagePower );
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_BloodSpray (SPT_BLOOD , GetLerpedPlacement () . pl_PositionVector , m_vGDir , m_fGA ,
|
|
||||||
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_boxSizedOwner , m_vDirection , m_tmStarted , m_fDamagePower / 2.0f , C_WHITE | CT_OPAQUE );
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_ElectricitySparks (this , m_tmStarted , 5.0f , 0.0f , 32);
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
break ;
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
case SPT_ELECTRICITY_SPARKS_NO_BLOOD :
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
{
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_MetalParts (this , m_tmStarted , m_boxSizedOwner , m_fDamagePower );
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_DamageSmoke (this , m_tmStarted , m_boxSizedOwner , m_fDamagePower );
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Particles_ElectricitySparks (this , m_tmStarted , 5.0f , 0.0f , 32);
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}
|
|
||||||
BOOL CBloodSpray::
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBloodSpray_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_ESpawnSpray, "CBloodSpray::Main expects 'ESpawnSpray' as input!"); const ESpawnSpray &eSpawn = (const ESpawnSpray &)__eeInput;
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
SetPredictable (TRUE );
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
SetModel (MODEL_MARKER );
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
SetModelMainTexture (TEXTURE_MARKER );
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_sptType = eSpawn . sptType ;
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_vDirection = eSpawn . vDirection ;
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_penOwner = eSpawn . penOwner ;
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_fDamagePower = eSpawn . fDamagePower ;
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_fLaunchPower = eSpawn . fLaunchPower ;
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_colBurnColor = eSpawn . colBurnColor ;
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_tmStarted = _pTimer -> CurrentTick ();
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_colCentralColor = eSpawn . colCentralColor ;
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
if(eSpawn . penOwner == NULL || eSpawn . penOwner -> en_pmoModelObject == NULL )
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
{
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
if(eSpawn . penOwner -> en_RenderType == RT_SKAMODEL ){
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
eSpawn . penOwner -> GetModelInstance () -> GetCurrentColisionBox (m_boxSizedOwner );
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}else {
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
eSpawn . penOwner -> en_pmoModelObject -> GetCurrentFrameBBox (m_boxSizedOwner );
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_boxOriginalOwner = m_boxSizedOwner ;
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_boxSizedOwner . StretchByVector (eSpawn . penOwner -> en_pmoModelObject -> mo_Stretch * eSpawn . fSizeMultiplier );
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_boxOriginalOwner . StretchByVector (eSpawn . penOwner -> en_pmoModelObject -> mo_Stretch );
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}
|
|
||||||
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
if(m_penOwner -> GetPhysicsFlags () & EPF_MOVABLE ){
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_vGDir = ((CMovableEntity *) & * m_penOwner ) -> en_vGravityDir ;
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_fGA = ((CMovableEntity *) & * m_penOwner ) -> en_fGravityA ;
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}else {
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
FLOATmatrix3D & m = m_penOwner -> en_mRotation ;
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_vGDir = FLOAT3D (- m (1 , 2) , - m (2 , 2) , - m (3 , 2));
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
m_fGA = 30.0f;
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
FLOAT fWaitTime = 4.0f;
|
|
||||||
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
if(m_sptType == SPT_ELECTRICITY_SPARKS || m_sptType == SPT_ELECTRICITY_SPARKS_NO_BLOOD )
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
{
|
|
||||||
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
fWaitTime = 4.0f;
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
}
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
SetTimerAfter(fWaitTime );
|
|
||||||
Jump(STATE_CURRENT, 0x025b0001, FALSE, EBegin());return TRUE;}BOOL CBloodSpray::H0x025b0001_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x025b0001
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x025b0002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBloodSpray::H0x025b0002_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x025b0002
|
|
||||||
;
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,51 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_BloodSpray_INCLUDED
|
|
||||||
#define _EntitiesMP_BloodSpray_INCLUDED 1
|
|
||||||
#define EVENTCODE_ESpawnSpray 0x025b0000
|
|
||||||
class DECL_DLL ESpawnSpray : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
ESpawnSpray();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
enum SprayParticlesType sptType;
|
|
||||||
FLOAT fDamagePower;
|
|
||||||
FLOAT fSizeMultiplier;
|
|
||||||
FLOAT3D vDirection;
|
|
||||||
CEntityPointer penOwner;
|
|
||||||
COLOR colCentralColor;
|
|
||||||
FLOAT fLaunchPower;
|
|
||||||
COLOR colBurnColor;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(ESpawnSpray &e) { e = ESpawnSpray(); } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CBloodSpray_DLLClass;
|
|
||||||
class CBloodSpray : public CRationalEntity {
|
|
||||||
public:
|
|
||||||
virtual CEntity *GetPredictionPair(void) { return m_penPrediction; };
|
|
||||||
virtual void SetPredictionPair(CEntity *penPair) { m_penPrediction = penPair; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
enum SprayParticlesType m_sptType;
|
|
||||||
FLOAT m_tmStarted;
|
|
||||||
FLOAT3D m_vDirection;
|
|
||||||
CEntityPointer m_penOwner;
|
|
||||||
FLOAT m_fDamagePower;
|
|
||||||
FLOATaabbox3D m_boxSizedOwner;
|
|
||||||
FLOAT3D m_vGDir;
|
|
||||||
FLOAT m_fGA;
|
|
||||||
FLOAT m_fLaunchPower;
|
|
||||||
COLOR m_colCentralColor;
|
|
||||||
FLOATaabbox3D m_boxOriginalOwner;
|
|
||||||
COLOR m_colBurnColor;
|
|
||||||
CEntityPointer m_penPrediction;
|
|
||||||
|
|
||||||
#line 48 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
void RenderParticles(void);
|
|
||||||
#define STATE_CBloodSpray_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x025b0001_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x025b0002_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_BloodSpray_INCLUDED
|
|
|
@ -1,50 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CBloodSpray
|
|
||||||
|
|
||||||
CEntityProperty CBloodSpray_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &SprayParticlesType_enum, (0x0000025b<<8)+1, offsetof(CBloodSpray, m_sptType), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000025b<<8)+2, offsetof(CBloodSpray, m_tmStarted), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x0000025b<<8)+3, offsetof(CBloodSpray, m_vDirection), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000025b<<8)+5, offsetof(CBloodSpray, m_penOwner), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000025b<<8)+6, offsetof(CBloodSpray, m_fDamagePower), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATAABBOX3D, NULL, (0x0000025b<<8)+8, offsetof(CBloodSpray, m_boxSizedOwner), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x0000025b<<8)+9, offsetof(CBloodSpray, m_vGDir), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000025b<<8)+10, offsetof(CBloodSpray, m_fGA), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x0000025b<<8)+11, offsetof(CBloodSpray, m_fLaunchPower), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x0000025b<<8)+12, offsetof(CBloodSpray, m_colCentralColor), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATAABBOX3D, NULL, (0x0000025b<<8)+13, offsetof(CBloodSpray, m_boxOriginalOwner), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x0000025b<<8)+14, offsetof(CBloodSpray, m_colBurnColor), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x0000025b<<8)+255, offsetof(CBloodSpray, m_penPrediction), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CBloodSpray_propertiesct ARRAYCOUNT(CBloodSpray_properties)
|
|
||||||
|
|
||||||
CEntityComponent CBloodSpray_components[] = {
|
|
||||||
#define MODEL_MARKER ((0x0000025b<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_MARKER, "EFNM" "Models\\Editor\\Axis.mdl"),
|
|
||||||
#define TEXTURE_MARKER ((0x0000025b<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_MARKER, "EFNM" "Models\\Editor\\Vector.tex"),
|
|
||||||
};
|
|
||||||
#define CBloodSpray_componentsct ARRAYCOUNT(CBloodSpray_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CBloodSpray_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CBloodSpray::
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/BloodSpray.es"
|
|
||||||
Main),DEBUGSTRING("CBloodSpray::Main")},
|
|
||||||
{0x025b0001, -1, CEntity::pEventHandler(&CBloodSpray::H0x025b0001_Main_01), DEBUGSTRING("CBloodSpray::H0x025b0001_Main_01")},
|
|
||||||
{0x025b0002, -1, CEntity::pEventHandler(&CBloodSpray::H0x025b0002_Main_02), DEBUGSTRING("CBloodSpray::H0x025b0002_Main_02")},
|
|
||||||
};
|
|
||||||
#define CBloodSpray_handlersct ARRAYCOUNT(CBloodSpray_handlers)
|
|
||||||
|
|
||||||
CEntity *CBloodSpray_New(void) { return new CBloodSpray; };
|
|
||||||
void CBloodSpray_OnInitClass(void) {};
|
|
||||||
void CBloodSpray_OnEndClass(void) {};
|
|
||||||
void CBloodSpray_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CBloodSpray_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CBloodSpray_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CBloodSpray_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CBloodSpray_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CBloodSpray, CRationalEntity, "Blood Spray", "", 0x0000025b);
|
|
||||||
DECLARE_CTFILENAME(_fnmCBloodSpray_tbn, "");
|
|
|
@ -1,645 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "Models/Enemies/Boneman/Boneman.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/Boneman.h>
|
|
||||||
#include <EntitiesMP/Boneman_tables.h>
|
|
||||||
#line 11 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
|
|
||||||
// info structure
|
|
||||||
static EntityInfo eiBoneman = {
|
|
||||||
EIBT_BONES, 250.0f,
|
|
||||||
0.0f, 1.9f, 0.0f, // source (eyes)
|
|
||||||
0.0f, 1.9f, 0.0f, // target (body)
|
|
||||||
};
|
|
||||||
|
|
||||||
#define BONES_HIT 2.8f
|
|
||||||
#define FIRE_RIGHT_HAND FLOAT3D( 0.25f, 1.5f, 0.0f)
|
|
||||||
#define FIRE_LEFT_HAND FLOAT3D(-0.25f, 1.5f, 0.0f)
|
|
||||||
|
|
||||||
void CBoneman::SetDefaultProperties(void) {
|
|
||||||
m_bFistHit = FALSE ;
|
|
||||||
m_bTouchAnother = FALSE ;
|
|
||||||
m_soFeet.SetOwner(this);
|
|
||||||
m_soFeet.Stop_internal();
|
|
||||||
m_bRunSoundPlaying = FALSE ;
|
|
||||||
CEnemyBase::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 57 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::Precache(void) {
|
|
||||||
#line 58 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
CEnemyBase :: Precache ();
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheSound (SOUND_IDLE );
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheSound (SOUND_SIGHT );
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheSound (SOUND_WOUND );
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheSound (SOUND_FIRE );
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheSound (SOUND_KICK );
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheSound (SOUND_PUNCH );
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheSound (SOUND_DEATH );
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheSound (SOUND_RUN );
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheModel (MODEL_BONEMAN_BODY );
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheModel (MODEL_BONEMAN_HAND );
|
|
||||||
#line 70 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheModel (MODEL_BONEMAN_LEGS );
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PrecacheClass (CLASS_PROJECTILE , PRT_BONEMAN_FIRE );
|
|
||||||
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
CTString CBoneman::GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath)
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
{
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
CTString str ;
|
|
||||||
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(eDeath . eLastDamage . dmtType == DMT_CLOSERANGE ){
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
str . PrintF (TRANS ("%s was ripped apart by a Kleer") , strPlayerName );
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}else {
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
str . PrintF (TRANS ("%s was killed by a Kleer") , strPlayerName );
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return str ;
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
const CTFileName & CBoneman::GetComputerMessageName(void)const {
|
|
||||||
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
static DECLARE_CTFILENAME (fnm , "Data\\Messages\\Enemies\\Boneman.txt");
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return fnm ;
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void * CBoneman::GetEntityInfo(void) {
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return & eiBoneman ;
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection)
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
{
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(! IsOfClass (penInflictor , "Boneman")){
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
CEnemyBase :: ReceiveDamage (penInflictor , dmtType , fDamageAmmount , vHitPoint , vDirection );
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::LeaveStain(BOOL bGrow)
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
{
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
INDEX CBoneman::AnimForDamage(FLOAT fDamage) {
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
INDEX iAnim ;
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
switch(IRnd () % 5){
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
case 0: iAnim = BONEMAN_ANIM_WOUNDCRITICAL01 ;break ;
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
case 1: iAnim = BONEMAN_ANIM_WOUNDCRITICAL02 ;break ;
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
case 2: iAnim = BONEMAN_ANIM_WOUNDCRITICAL03 ;break ;
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
case 3: iAnim = BONEMAN_ANIM_FALL01 ;break ;
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
case 4: iAnim = BONEMAN_ANIM_FALL02 ;break ;
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
default : ASSERTALWAYS ("Boneman unknown damage");
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
StartModelAnim (iAnim , 0);
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
DeactivateRunningSound ();
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return iAnim ;
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
INDEX CBoneman::AnimForDeath(void) {
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
INDEX iAnim ;
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
switch(IRnd () % 2){
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
case 0: iAnim = BONEMAN_ANIM_DEATHTOBACK ;break ;
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
case 1: iAnim = BONEMAN_ANIM_DEATHTOFRONT ;break ;
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
default : ASSERTALWAYS ("Boneman unknown death");
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
StartModelAnim (iAnim , 0);
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
DeactivateRunningSound ();
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return iAnim ;
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT CBoneman::WaitForDust(FLOAT3D & vStretch) {
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(GetModelObject () -> GetAnim () == BONEMAN_ANIM_DEATHTOBACK )
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
{
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vStretch = FLOAT3D (1 , 1 , 2) * 1.0f;
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return 0.48f;
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
else if(GetModelObject () -> GetAnim () == BONEMAN_ANIM_DEATHTOFRONT )
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
{
|
|
||||||
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vStretch = FLOAT3D (1 , 1 , 2) * 0.75f;
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return 0.48f;
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return - 1.0f;
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::DeathNotify(void) {
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
ChangeCollisionBoxIndexWhenPossible (BONEMAN_COLLISION_BOX_DEATH );
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::StandingAnim(void) {
|
|
||||||
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
StartModelAnim (BONEMAN_ANIM_STANDLOOP , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
DeactivateRunningSound ();
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::WalkingAnim(void) {
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
StartModelAnim (BONEMAN_ANIM_WALKLOOP , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
DeactivateRunningSound ();
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::RunningAnim(void) {
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
StartModelAnim (BONEMAN_ANIM_RUNLOOP , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
ActivateRunningSound ();
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::RotatingAnim(void) {
|
|
||||||
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
StartModelAnim (BONEMAN_ANIM_WALKLOOP , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
DeactivateRunningSound ();
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::IdleSound(void) {
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PlaySound (m_soSound , SOUND_IDLE , SOF_3D );
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::SightSound(void) {
|
|
||||||
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PlaySound (m_soSound , SOUND_SIGHT , SOF_3D );
|
|
||||||
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::WoundSound(void) {
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PlaySound (m_soSound , SOUND_WOUND , SOF_3D );
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::DeathSound(void) {
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PlaySound (m_soSound , SOUND_DEATH , SOF_3D );
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::ActivateRunningSound(void)
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
{
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(! m_bRunSoundPlaying ){
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PlaySound (m_soFeet , SOUND_RUN , SOF_3D | SOF_LOOP );
|
|
||||||
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_bRunSoundPlaying = TRUE ;
|
|
||||||
#line 198 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 199 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::DeactivateRunningSound(void)
|
|
||||||
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
{
|
|
||||||
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_soFeet . Stop ();
|
|
||||||
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_bRunSoundPlaying = FALSE ;
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void CBoneman::BlowUp(void) {
|
|
||||||
#line 212 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOATaabbox3D box ;
|
|
||||||
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
GetBoundingBox (box );
|
|
||||||
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT fEntitySize = box . Size () . MaxNorm ();
|
|
||||||
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D vNormalizedDamage = m_vDamage - m_vDamage * (m_fBlowUpAmount / m_vDamage . Length ());
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vNormalizedDamage /= Sqrt (vNormalizedDamage . Length ());
|
|
||||||
#line 219 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vNormalizedDamage *= 0.75f;
|
|
||||||
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D vBodySpeed = en_vCurrentTranslationAbsolute - en_vGravityDir * (en_vGravityDir % en_vCurrentTranslationAbsolute );
|
|
||||||
#line 224 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Debris_Begin (EIBT_BONES , DPT_NONE , BET_NONE , fEntitySize , vNormalizedDamage , vBodySpeed , 5.0f , 2.0f);
|
|
||||||
#line 226 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_BONEMAN_BODY , TEXTURE_BONEMAN , 0 , 0 , 0 , 0 , 0.0f ,
|
|
||||||
#line 227 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_BONEMAN_HAND , TEXTURE_BONEMAN , 0 , 0 , 0 , 0 , 0.0f ,
|
|
||||||
#line 229 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_BONEMAN_HAND , TEXTURE_BONEMAN , 0 , 0 , 0 , 0 , 0.0f ,
|
|
||||||
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_BONEMAN_LEGS , TEXTURE_BONEMAN , 0 , 0 , 0 , 0 , 0.0f ,
|
|
||||||
#line 233 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SwitchToEditorModel ();
|
|
||||||
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
BOOL CBoneman::
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Fire(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBoneman_Fire
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBoneman::Fire expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 251 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
StartModelAnim (BONEMAN_ANIM_ATTACKCLOSELOOP , 0);
|
|
||||||
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
DeactivateRunningSound ();
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetTimerAfter(0.35f);
|
|
||||||
Jump(STATE_CURRENT, 0x01310001, FALSE, EBegin());return TRUE;}BOOL CBoneman::H0x01310001_Fire_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310001
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01310002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBoneman::H0x01310002_Fire_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310002
|
|
||||||
;
|
|
||||||
#line 254 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
ShootProjectile (PRT_BONEMAN_FIRE , FIRE_RIGHT_HAND , ANGLE3D (0 , 0 , 0));
|
|
||||||
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PlaySound (m_soSound , SOUND_FIRE , SOF_3D );
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetTimerAfter(0.45f);
|
|
||||||
Jump(STATE_CURRENT, 0x01310003, FALSE, EBegin());return TRUE;}BOOL CBoneman::H0x01310003_Fire_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310003
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01310004, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBoneman::H0x01310004_Fire_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310004
|
|
||||||
;
|
|
||||||
#line 257 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
ShootProjectile (PRT_BONEMAN_FIRE , FIRE_LEFT_HAND , ANGLE3D (0 , 0 , 0));
|
|
||||||
#line 258 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PlaySound (m_soSound , SOUND_FIRE , SOF_3D );
|
|
||||||
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetTimerAfter(FRnd () / 3 + 0.6f);
|
|
||||||
Jump(STATE_CURRENT, 0x01310005, FALSE, EBegin());return TRUE;}BOOL CBoneman::H0x01310005_Fire_05(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310005
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01310006, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBoneman::H0x01310006_Fire_06(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310006
|
|
||||||
;
|
|
||||||
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CBoneman::
|
|
||||||
#line 264 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Hit(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBoneman_Hit
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBoneman::Hit expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(CalcDist (m_penEnemy ) < BONES_HIT ){
|
|
||||||
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CBoneman_HitWithBones, TRUE, EVoid());return TRUE;
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}else if(CalcDist (m_penEnemy ) < 10.0f){
|
|
||||||
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CBoneman_JumpOnEnemy, TRUE, EVoid());return TRUE;
|
|
||||||
#line 272 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 275 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fShootTime = _pTimer -> CurrentTick () + 0.5f;
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CBoneman::
|
|
||||||
#line 280 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
JumpOnEnemy(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBoneman_JumpOnEnemy
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBoneman::JumpOnEnemy expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 281 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
StartModelAnim (BONEMAN_ANIM_ATTACKFAR , 0);
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
DeactivateRunningSound ();
|
|
||||||
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D vDir = (m_penEnemy -> GetPlacement () . pl_PositionVector -
|
|
||||||
#line 286 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
GetPlacement () . pl_PositionVector ) . Normalize ();
|
|
||||||
#line 287 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vDir *= ! GetRotationMatrix ();
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vDir *= m_fCloseRunSpeed * 1.5f;
|
|
||||||
#line 289 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vDir (2) = 2.5f;
|
|
||||||
#line 290 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetDesiredTranslation (vDir );
|
|
||||||
#line 291 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PlaySound (m_soSound , SOUND_KICK , SOF_3D );
|
|
||||||
#line 294 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SpawnReminder (this , 0.5f , 0);
|
|
||||||
#line 295 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_iChargeHitAnimation = BONEMAN_ANIM_ATTACKFAR ;
|
|
||||||
#line 296 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fChargeHitDamage = 20.0f;
|
|
||||||
#line 297 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fChargeHitAngle = 0.0f;
|
|
||||||
#line 298 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fChargeHitSpeed = 15.0f;
|
|
||||||
#line 299 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
STATE_CEnemyBase_ChargeHitEnemy, FALSE;
|
|
||||||
Jump(STATE_CURRENT, 0x01310009, FALSE, EBegin());return TRUE;}BOOL CBoneman::H0x01310009_JumpOnEnemy_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310009
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: Call(STATE_CURRENT, STATE_CEnemyBase_ChargeHitEnemy, FALSE, EVoid());return TRUE;case EVENTCODE_EReturn: Jump(STATE_CURRENT,0x0131000a, FALSE, __eeInput); return TRUE;default: return FALSE; }}BOOL CBoneman::H0x0131000a_JumpOnEnemy_02(const CEntityEvent &__eeInput){
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0131000a
|
|
||||||
const EReturn&__e= (EReturn&)__eeInput;
|
|
||||||
;
|
|
||||||
#line 300 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetTimerAfter(0.3f);
|
|
||||||
Jump(STATE_CURRENT, 0x0131000b, FALSE, EBegin());return TRUE;}BOOL CBoneman::H0x0131000b_JumpOnEnemy_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0131000b
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x0131000c, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBoneman::H0x0131000c_JumpOnEnemy_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0131000c
|
|
||||||
;
|
|
||||||
#line 301 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 301 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CBoneman::
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
HitWithBones(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBoneman_HitWithBones
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBoneman::HitWithBones expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 307 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
StartModelAnim (BONEMAN_ANIM_ATTACKCLOSELOOP , 0);
|
|
||||||
#line 308 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
DeactivateRunningSound ();
|
|
||||||
#line 311 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_bFistHit = FALSE ;
|
|
||||||
#line 312 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetTimerAfter(0.35f);
|
|
||||||
Jump(STATE_CURRENT, 0x0131000e, FALSE, EBegin());return TRUE;}BOOL CBoneman::H0x0131000e_HitWithBones_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0131000e
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x0131000f, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBoneman::H0x0131000f_HitWithBones_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0131000f
|
|
||||||
;
|
|
||||||
#line 313 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(CalcDist (m_penEnemy ) < BONES_HIT ){m_bFistHit = TRUE ;}
|
|
||||||
#line 314 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PlaySound (m_soSound , SOUND_PUNCH , SOF_3D );
|
|
||||||
#line 315 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetTimerAfter(0.10f);
|
|
||||||
Jump(STATE_CURRENT, 0x01310010, FALSE, EBegin());return TRUE;}BOOL CBoneman::H0x01310010_HitWithBones_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310010
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01310011, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBoneman::H0x01310011_HitWithBones_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310011
|
|
||||||
;
|
|
||||||
#line 316 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(CalcDist (m_penEnemy ) < BONES_HIT ){m_bFistHit = TRUE ;}
|
|
||||||
#line 317 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(m_bFistHit ){
|
|
||||||
#line 318 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D vDirection = m_penEnemy -> GetPlacement () . pl_PositionVector - GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vDirection . Normalize ();
|
|
||||||
#line 321 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
InflictDirectDamage (m_penEnemy , this , DMT_CLOSERANGE , 10.0f , FLOAT3D (0 , 0 , 0) , vDirection );
|
|
||||||
#line 323 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D vSpeed ;
|
|
||||||
#line 324 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
GetHeadingDirection (AngleDeg (90.0f) , vSpeed );
|
|
||||||
#line 325 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vSpeed = vSpeed * 5.0f;
|
|
||||||
#line 326 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
KickEntity (m_penEnemy , vSpeed );
|
|
||||||
#line 327 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 330 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_bFistHit = FALSE ;
|
|
||||||
#line 331 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetTimerAfter(0.25f);
|
|
||||||
Jump(STATE_CURRENT, 0x01310012, FALSE, EBegin());return TRUE;}BOOL CBoneman::H0x01310012_HitWithBones_05(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310012
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01310013, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBoneman::H0x01310013_HitWithBones_06(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310013
|
|
||||||
;
|
|
||||||
#line 332 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(CalcDist (m_penEnemy ) < BONES_HIT ){m_bFistHit = TRUE ;}
|
|
||||||
#line 333 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
PlaySound (m_soSound , SOUND_PUNCH , SOF_3D );
|
|
||||||
#line 334 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetTimerAfter(0.10f);
|
|
||||||
Jump(STATE_CURRENT, 0x01310014, FALSE, EBegin());return TRUE;}BOOL CBoneman::H0x01310014_HitWithBones_07(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310014
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01310015, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CBoneman::H0x01310015_HitWithBones_08(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01310015
|
|
||||||
;
|
|
||||||
#line 335 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(CalcDist (m_penEnemy ) < BONES_HIT ){m_bFistHit = TRUE ;}
|
|
||||||
#line 336 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(m_bFistHit ){
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D vDirection = m_penEnemy -> GetPlacement () . pl_PositionVector - GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 339 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vDirection . Normalize ();
|
|
||||||
#line 340 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
InflictDirectDamage (m_penEnemy , this , DMT_CLOSERANGE , 10.0f , FLOAT3D (0 , 0 , 0) , vDirection );
|
|
||||||
#line 342 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT3D vSpeed ;
|
|
||||||
#line 343 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
GetHeadingDirection (AngleDeg (- 90.0f) , vSpeed );
|
|
||||||
#line 344 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
vSpeed = vSpeed * 5.0f;
|
|
||||||
#line 345 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
KickEntity (m_penEnemy , vSpeed );
|
|
||||||
#line 346 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 347 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 347 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CBoneman::
|
|
||||||
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBoneman_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBoneman::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 357 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
InitAsModel ();
|
|
||||||
#line 358 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_WALKING );
|
|
||||||
#line 359 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetCollisionFlags (ECF_MODEL );
|
|
||||||
#line 360 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetFlags (GetFlags () | ENF_ALIVE );
|
|
||||||
#line 361 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetHealth (125.0f);
|
|
||||||
#line 362 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fMaxHealth = 125.0f;
|
|
||||||
#line 363 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
en_fDensity = 2000.0f;
|
|
||||||
#line 366 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetModel (MODEL_BONEMAN );
|
|
||||||
#line 367 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
SetModelMainTexture (TEXTURE_BONEMAN );
|
|
||||||
#line 368 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
StandingAnim ();
|
|
||||||
#line 369 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_sptType = SPT_BONES ;
|
|
||||||
#line 371 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fWalkSpeed = FRnd () + 2.5f;
|
|
||||||
#line 372 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_aWalkRotateSpeed = FRnd () * 25.0f + 45.0f;
|
|
||||||
#line 373 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fAttackRunSpeed = FRnd () * 3.0f + 10.0f;
|
|
||||||
#line 374 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_aAttackRotateSpeed = FRnd () * 200 + 600.0f;
|
|
||||||
#line 375 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fCloseRunSpeed = FRnd () + 13.0f;
|
|
||||||
#line 376 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_aCloseRotateSpeed = FRnd () * 100 + 1000.0f;
|
|
||||||
#line 378 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fAttackDistance = 100.0f;
|
|
||||||
#line 379 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fCloseDistance = 30.0f;
|
|
||||||
#line 380 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fStopDistance = 2.0f;
|
|
||||||
#line 381 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fAttackFireTime = 3.0f;
|
|
||||||
#line 382 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fCloseFireTime = 2.0f;
|
|
||||||
#line 383 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fIgnoreRange = 200.0f;
|
|
||||||
#line 385 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fBlowUpAmount = 70.0f;
|
|
||||||
#line 386 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fBodyParts = 4;
|
|
||||||
#line 387 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fDamageWounded = 80.0f;
|
|
||||||
#line 388 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_iScore = 1000;
|
|
||||||
#line 389 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
if(m_fStepHeight == - 1){
|
|
||||||
#line 390 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_fStepHeight = 4.0f;
|
|
||||||
#line 391 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
}
|
|
||||||
#line 394 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
CEnemyBase :: SizeModel ();
|
|
||||||
#line 395 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_soFeet . Set3DParameters (80.0f , 5.0f , 1.0f , 1.0f);
|
|
||||||
#line 396 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
m_bRunSoundPlaying = FALSE ;
|
|
||||||
#line 399 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CEnemyBase_MainLoop, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,120 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_Boneman_INCLUDED
|
|
||||||
#define _EntitiesMP_Boneman_INCLUDED 1
|
|
||||||
#include <EntitiesMP/EnemyBase.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CBoneman_DLLClass;
|
|
||||||
class CBoneman : public CEnemyBase {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
BOOL m_bFistHit;
|
|
||||||
BOOL m_bTouchAnother;
|
|
||||||
CSoundObject m_soFeet;
|
|
||||||
BOOL m_bRunSoundPlaying;
|
|
||||||
|
|
||||||
#line 57 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
virtual CTString GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath);
|
|
||||||
|
|
||||||
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
virtual const CTFileName & GetComputerMessageName(void)const;
|
|
||||||
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void * GetEntityInfo(void);
|
|
||||||
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection);
|
|
||||||
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void LeaveStain(BOOL bGrow);
|
|
||||||
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
INDEX AnimForDamage(FLOAT fDamage);
|
|
||||||
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
INDEX AnimForDeath(void);
|
|
||||||
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
FLOAT WaitForDust(FLOAT3D & vStretch);
|
|
||||||
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void DeathNotify(void);
|
|
||||||
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void StandingAnim(void);
|
|
||||||
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void WalkingAnim(void);
|
|
||||||
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void RunningAnim(void);
|
|
||||||
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void RotatingAnim(void);
|
|
||||||
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void IdleSound(void);
|
|
||||||
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void SightSound(void);
|
|
||||||
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void WoundSound(void);
|
|
||||||
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void DeathSound(void);
|
|
||||||
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void ActivateRunningSound(void);
|
|
||||||
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void DeactivateRunningSound(void);
|
|
||||||
|
|
||||||
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
void BlowUp(void);
|
|
||||||
#define STATE_CBoneman_Fire 0x01310000
|
|
||||||
BOOL
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Fire(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310001_Fire_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310002_Fire_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310003_Fire_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310004_Fire_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310005_Fire_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310006_Fire_06(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBoneman_Hit 0x01310007
|
|
||||||
BOOL
|
|
||||||
#line 264 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Hit(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBoneman_JumpOnEnemy 0x01310008
|
|
||||||
BOOL
|
|
||||||
#line 280 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
JumpOnEnemy(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310009_JumpOnEnemy_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0131000a_JumpOnEnemy_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0131000b_JumpOnEnemy_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0131000c_JumpOnEnemy_04(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBoneman_HitWithBones 0x0131000d
|
|
||||||
BOOL
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
HitWithBones(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0131000e_HitWithBones_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0131000f_HitWithBones_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310010_HitWithBones_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310011_HitWithBones_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310012_HitWithBones_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310013_HitWithBones_06(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310014_HitWithBones_07(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01310015_HitWithBones_08(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CBoneman_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_Boneman_INCLUDED
|
|
|
@ -1,95 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CBoneman
|
|
||||||
|
|
||||||
CEntityProperty CBoneman_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000131<<8)+2, offsetof(CBoneman, m_bFistHit), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000131<<8)+3, offsetof(CBoneman, m_bTouchAnother), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x00000131<<8)+4, offsetof(CBoneman, m_soFeet), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000131<<8)+5, offsetof(CBoneman, m_bRunSoundPlaying), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CBoneman_propertiesct ARRAYCOUNT(CBoneman_properties)
|
|
||||||
|
|
||||||
CEntityComponent CBoneman_components[] = {
|
|
||||||
#define CLASS_BASE ((0x00000131<<8)+0)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\EnemyBase.ecl"),
|
|
||||||
#define MODEL_BONEMAN ((0x00000131<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BONEMAN, "EFNM" "Models\\Enemies\\Boneman\\Boneman.mdl"),
|
|
||||||
#define TEXTURE_BONEMAN ((0x00000131<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BONEMAN, "EFNM" "Models\\Enemies\\Boneman\\Boneman.tex"),
|
|
||||||
#define CLASS_PROJECTILE ((0x00000131<<8)+3)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_PROJECTILE, "EFNM" "Classes\\Projectile.ecl"),
|
|
||||||
#define MODEL_BONEMAN_BODY ((0x00000131<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BONEMAN_BODY, "EFNM" "Models\\Enemies\\Boneman\\Debris\\Body.mdl"),
|
|
||||||
#define MODEL_BONEMAN_HAND ((0x00000131<<8)+11)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BONEMAN_HAND, "EFNM" "Models\\Enemies\\Boneman\\Debris\\Hand.mdl"),
|
|
||||||
#define MODEL_BONEMAN_LEGS ((0x00000131<<8)+12)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BONEMAN_LEGS, "EFNM" "Models\\Enemies\\Boneman\\Debris\\Legs.mdl"),
|
|
||||||
#define SOUND_IDLE ((0x00000131<<8)+50)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_IDLE, "EFNM" "Models\\Enemies\\Boneman\\Sounds\\Idle.wav"),
|
|
||||||
#define SOUND_SIGHT ((0x00000131<<8)+51)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_SIGHT, "EFNM" "Models\\Enemies\\Boneman\\Sounds\\Sight.wav"),
|
|
||||||
#define SOUND_WOUND ((0x00000131<<8)+52)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_WOUND, "EFNM" "Models\\Enemies\\Boneman\\Sounds\\Wound.wav"),
|
|
||||||
#define SOUND_FIRE ((0x00000131<<8)+53)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_FIRE, "EFNM" "Models\\Enemies\\Boneman\\Sounds\\Fire.wav"),
|
|
||||||
#define SOUND_KICK ((0x00000131<<8)+54)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_KICK, "EFNM" "Models\\Enemies\\Boneman\\Sounds\\Kick.wav"),
|
|
||||||
#define SOUND_PUNCH ((0x00000131<<8)+55)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_PUNCH, "EFNM" "Models\\Enemies\\Boneman\\Sounds\\Punch.wav"),
|
|
||||||
#define SOUND_DEATH ((0x00000131<<8)+56)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_DEATH, "EFNM" "Models\\Enemies\\Boneman\\Sounds\\Death.wav"),
|
|
||||||
#define SOUND_RUN ((0x00000131<<8)+57)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_RUN, "EFNM" "Models\\Enemies\\Boneman\\Sounds\\Run.wav"),
|
|
||||||
};
|
|
||||||
#define CBoneman_componentsct ARRAYCOUNT(CBoneman_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CBoneman_handlers[] = {
|
|
||||||
{0x01310000, STATE_CEnemyBase_Fire, CEntity::pEventHandler(&CBoneman::
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Fire),DEBUGSTRING("CBoneman::Fire")},
|
|
||||||
{0x01310001, -1, CEntity::pEventHandler(&CBoneman::H0x01310001_Fire_01), DEBUGSTRING("CBoneman::H0x01310001_Fire_01")},
|
|
||||||
{0x01310002, -1, CEntity::pEventHandler(&CBoneman::H0x01310002_Fire_02), DEBUGSTRING("CBoneman::H0x01310002_Fire_02")},
|
|
||||||
{0x01310003, -1, CEntity::pEventHandler(&CBoneman::H0x01310003_Fire_03), DEBUGSTRING("CBoneman::H0x01310003_Fire_03")},
|
|
||||||
{0x01310004, -1, CEntity::pEventHandler(&CBoneman::H0x01310004_Fire_04), DEBUGSTRING("CBoneman::H0x01310004_Fire_04")},
|
|
||||||
{0x01310005, -1, CEntity::pEventHandler(&CBoneman::H0x01310005_Fire_05), DEBUGSTRING("CBoneman::H0x01310005_Fire_05")},
|
|
||||||
{0x01310006, -1, CEntity::pEventHandler(&CBoneman::H0x01310006_Fire_06), DEBUGSTRING("CBoneman::H0x01310006_Fire_06")},
|
|
||||||
{0x01310007, STATE_CEnemyBase_Hit, CEntity::pEventHandler(&CBoneman::
|
|
||||||
#line 264 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Hit),DEBUGSTRING("CBoneman::Hit")},
|
|
||||||
{0x01310008, -1, CEntity::pEventHandler(&CBoneman::
|
|
||||||
#line 280 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
JumpOnEnemy),DEBUGSTRING("CBoneman::JumpOnEnemy")},
|
|
||||||
{0x01310009, -1, CEntity::pEventHandler(&CBoneman::H0x01310009_JumpOnEnemy_01), DEBUGSTRING("CBoneman::H0x01310009_JumpOnEnemy_01")},
|
|
||||||
{0x0131000a, -1, CEntity::pEventHandler(&CBoneman::H0x0131000a_JumpOnEnemy_02), DEBUGSTRING("CBoneman::H0x0131000a_JumpOnEnemy_02")},
|
|
||||||
{0x0131000b, -1, CEntity::pEventHandler(&CBoneman::H0x0131000b_JumpOnEnemy_03), DEBUGSTRING("CBoneman::H0x0131000b_JumpOnEnemy_03")},
|
|
||||||
{0x0131000c, -1, CEntity::pEventHandler(&CBoneman::H0x0131000c_JumpOnEnemy_04), DEBUGSTRING("CBoneman::H0x0131000c_JumpOnEnemy_04")},
|
|
||||||
{0x0131000d, -1, CEntity::pEventHandler(&CBoneman::
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
HitWithBones),DEBUGSTRING("CBoneman::HitWithBones")},
|
|
||||||
{0x0131000e, -1, CEntity::pEventHandler(&CBoneman::H0x0131000e_HitWithBones_01), DEBUGSTRING("CBoneman::H0x0131000e_HitWithBones_01")},
|
|
||||||
{0x0131000f, -1, CEntity::pEventHandler(&CBoneman::H0x0131000f_HitWithBones_02), DEBUGSTRING("CBoneman::H0x0131000f_HitWithBones_02")},
|
|
||||||
{0x01310010, -1, CEntity::pEventHandler(&CBoneman::H0x01310010_HitWithBones_03), DEBUGSTRING("CBoneman::H0x01310010_HitWithBones_03")},
|
|
||||||
{0x01310011, -1, CEntity::pEventHandler(&CBoneman::H0x01310011_HitWithBones_04), DEBUGSTRING("CBoneman::H0x01310011_HitWithBones_04")},
|
|
||||||
{0x01310012, -1, CEntity::pEventHandler(&CBoneman::H0x01310012_HitWithBones_05), DEBUGSTRING("CBoneman::H0x01310012_HitWithBones_05")},
|
|
||||||
{0x01310013, -1, CEntity::pEventHandler(&CBoneman::H0x01310013_HitWithBones_06), DEBUGSTRING("CBoneman::H0x01310013_HitWithBones_06")},
|
|
||||||
{0x01310014, -1, CEntity::pEventHandler(&CBoneman::H0x01310014_HitWithBones_07), DEBUGSTRING("CBoneman::H0x01310014_HitWithBones_07")},
|
|
||||||
{0x01310015, -1, CEntity::pEventHandler(&CBoneman::H0x01310015_HitWithBones_08), DEBUGSTRING("CBoneman::H0x01310015_HitWithBones_08")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CBoneman::
|
|
||||||
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/Boneman.es"
|
|
||||||
Main),DEBUGSTRING("CBoneman::Main")},
|
|
||||||
};
|
|
||||||
#define CBoneman_handlersct ARRAYCOUNT(CBoneman_handlers)
|
|
||||||
|
|
||||||
CEntity *CBoneman_New(void) { return new CBoneman; };
|
|
||||||
void CBoneman_OnInitClass(void) {};
|
|
||||||
void CBoneman_OnEndClass(void) {};
|
|
||||||
void CBoneman_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CBoneman_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CBoneman_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CBoneman_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CBoneman_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CBoneman, CEnemyBase, "Boneman", "Thumbnails\\Boneman.tbn", 0x00000131);
|
|
||||||
DECLARE_CTFILENAME(_fnmCBoneman_tbn, "Thumbnails\\Boneman.tbn");
|
|
|
@ -1,71 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/Bouncer.h>
|
|
||||||
#include <EntitiesMP/Bouncer_tables.h>
|
|
||||||
#line 8 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
|
|
||||||
|
|
||||||
extern DECL_DLL void JumpFromBouncer(CEntity *penToBounce, CEntity *penBouncer)
|
|
||||||
{
|
|
||||||
CEntity *pen = penToBounce;
|
|
||||||
CBouncer *pbo = (CBouncer *)penBouncer;
|
|
||||||
// if it is a movable model and some time has passed from the last jump
|
|
||||||
if ( (pen->GetRenderType()==CEntity::RT_MODEL) &&
|
|
||||||
(pen->GetPhysicsFlags()&EPF_MOVABLE) ) {
|
|
||||||
CMovableEntity *pmen = (CMovableEntity *)pen;
|
|
||||||
if (pmen->en_penReference==NULL) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// give it speed
|
|
||||||
FLOAT3D vDir;
|
|
||||||
AnglesToDirectionVector(pbo->m_aDirection, vDir);
|
|
||||||
pmen->FakeJump(pmen->en_vIntendedTranslation, vDir, pbo->m_fSpeed,
|
|
||||||
-pbo->m_fParallelComponentMultiplier, pbo->m_fNormalComponentMultiplier, pbo->m_fMaxExitSpeed, pbo->m_tmControl);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void CBouncer::SetDefaultProperties(void) {
|
|
||||||
m_strName = "Bouncer";
|
|
||||||
m_strDescription = "";
|
|
||||||
m_fSpeed = 20.0f;
|
|
||||||
m_aDirection = ANGLE3D(0 , 90 , 0);
|
|
||||||
m_tmControl = 5.0f;
|
|
||||||
m_bEntrySpeed = TRUE ;
|
|
||||||
m_fMaxExitSpeed = 200.0f;
|
|
||||||
m_fNormalComponentMultiplier = 1.0f;
|
|
||||||
m_fParallelComponentMultiplier = 0.0f;
|
|
||||||
CRationalEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
BOOL CBouncer::
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBouncer_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CBouncer::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
InitAsBrush ();
|
|
||||||
#line 54 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
SetPhysicsFlags (EPF_BRUSH_FIXED | EPF_NOIMPACT );
|
|
||||||
#line 55 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
SetCollisionFlags (ECF_BRUSH );
|
|
||||||
#line 58 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
if(! m_bEntrySpeed )
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
{
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
m_fNormalComponentMultiplier = 0.0f;
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
m_bEntrySpeed = TRUE ;
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
}
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,26 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_Bouncer_INCLUDED
|
|
||||||
#define _EntitiesMP_Bouncer_INCLUDED 1
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CBouncer_DLLClass;
|
|
||||||
class CBouncer : public CRationalEntity {
|
|
||||||
public:
|
|
||||||
virtual const CTString &GetName(void) const { return m_strName; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
CTString m_strName;
|
|
||||||
CTString m_strDescription;
|
|
||||||
FLOAT m_fSpeed;
|
|
||||||
ANGLE3D m_aDirection;
|
|
||||||
FLOAT m_tmControl;
|
|
||||||
BOOL m_bEntrySpeed;
|
|
||||||
FLOAT m_fMaxExitSpeed;
|
|
||||||
FLOAT m_fNormalComponentMultiplier;
|
|
||||||
FLOAT m_fParallelComponentMultiplier;
|
|
||||||
#define STATE_CBouncer_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_Bouncer_INCLUDED
|
|
|
@ -1,42 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CBouncer
|
|
||||||
|
|
||||||
CEntityProperty CBouncer_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x00000069<<8)+1, offsetof(CBouncer, m_strName), "Name", 'N', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x00000069<<8)+2, offsetof(CBouncer, m_strDescription), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000069<<8)+4, offsetof(CBouncer, m_fSpeed), "Speed [m/s]", 'S', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ANGLE3D, NULL, (0x00000069<<8)+5, offsetof(CBouncer, m_aDirection), "Direction", 'D', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000069<<8)+6, offsetof(CBouncer, m_tmControl), "Control time", 'T', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000069<<8)+7, offsetof(CBouncer, m_bEntrySpeed), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000069<<8)+10, offsetof(CBouncer, m_fMaxExitSpeed), "Max exit speed", 'M', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000069<<8)+12, offsetof(CBouncer, m_fNormalComponentMultiplier), "Normal component multiplier", 'O', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000069<<8)+13, offsetof(CBouncer, m_fParallelComponentMultiplier), "Parallel component multiplier", 'P', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CBouncer_propertiesct ARRAYCOUNT(CBouncer_properties)
|
|
||||||
|
|
||||||
CEntityComponent CBouncer_components[] = {
|
|
||||||
CEntityComponent()
|
|
||||||
};
|
|
||||||
#define CBouncer_componentsct 0
|
|
||||||
|
|
||||||
|
|
||||||
CEventHandlerEntry CBouncer_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CBouncer::
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/Bouncer.es"
|
|
||||||
Main),DEBUGSTRING("CBouncer::Main")},
|
|
||||||
};
|
|
||||||
#define CBouncer_handlersct ARRAYCOUNT(CBouncer_handlers)
|
|
||||||
|
|
||||||
CEntity *CBouncer_New(void) { return new CBouncer; };
|
|
||||||
void CBouncer_OnInitClass(void) {};
|
|
||||||
void CBouncer_OnEndClass(void) {};
|
|
||||||
void CBouncer_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CBouncer_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CBouncer_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CBouncer_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CBouncer_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CBouncer, CRationalEntity, "Bouncer", "Thumbnails\\Bouncer.tbn", 0x00000069);
|
|
||||||
DECLARE_CTFILENAME(_fnmCBouncer_tbn, "Thumbnails\\Bouncer.tbn");
|
|
|
@ -1,414 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/Bullet.h>
|
|
||||||
#include <EntitiesMP/Bullet_tables.h>
|
|
||||||
CEntityEvent *EBulletInit::MakeCopy(void) { CEntityEvent *peeCopy = new EBulletInit(*this); return peeCopy;}
|
|
||||||
EBulletInit::EBulletInit() : CEntityEvent(EVENTCODE_EBulletInit) {;
|
|
||||||
ClearToDefault(penOwner);
|
|
||||||
ClearToDefault(fDamage);
|
|
||||||
};
|
|
||||||
#line 18 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
|
|
||||||
void CBullet_OnPrecache(CDLLEntityClass *pdec, INDEX iUser)
|
|
||||||
{
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_BULLETSTAINSTONE);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_BULLETSTAINSAND);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_BULLETSTAINREDSAND);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_BULLETSTAINWATER);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_BULLETSTAINSTONENOSOUND);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_BULLETSTAINSANDNOSOUND);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_BULLETSTAINREDSANDNOSOUND);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_BULLETSTAINWATERNOSOUND);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_BLOODSPILL);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_BULLETTRAIL);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CBullet::SetDefaultProperties(void) {
|
|
||||||
m_penOwner = NULL;
|
|
||||||
m_fDamage = 0.0f;
|
|
||||||
m_vTarget = FLOAT3D(0 , 0 , 0);
|
|
||||||
m_vTargetCopy = FLOAT3D(0 , 0 , 0);
|
|
||||||
m_vHitPoint = FLOAT3D(0 , 0 , 0);
|
|
||||||
m_iBullet = 0;
|
|
||||||
m_EdtDamage = DMT_BULLET ;
|
|
||||||
m_fBulletSize = 0.0f;
|
|
||||||
CEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 58 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CBullet::SetDamage(FLOAT fDamage) {
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_fDamage = fDamage ;
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CBullet::CalcTarget(FLOAT fRange) {
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
AnglesToDirectionVector (GetPlacement () . pl_OrientationAngle , m_vTarget );
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_vTarget *= fRange ;
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_vTarget += GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_vTargetCopy = m_vTarget ;
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CBullet::CalcTarget(CEntity * pen,FLOAT fRange) {
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vTarget ;
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
EntityInfo * peiTarget = (EntityInfo *) (pen -> GetEntityInfo ());
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
GetEntityInfoPosition (pen , peiTarget -> vTargetCenter , vTarget );
|
|
||||||
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_vTarget = (vTarget - GetPlacement () . pl_PositionVector ) . Normalize ();
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_vTarget *= fRange ;
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_vTarget += GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_vTargetCopy = m_vTarget ;
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CBullet::CalcJitterTarget(FLOAT fR) {
|
|
||||||
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vJitter ;
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT fZ = FRnd () * 2.0f - 1.0f;
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT fA = FRnd () * 360.0f;
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT fT = Sqrt (1 - (fZ * fZ ));
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vJitter (1) = fT * CosFast (fA );
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vJitter (2) = fT * SinFast (fA );
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vJitter (3) = fZ ;
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vJitter = vJitter * fR * FRnd ();
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_vTarget = m_vTargetCopy + vJitter ;
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CBullet::CalcJitterTargetFixed(FLOAT fX,FLOAT fY,FLOAT fJitter) {
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT fRndX = FRnd () * 2.0f - 1.0f;
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT fRndY = FRnd () * 2.0f - 1.0f;
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vX , vY ;
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
const FLOATmatrix3D & m = GetRotationMatrix ();
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vX (1) = m (1 , 1);vX (2) = m (2 , 1);vX (3) = m (3 , 1);
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vY (1) = m (1 , 2);vY (2) = m (2 , 2);vY (3) = m (3 , 2);
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_vTarget = m_vTargetCopy + (vX * (fX + fRndX * fJitter )) + (vY * (fY + fRndY * fJitter ));
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CBullet::LaunchBullet(BOOL bSound,BOOL bTrail,BOOL bHitFX)
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
CCastRay crRay (m_penOwner , GetPlacement () . pl_PositionVector , m_vTarget );
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
crRay . cr_bHitPortals = TRUE ;
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
crRay . cr_bHitTranslucentPortals = TRUE ;
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
crRay . cr_ttHitModels = CCastRay :: TT_COLLISIONBOX ;
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
crRay . cr_bPhysical = FALSE ;
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
crRay . cr_fTestR = m_fBulletSize ;
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vHitDirection ;
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
AnglesToDirectionVector (GetPlacement () . pl_OrientationAngle , vHitDirection );
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
INDEX ctCasts = 0;
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
while(ctCasts < 10)
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(ctCasts == 0)
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
GetWorld () -> CastRay (crRay );
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
else
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
GetWorld () -> ContinueCast (crRay );
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
ctCasts ++;
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(crRay . cr_penHit == NULL )
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
break ;
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
const FLOAT fDamageMul = GetSeriousDamageMultiplier (m_penOwner );
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
InflictDirectDamage (crRay . cr_penHit , m_penOwner , m_EdtDamage , m_fDamage * fDamageMul ,
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
crRay . cr_vHit , vHitDirection );
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_vHitPoint = crRay . cr_vHit ;
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(crRay . cr_penHit -> GetRenderType () == RT_BRUSH && crRay . cr_pbpoBrushPolygon != NULL )
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
CBrushPolygon * pbpo = crRay . cr_pbpoBrushPolygon ;
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vHitNormal = FLOAT3D (pbpo -> bpo_pbplPlane -> bpl_plAbsolute );
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
INDEX iSurfaceType = pbpo -> bpo_bppProperties . bpp_ubSurfaceType ;
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
BulletHitType bhtType = BHT_BRUSH_STONE ;
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
INDEX iContent = pbpo -> bpo_pbscSector -> GetContentType ();
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
CContentType & ct = GetWorld () -> wo_actContentTypes [ iContent ];
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
bhtType = (BulletHitType ) GetBulletHitTypeForSurface (iSurfaceType );
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(ct . ct_ulFlags & CTF_BREATHABLE_GILLS )
|
|
||||||
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(iSurfaceType == SURFACE_WATER )
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vHitNormal = - vHitNormal ;
|
|
||||||
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
bhtType = BHT_BRUSH_WATER ;
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
else
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
bhtType = BHT_BRUSH_UNDER_WATER ;
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
BOOL bPassable = pbpo -> bpo_ulFlags & (BPOF_PASSABLE | BPOF_SHOOTTHRU );
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(! bPassable || iSurfaceType == SURFACE_WATER ){
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
SpawnHitTypeEffect (this , bhtType , bSound , vHitNormal , crRay . cr_vHit , vHitDirection , FLOAT3D (0.0f , 0.0f , 0.0f));
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(! bPassable ){
|
|
||||||
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
break ;
|
|
||||||
#line 198 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}else {
|
|
||||||
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(crRay . cr_penHit -> GetEntityInfo () != NULL ){
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(((EntityInfo *) crRay . cr_penHit -> GetEntityInfo ()) -> Eeibt == EIBT_FLESH )
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
CEntity * penOfFlesh = crRay . cr_penHit ;
|
|
||||||
#line 207 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vHitNormal = (GetPlacement () . pl_PositionVector - m_vTarget ) . Normalize ();
|
|
||||||
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vOldHitPos = crRay . cr_vHit ;
|
|
||||||
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vDistance ;
|
|
||||||
#line 212 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
GetWorld () -> ContinueCast (crRay );
|
|
||||||
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(crRay . cr_penHit != NULL && crRay . cr_pbpoBrushPolygon != NULL &&
|
|
||||||
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
crRay . cr_penHit -> GetRenderType () == RT_BRUSH )
|
|
||||||
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vDistance = crRay . cr_vHit - vOldHitPos ;
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vHitNormal = FLOAT3D (crRay . cr_pbpoBrushPolygon -> bpo_pbplPlane -> bpl_plAbsolute );
|
|
||||||
#line 218 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 219 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
else
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vDistance = FLOAT3D (0.0f , 0.0f , 0.0f);
|
|
||||||
#line 222 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vHitNormal = FLOAT3D (0 , 0 , 0);
|
|
||||||
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(IsOfClass (penOfFlesh , "Gizmo") ||
|
|
||||||
#line 226 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
IsOfClass (penOfFlesh , "Beast"))
|
|
||||||
#line 227 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 229 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
SpawnHitTypeEffect (this , BHT_ACID , bSound , vHitNormal , crRay . cr_vHit , vHitDirection , vDistance );
|
|
||||||
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
else
|
|
||||||
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 234 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
SpawnHitTypeEffect (this , BHT_FLESH , bSound , vHitNormal , crRay . cr_vHit , vHitDirection , vDistance );
|
|
||||||
#line 235 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
break ;
|
|
||||||
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 241 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
break ;
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 243 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(bTrail )
|
|
||||||
#line 246 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 247 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
SpawnTrail ();
|
|
||||||
#line 248 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CBullet::DestroyBullet(void) {
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 254 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CBullet::SpawnTrail(void)
|
|
||||||
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
{
|
|
||||||
#line 265 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
const FLOAT3D & v0 = GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
const FLOAT3D & v1 = m_vHitPoint ;
|
|
||||||
#line 268 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vD = v1 - v0 ;
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT fD = vD . Length ();
|
|
||||||
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(fD < 1.0f){
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
return ;
|
|
||||||
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 277 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT fLen = Min (20.0f , fD );
|
|
||||||
#line 279 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vPos ;
|
|
||||||
#line 280 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
if(fLen < fD ){
|
|
||||||
#line 281 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vPos = Lerp (v0 , v1 , FRnd () * (fD - fLen ) / fD );
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}else {
|
|
||||||
#line 283 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vPos = v0 ;
|
|
||||||
#line 284 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
#line 286 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
ESpawnEffect ese ;
|
|
||||||
#line 287 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
UBYTE ubRndH = UBYTE (8 + FRnd () * 32);
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
UBYTE ubRndS = UBYTE (8 + FRnd () * 32);
|
|
||||||
#line 289 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
UBYTE ubRndV = UBYTE (224 + FRnd () * 32);
|
|
||||||
#line 290 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
UBYTE ubRndA = UBYTE (32 + FRnd () * 128);
|
|
||||||
#line 291 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
ese . colMuliplier = HSVToColor (ubRndH , ubRndS , ubRndV ) | ubRndA ;
|
|
||||||
#line 292 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
ese . betType = BET_BULLETTRAIL ;
|
|
||||||
#line 293 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
ese . vNormal = vD / fD ;
|
|
||||||
#line 294 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
ese . vStretch = FLOAT3D (0.1f , fLen , 1.0f);
|
|
||||||
#line 297 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
FLOAT3D vBulletIncommingDirection ;
|
|
||||||
#line 298 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
vBulletIncommingDirection = (m_vTarget - GetPlacement () . pl_PositionVector ) . Normalize ();
|
|
||||||
#line 299 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
CPlacement3D plHit = CPlacement3D (vPos - vBulletIncommingDirection * 0.1f , GetPlacement () . pl_OrientationAngle );
|
|
||||||
#line 300 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
CEntityPointer penHit = CreateEntity (plHit , CLASS_BASIC_EFFECT );
|
|
||||||
#line 301 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
penHit -> Initialize (ese );
|
|
||||||
#line 302 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
}
|
|
||||||
BOOL CBullet::
|
|
||||||
#line 306 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CBullet_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EBulletInit, "CBullet::Main expects 'EBulletInit' as input!"); const EBulletInit &eInit = (const EBulletInit &)__eeInput;
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
ASSERT (eInit . penOwner != NULL );
|
|
||||||
#line 310 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_penOwner = eInit . penOwner ;
|
|
||||||
#line 311 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_fDamage = eInit . fDamage ;
|
|
||||||
#line 313 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
InitAsVoid ();
|
|
||||||
#line 314 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 315 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 318 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
m_iBullet = 0;
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,59 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_Bullet_INCLUDED
|
|
||||||
#define _EntitiesMP_Bullet_INCLUDED 1
|
|
||||||
#include <EntitiesMP/BasicEffects.h>
|
|
||||||
#include <Engine/Classes/MovableEntity.h>
|
|
||||||
#define EVENTCODE_EBulletInit 0x01f60000
|
|
||||||
class DECL_DLL EBulletInit : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EBulletInit();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
CEntityPointer penOwner;
|
|
||||||
FLOAT fDamage;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EBulletInit &e) { e = EBulletInit(); } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CBullet_DLLClass;
|
|
||||||
class DECL_DLL CBullet : public CEntity {
|
|
||||||
public:
|
|
||||||
virtual void SetDefaultProperties(void);
|
|
||||||
CEntityPointer m_penOwner;
|
|
||||||
FLOAT m_fDamage;
|
|
||||||
FLOAT3D m_vTarget;
|
|
||||||
FLOAT3D m_vTargetCopy;
|
|
||||||
FLOAT3D m_vHitPoint;
|
|
||||||
INDEX m_iBullet;
|
|
||||||
enum DamageType m_EdtDamage;
|
|
||||||
FLOAT m_fBulletSize;
|
|
||||||
|
|
||||||
#line 58 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void SetDamage(FLOAT fDamage);
|
|
||||||
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CalcTarget(FLOAT fRange);
|
|
||||||
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CalcTarget(CEntity * pen,FLOAT fRange);
|
|
||||||
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CalcJitterTarget(FLOAT fR);
|
|
||||||
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void CalcJitterTargetFixed(FLOAT fX,FLOAT fY,FLOAT fJitter);
|
|
||||||
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void LaunchBullet(BOOL bSound,BOOL bTrail,BOOL bHitFX);
|
|
||||||
|
|
||||||
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void DestroyBullet(void);
|
|
||||||
|
|
||||||
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
void SpawnTrail(void);
|
|
||||||
#define STATE_CBullet_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 306 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_Bullet_INCLUDED
|
|
|
@ -1,41 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CBullet
|
|
||||||
|
|
||||||
CEntityProperty CBullet_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000001f6<<8)+1, offsetof(CBullet, m_penOwner), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000001f6<<8)+2, offsetof(CBullet, m_fDamage), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000001f6<<8)+3, offsetof(CBullet, m_vTarget), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000001f6<<8)+4, offsetof(CBullet, m_vTargetCopy), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000001f6<<8)+6, offsetof(CBullet, m_vHitPoint), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x000001f6<<8)+8, offsetof(CBullet, m_iBullet), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &DamageType_enum, (0x000001f6<<8)+9, offsetof(CBullet, m_EdtDamage), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000001f6<<8)+10, offsetof(CBullet, m_fBulletSize), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CBullet_propertiesct ARRAYCOUNT(CBullet_properties)
|
|
||||||
|
|
||||||
CEntityComponent CBullet_components[] = {
|
|
||||||
#define CLASS_BASIC_EFFECT ((0x000001f6<<8)+1)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASIC_EFFECT, "EFNM" "Classes\\BasicEffect.ecl"),
|
|
||||||
};
|
|
||||||
#define CBullet_componentsct ARRAYCOUNT(CBullet_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CBullet_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CBullet::
|
|
||||||
#line 306 "D:/SE1_GPL/Sources/EntitiesMP/Bullet.es"
|
|
||||||
Main),DEBUGSTRING("CBullet::Main")},
|
|
||||||
};
|
|
||||||
#define CBullet_handlersct ARRAYCOUNT(CBullet_handlers)
|
|
||||||
|
|
||||||
CEntity *CBullet_New(void) { return new CBullet; };
|
|
||||||
void CBullet_OnInitClass(void) {};
|
|
||||||
void CBullet_OnEndClass(void) {};
|
|
||||||
void CBullet_OnPrecache(CDLLEntityClass *pdec, INDEX iUser);
|
|
||||||
void CBullet_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CBullet_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CBullet_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CBullet_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CBullet, CEntity, "Bullet", "", 0x000001f6);
|
|
||||||
DECLARE_CTFILENAME(_fnmCBullet_tbn, "");
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,129 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_Camera_INCLUDED
|
|
||||||
#define _EntitiesMP_Camera_INCLUDED 1
|
|
||||||
#include <EntitiesMP/Player.h>
|
|
||||||
#include <EntitiesMP/CameraMarker.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CCamera_DLLClass;
|
|
||||||
class CCamera : public CMovableModelEntity {
|
|
||||||
public:
|
|
||||||
virtual const CTString &GetName(void) const { return m_strName; };
|
|
||||||
virtual BOOL IsTargetable(void) const { return TRUE; };
|
|
||||||
virtual BOOL IsImportant(void) const { return TRUE; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
FLOAT m_tmTime;
|
|
||||||
FLOAT m_fFOV;
|
|
||||||
FLOAT m_fLastFOV;
|
|
||||||
CEntityPointer m_penTarget;
|
|
||||||
CTString m_strName;
|
|
||||||
CEntityPointer m_penOnBreak;
|
|
||||||
BOOL m_bWideScreen;
|
|
||||||
FLOAT m_tmAtMarker;
|
|
||||||
FLOAT m_tmDelta;
|
|
||||||
FLOAT3D m_vPNp0;
|
|
||||||
FLOAT3D m_vPNp1;
|
|
||||||
FLOAT3D m_vTNp0;
|
|
||||||
FLOAT3D m_vTNp1;
|
|
||||||
FLOAT m_fFOVp0;
|
|
||||||
FLOAT m_fFOVp1;
|
|
||||||
FLOAT m_fTFOVp0;
|
|
||||||
FLOAT m_fTFOVp1;
|
|
||||||
FLOATquat3D m_qPNp0;
|
|
||||||
FLOATquat3D m_qPNp1;
|
|
||||||
FLOATquat3D m_qANp0;
|
|
||||||
FLOATquat3D m_qANp1;
|
|
||||||
CEntityPointer m_penLast;
|
|
||||||
CEntityPointer m_penPlayer;
|
|
||||||
CTString m_strDescription;
|
|
||||||
BOOL m_bStopMoving;
|
|
||||||
COLOR m_colFade0;
|
|
||||||
COLOR m_colFade1;
|
|
||||||
BOOL m_bMoving;
|
|
||||||
CEntityPointer m_penViewTarget0;
|
|
||||||
CEntityPointer m_penViewTarget1;
|
|
||||||
FLOAT3D m_vPosRatio0;
|
|
||||||
FLOAT3D m_vPosRatio1;
|
|
||||||
FLOAT m_fMyTimer;
|
|
||||||
FLOAT m_fMyTimerLast;
|
|
||||||
BOOL m_bIgnoreTimeStretch;
|
|
||||||
BOOL m_bAutoRotation;
|
|
||||||
FLOAT m_fStartHdg;
|
|
||||||
FLOAT m_fRotateSpeed;
|
|
||||||
FLOAT m_fRotateTime;
|
|
||||||
FLOAT m_fRadX;
|
|
||||||
FLOAT m_fHeight;
|
|
||||||
FLOAT m_fRadZ;
|
|
||||||
CEntityPointer m_penAutoCameraEndTarget;
|
|
||||||
enum EventEType m_eetAutoCameraEndEvent;
|
|
||||||
FLOAT3D m_vRelTargetOffset;
|
|
||||||
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
void RenderParticles(void);
|
|
||||||
|
|
||||||
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
BOOL MovesByTargetedRoute(CTString & strTargetProperty)const;
|
|
||||||
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
BOOL DropsMarker(CTFileName & fnmMarkerClass,CTString & strTargetProperty)const;
|
|
||||||
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
const CTString & GetDescription(void)const;
|
|
||||||
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
void GetAutoRotatePlacement(FLOAT tmCurrent,FLOAT3D & vPos,FLOATmatrix3D & mRot,
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
CPlacement3D & plNew,FLOAT3D vTarget)const;
|
|
||||||
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
CPlacement3D GetLerpedPlacement(void)const;
|
|
||||||
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
void CalcTargetedRotation(const FLOAT3D & vMyPos,CEntity * penViewTarget,
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
FLOAT3D vPosRatio,FLOATmatrix3D & mRotTarget,BOOL bLerping)const;
|
|
||||||
|
|
||||||
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
void PreMoving();
|
|
||||||
|
|
||||||
#line 198 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
void DoMoving();
|
|
||||||
|
|
||||||
#line 445 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
void PostMoving();
|
|
||||||
#define STATE_CCamera_PlayStaticCamera 0x00dc0000
|
|
||||||
BOOL
|
|
||||||
#line 463 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
PlayStaticCamera(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc0001_PlayStaticCamera_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc0002_PlayStaticCamera_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCamera_PlayAutoRotatingCamera 0x00dc0003
|
|
||||||
BOOL
|
|
||||||
#line 477 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
PlayAutoRotatingCamera(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc0004_PlayAutoRotatingCamera_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc0005_PlayAutoRotatingCamera_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCamera_PlayMovingCamera 0x00dc0006
|
|
||||||
BOOL
|
|
||||||
#line 505 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
PlayMovingCamera(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc0007_PlayMovingCamera_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc0008_PlayMovingCamera_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCamera_PlayCamera 0x00dc0009
|
|
||||||
BOOL
|
|
||||||
#line 587 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
PlayCamera(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCamera_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 610 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc000a_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc000b_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc000c_Main_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc000d_Main_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc000e_Main_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc000f_Main_06(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00dc0010_Main_07(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_Camera_INCLUDED
|
|
|
@ -1,87 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/CameraMarker.h>
|
|
||||||
#include <EntitiesMP/CameraMarker_tables.h>
|
|
||||||
void CCameraMarker::SetDefaultProperties(void) {
|
|
||||||
m_fDeltaTime = 5.0f;
|
|
||||||
m_fBias = 0.0f;
|
|
||||||
m_fTension = 0.0f;
|
|
||||||
m_fContinuity = 0.0f;
|
|
||||||
m_bStopMoving = FALSE ;
|
|
||||||
m_fFOV = 90.0f;
|
|
||||||
m_bSkipToNext = FALSE ;
|
|
||||||
m_colFade = 0;
|
|
||||||
m_penTrigger = NULL;
|
|
||||||
m_penViewTarget = NULL;
|
|
||||||
m_vPosRatio = FLOAT3D(0 , 0 , 0);
|
|
||||||
m_fRatioX = 0.5f;
|
|
||||||
m_fRatioY = 0.5f;
|
|
||||||
m_fRatioZ = 0.5f;
|
|
||||||
CMarker::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
BOOL CCameraMarker::DropsMarker(CTFileName & fnmMarkerClass,CTString & strTargetProperty)const
|
|
||||||
#line 44 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
{
|
|
||||||
#line 45 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
fnmMarkerClass = CTFILENAME ("Classes\\CameraMarker.ecl");
|
|
||||||
#line 46 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
strTargetProperty = "Target";
|
|
||||||
#line 47 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 48 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
SLONG CCameraMarker::GetUsedMemory(void)
|
|
||||||
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
{
|
|
||||||
#line 54 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
return (sizeof (CCameraMarker ) - sizeof (CMarker ) + CMarker :: GetUsedMemory ());
|
|
||||||
#line 55 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
}
|
|
||||||
BOOL CCameraMarker::
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCameraMarker_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCameraMarker::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
m_fDeltaTime = ClampDn (m_fDeltaTime , 0.001f);
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
m_fBias = Clamp (m_fBias , - 1.0f , + 1.0f);
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
m_fTension = Clamp (m_fTension , - 1.0f , + 1.0f);
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
m_fContinuity = Clamp (m_fContinuity , - 1.0f , + 1.0f);
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
m_vPosRatio = FLOAT3D (m_fRatioX , m_fRatioY , m_fRatioZ );
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
SetModel (MODEL_MARKER );
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
SetModelMainTexture (TEXTURE_MARKER );
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
if(m_penTarget != NULL && ! IsOfClass (m_penTarget , "Camera Marker")){
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
WarningMessage ("Entity '%s' is not of Camera Marker class!" , m_penTarget );
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
m_penTarget = NULL ;
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
}
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,37 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_CameraMarker_INCLUDED
|
|
||||||
#define _EntitiesMP_CameraMarker_INCLUDED 1
|
|
||||||
#include <EntitiesMP/Marker.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CCameraMarker_DLLClass;
|
|
||||||
class CCameraMarker : public CMarker {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
FLOAT m_fDeltaTime;
|
|
||||||
FLOAT m_fBias;
|
|
||||||
FLOAT m_fTension;
|
|
||||||
FLOAT m_fContinuity;
|
|
||||||
BOOL m_bStopMoving;
|
|
||||||
FLOAT m_fFOV;
|
|
||||||
BOOL m_bSkipToNext;
|
|
||||||
COLOR m_colFade;
|
|
||||||
CEntityPointer m_penTrigger;
|
|
||||||
CEntityPointer m_penViewTarget;
|
|
||||||
FLOAT3D m_vPosRatio;
|
|
||||||
FLOAT m_fRatioX;
|
|
||||||
FLOAT m_fRatioY;
|
|
||||||
FLOAT m_fRatioZ;
|
|
||||||
|
|
||||||
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
BOOL DropsMarker(CTFileName & fnmMarkerClass,CTString & strTargetProperty)const;
|
|
||||||
|
|
||||||
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
SLONG GetUsedMemory(void);
|
|
||||||
#define STATE_CCameraMarker_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_CameraMarker_INCLUDED
|
|
|
@ -1,49 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CCameraMarker
|
|
||||||
|
|
||||||
CEntityProperty CCameraMarker_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e0<<8)+1, offsetof(CCameraMarker, m_fDeltaTime), "Delta time", 'D', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e0<<8)+2, offsetof(CCameraMarker, m_fBias), "Bias", 'B', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e0<<8)+3, offsetof(CCameraMarker, m_fTension), "Tension", 'E', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e0<<8)+4, offsetof(CCameraMarker, m_fContinuity), "Continuity", 'C', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000e0<<8)+5, offsetof(CCameraMarker, m_bStopMoving), "Stop moving", 'O', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e0<<8)+6, offsetof(CCameraMarker, m_fFOV), "FOV", 'F', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000e0<<8)+7, offsetof(CCameraMarker, m_bSkipToNext), "Skip to next", 'S', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x000000e0<<8)+8, offsetof(CCameraMarker, m_colFade), "Fade Color", 'C', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e0<<8)+9, offsetof(CCameraMarker, m_penTrigger), "Trigger", 'G', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e0<<8)+10, offsetof(CCameraMarker, m_penViewTarget), "View Target", 'V', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000000e0<<8)+11, offsetof(CCameraMarker, m_vPosRatio), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e0<<8)+12, offsetof(CCameraMarker, m_fRatioX), "View pos ratio X", 'X', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e0<<8)+13, offsetof(CCameraMarker, m_fRatioY), "View pos ratio Y", 'Y', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e0<<8)+14, offsetof(CCameraMarker, m_fRatioZ), "View pos ratio Z", 'Z', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CCameraMarker_propertiesct ARRAYCOUNT(CCameraMarker_properties)
|
|
||||||
|
|
||||||
CEntityComponent CCameraMarker_components[] = {
|
|
||||||
#define MODEL_MARKER ((0x000000e0<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_MARKER, "EFNM" "Models\\Editor\\CameraMarker.mdl"),
|
|
||||||
#define TEXTURE_MARKER ((0x000000e0<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_MARKER, "EFNM" "Models\\Editor\\CameraMarker.tex"),
|
|
||||||
};
|
|
||||||
#define CCameraMarker_componentsct ARRAYCOUNT(CCameraMarker_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CCameraMarker_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CCameraMarker::
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/CameraMarker.es"
|
|
||||||
Main),DEBUGSTRING("CCameraMarker::Main")},
|
|
||||||
};
|
|
||||||
#define CCameraMarker_handlersct ARRAYCOUNT(CCameraMarker_handlers)
|
|
||||||
|
|
||||||
CEntity *CCameraMarker_New(void) { return new CCameraMarker; };
|
|
||||||
void CCameraMarker_OnInitClass(void) {};
|
|
||||||
void CCameraMarker_OnEndClass(void) {};
|
|
||||||
void CCameraMarker_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CCameraMarker_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CCameraMarker_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CCameraMarker_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CCameraMarker_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CCameraMarker, CMarker, "Camera Marker", "Thumbnails\\CameraMarker.tbn", 0x000000e0);
|
|
||||||
DECLARE_CTFILENAME(_fnmCCameraMarker_tbn, "Thumbnails\\CameraMarker.tbn");
|
|
|
@ -1,105 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CCamera
|
|
||||||
|
|
||||||
CEntityProperty CCamera_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+1, offsetof(CCamera, m_tmTime), "Time", 'E', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+2, offsetof(CCamera, m_fFOV), "FOV", 'F', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+5, offsetof(CCamera, m_fLastFOV), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000dc<<8)+3, offsetof(CCamera, m_penTarget), "Target", 'T', C_lBLUE | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000dc<<8)+4, offsetof(CCamera, m_strName), "Name", 'N', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000dc<<8)+6, offsetof(CCamera, m_penOnBreak), "OnBreak", 'B', C_lRED | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000dc<<8)+7, offsetof(CCamera, m_bWideScreen), "WideScreen", 'W', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+10, offsetof(CCamera, m_tmAtMarker), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+11, offsetof(CCamera, m_tmDelta), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000000dc<<8)+13, offsetof(CCamera, m_vPNp0), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000000dc<<8)+14, offsetof(CCamera, m_vPNp1), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000000dc<<8)+15, offsetof(CCamera, m_vTNp0), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000000dc<<8)+16, offsetof(CCamera, m_vTNp1), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+17, offsetof(CCamera, m_fFOVp0), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+18, offsetof(CCamera, m_fFOVp1), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+19, offsetof(CCamera, m_fTFOVp0), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+20, offsetof(CCamera, m_fTFOVp1), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATQUAT3D, NULL, (0x000000dc<<8)+31, offsetof(CCamera, m_qPNp0), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATQUAT3D, NULL, (0x000000dc<<8)+32, offsetof(CCamera, m_qPNp1), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATQUAT3D, NULL, (0x000000dc<<8)+33, offsetof(CCamera, m_qANp0), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOATQUAT3D, NULL, (0x000000dc<<8)+34, offsetof(CCamera, m_qANp1), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000dc<<8)+40, offsetof(CCamera, m_penLast), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000dc<<8)+41, offsetof(CCamera, m_penPlayer), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000dc<<8)+42, offsetof(CCamera, m_strDescription), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000dc<<8)+43, offsetof(CCamera, m_bStopMoving), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x000000dc<<8)+50, offsetof(CCamera, m_colFade0), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_COLOR, NULL, (0x000000dc<<8)+51, offsetof(CCamera, m_colFade1), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000dc<<8)+52, offsetof(CCamera, m_bMoving), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000dc<<8)+53, offsetof(CCamera, m_penViewTarget0), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000dc<<8)+54, offsetof(CCamera, m_penViewTarget1), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000000dc<<8)+55, offsetof(CCamera, m_vPosRatio0), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000000dc<<8)+56, offsetof(CCamera, m_vPosRatio1), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+60, offsetof(CCamera, m_fMyTimer), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+61, offsetof(CCamera, m_fMyTimerLast), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000dc<<8)+62, offsetof(CCamera, m_bIgnoreTimeStretch), "Ignore time stretch", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000dc<<8)+63, offsetof(CCamera, m_bAutoRotation), "Auto rotate (AR)", 'A', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+64, offsetof(CCamera, m_fStartHdg), "AR start heading", 'D', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+65, offsetof(CCamera, m_fRotateSpeed), "AR Rotate speed", 'S', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+66, offsetof(CCamera, m_fRotateTime), "AR Rotate time", 'I', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+67, offsetof(CCamera, m_fRadX), "AR Radius X", 'X', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+68, offsetof(CCamera, m_fHeight), "AR Height (controlls pitch)", 'H', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000dc<<8)+69, offsetof(CCamera, m_fRadZ), "AR Radius Z", 'Z', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000dc<<8)+70, offsetof(CCamera, m_penAutoCameraEndTarget), "Auto camera end target", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &EventEType_enum, (0x000000dc<<8)+71, offsetof(CCamera, m_eetAutoCameraEndEvent), "Auto camera end event", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x000000dc<<8)+72, offsetof(CCamera, m_vRelTargetOffset), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CCamera_propertiesct ARRAYCOUNT(CCamera_properties)
|
|
||||||
|
|
||||||
CEntityComponent CCamera_components[] = {
|
|
||||||
#define MODEL_CAMERA ((0x000000dc<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CAMERA, "EFNM" "Models\\Editor\\Camera.mdl"),
|
|
||||||
#define TEXTURE_CAMERA ((0x000000dc<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_CAMERA, "EFNM" "Models\\Editor\\Camera.tex"),
|
|
||||||
};
|
|
||||||
#define CCamera_componentsct ARRAYCOUNT(CCamera_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CCamera_handlers[] = {
|
|
||||||
{0x00dc0000, -1, CEntity::pEventHandler(&CCamera::
|
|
||||||
#line 463 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
PlayStaticCamera),DEBUGSTRING("CCamera::PlayStaticCamera")},
|
|
||||||
{0x00dc0001, -1, CEntity::pEventHandler(&CCamera::H0x00dc0001_PlayStaticCamera_01), DEBUGSTRING("CCamera::H0x00dc0001_PlayStaticCamera_01")},
|
|
||||||
{0x00dc0002, -1, CEntity::pEventHandler(&CCamera::H0x00dc0002_PlayStaticCamera_02), DEBUGSTRING("CCamera::H0x00dc0002_PlayStaticCamera_02")},
|
|
||||||
{0x00dc0003, -1, CEntity::pEventHandler(&CCamera::
|
|
||||||
#line 477 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
PlayAutoRotatingCamera),DEBUGSTRING("CCamera::PlayAutoRotatingCamera")},
|
|
||||||
{0x00dc0004, -1, CEntity::pEventHandler(&CCamera::H0x00dc0004_PlayAutoRotatingCamera_01), DEBUGSTRING("CCamera::H0x00dc0004_PlayAutoRotatingCamera_01")},
|
|
||||||
{0x00dc0005, -1, CEntity::pEventHandler(&CCamera::H0x00dc0005_PlayAutoRotatingCamera_02), DEBUGSTRING("CCamera::H0x00dc0005_PlayAutoRotatingCamera_02")},
|
|
||||||
{0x00dc0006, -1, CEntity::pEventHandler(&CCamera::
|
|
||||||
#line 505 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
PlayMovingCamera),DEBUGSTRING("CCamera::PlayMovingCamera")},
|
|
||||||
{0x00dc0007, -1, CEntity::pEventHandler(&CCamera::H0x00dc0007_PlayMovingCamera_01), DEBUGSTRING("CCamera::H0x00dc0007_PlayMovingCamera_01")},
|
|
||||||
{0x00dc0008, -1, CEntity::pEventHandler(&CCamera::H0x00dc0008_PlayMovingCamera_02), DEBUGSTRING("CCamera::H0x00dc0008_PlayMovingCamera_02")},
|
|
||||||
{0x00dc0009, -1, CEntity::pEventHandler(&CCamera::
|
|
||||||
#line 587 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
PlayCamera),DEBUGSTRING("CCamera::PlayCamera")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CCamera::
|
|
||||||
#line 610 "D:/SE1_GPL/Sources/EntitiesMP/Camera.es"
|
|
||||||
Main),DEBUGSTRING("CCamera::Main")},
|
|
||||||
{0x00dc000a, -1, CEntity::pEventHandler(&CCamera::H0x00dc000a_Main_01), DEBUGSTRING("CCamera::H0x00dc000a_Main_01")},
|
|
||||||
{0x00dc000b, -1, CEntity::pEventHandler(&CCamera::H0x00dc000b_Main_02), DEBUGSTRING("CCamera::H0x00dc000b_Main_02")},
|
|
||||||
{0x00dc000c, -1, CEntity::pEventHandler(&CCamera::H0x00dc000c_Main_03), DEBUGSTRING("CCamera::H0x00dc000c_Main_03")},
|
|
||||||
{0x00dc000d, -1, CEntity::pEventHandler(&CCamera::H0x00dc000d_Main_04), DEBUGSTRING("CCamera::H0x00dc000d_Main_04")},
|
|
||||||
{0x00dc000e, -1, CEntity::pEventHandler(&CCamera::H0x00dc000e_Main_05), DEBUGSTRING("CCamera::H0x00dc000e_Main_05")},
|
|
||||||
{0x00dc000f, -1, CEntity::pEventHandler(&CCamera::H0x00dc000f_Main_06), DEBUGSTRING("CCamera::H0x00dc000f_Main_06")},
|
|
||||||
{0x00dc0010, -1, CEntity::pEventHandler(&CCamera::H0x00dc0010_Main_07), DEBUGSTRING("CCamera::H0x00dc0010_Main_07")},
|
|
||||||
};
|
|
||||||
#define CCamera_handlersct ARRAYCOUNT(CCamera_handlers)
|
|
||||||
|
|
||||||
CEntity *CCamera_New(void) { return new CCamera; };
|
|
||||||
void CCamera_OnInitClass(void) {};
|
|
||||||
void CCamera_OnEndClass(void) {};
|
|
||||||
void CCamera_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CCamera_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CCamera_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CCamera_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CCamera_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CCamera, CMovableModelEntity, "Camera", "Thumbnails\\Camera.tbn", 0x000000dc);
|
|
||||||
DECLARE_CTFILENAME(_fnmCCamera_tbn, "Thumbnails\\Camera.tbn");
|
|
|
@ -1,911 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "Models/Weapons/Cannon/Projectile/Cannonball.h"
|
|
||||||
#include "EntitiesMP/MovingBrush.h"
|
|
||||||
#include "EntitiesMP/DestroyableArchitecture.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/CannonBall.h>
|
|
||||||
#include <EntitiesMP/CannonBall_tables.h>
|
|
||||||
CEntityEvent *ELaunchCannonBall::MakeCopy(void) { CEntityEvent *peeCopy = new ELaunchCannonBall(*this); return peeCopy;}
|
|
||||||
ELaunchCannonBall::ELaunchCannonBall() : CEntityEvent(EVENTCODE_ELaunchCannonBall) {;
|
|
||||||
ClearToDefault(penLauncher);
|
|
||||||
ClearToDefault(cbtType);
|
|
||||||
ClearToDefault(fLaunchPower);
|
|
||||||
ClearToDefault(fSize);
|
|
||||||
};
|
|
||||||
CEntityEvent *EForceExplode::MakeCopy(void) { CEntityEvent *peeCopy = new EForceExplode(*this); return peeCopy;}
|
|
||||||
EForceExplode::EForceExplode() : CEntityEvent(EVENTCODE_EForceExplode) {;
|
|
||||||
};
|
|
||||||
#line 31 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
|
|
||||||
|
|
||||||
// projectile solid
|
|
||||||
#define ECF_CANNON_BALL ( \
|
|
||||||
((ECBI_MODEL|ECBI_BRUSH|ECBI_PROJECTILE_SOLID|ECBI_CORPSE|ECBI_MODEL_HOLDER|ECBI_MODEL_HOLDER)<<ECB_TEST) |\
|
|
||||||
((ECBI_PROJECTILE_SOLID)<<ECB_IS) |\
|
|
||||||
((ECBI_MODEL|ECBI_MODEL_HOLDER|ECBI_CORPSE)<<ECB_PASS) )
|
|
||||||
|
|
||||||
#define IRON_LIFE_TIME 10.0f
|
|
||||||
#define NUKE_LIFE_TIME 5.0f
|
|
||||||
|
|
||||||
//#define CANNONBALL_STRETCH 3.0f
|
|
||||||
|
|
||||||
// damages
|
|
||||||
#define IRON_DAMAGE_MIN 400.0f
|
|
||||||
#define IRON_DAMAGE_MAX 750.0f
|
|
||||||
#define IRON_RANGE_DAMAGE (25.0f/4) // because we have 4 explosions //50
|
|
||||||
#define IRON_RANGE_HOTSPOT 2.0f //2
|
|
||||||
#define IRON_RANGE_FALLOFF 16.0f //8
|
|
||||||
|
|
||||||
#define NUKE_DAMAGE_MIN 600.0f
|
|
||||||
#define NUKE_DAMAGE_MAX 800.0f
|
|
||||||
#define NUKE_RANGE_DAMAGE (1000.0f/13) // because we have 13 explosions
|
|
||||||
#define NUKE_RANGE_HOTSPOT 15.0f
|
|
||||||
#define NUKE_RANGE_FALLOFF 50.0f
|
|
||||||
#define SOUND_RANGE 250.0f
|
|
||||||
|
|
||||||
#define STRETCH_0 FLOAT3D(0.0f,0.0f,0.0f)
|
|
||||||
#define STRETCH_1 FLOAT3D(1.0f,1.0f,1.0f)
|
|
||||||
#define STRETCH_2 FLOAT3D(2.0f,2.0f,2.0f)
|
|
||||||
#define STRETCH_3 FLOAT3D(3.0f,3.0f,3.0f)
|
|
||||||
#define STRETCH_4 FLOAT3D(4.0f,4.0f,4.0f)
|
|
||||||
#define STRETCH_6 FLOAT3D(6.0f,6.0f,6.0f)
|
|
||||||
#define STRETCH_8 FLOAT3D(8.0f,8.0f,8.0f)
|
|
||||||
#define STRETCH_10 FLOAT3D(10.0f,10.0f,10.0f)
|
|
||||||
|
|
||||||
void CCannonBall_OnPrecache(CDLLEntityClass *pdec, INDEX iUser)
|
|
||||||
{
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_CANNON);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_CANNONEXPLOSIONSTAIN);
|
|
||||||
pdec->PrecacheClass(CLASS_BASIC_EFFECT, BET_CANNONSHOCKWAVE);
|
|
||||||
|
|
||||||
pdec->PrecacheModel(MODEL_BALL);
|
|
||||||
pdec->PrecacheTexture(TEXTURE_IRON_BALL);
|
|
||||||
pdec->PrecacheTexture(TEXTURE_NUKE_BALL);
|
|
||||||
pdec->PrecacheTexture(TEX_REFL_BWRIPLES01);
|
|
||||||
pdec->PrecacheTexture(TEX_SPEC_MEDIUM);
|
|
||||||
pdec->PrecacheSound(SOUND_BALL_BOUNCE);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void CCannonBall::SetDefaultProperties(void) {
|
|
||||||
m_penLauncher = NULL;
|
|
||||||
m_fLaunchPower = 0.0f;
|
|
||||||
m_fCannonBallSize = 0.0f;
|
|
||||||
m_fIgnoreTime = 0.0f;
|
|
||||||
m_fStartTime = 0.0f;
|
|
||||||
m_iNextChannel = 0;
|
|
||||||
m_bSelfExploded = FALSE ;
|
|
||||||
m_soBounce0.SetOwner(this);
|
|
||||||
m_soBounce0.Stop_internal();
|
|
||||||
m_soBounce1.SetOwner(this);
|
|
||||||
m_soBounce1.Stop_internal();
|
|
||||||
m_soBounce2.SetOwner(this);
|
|
||||||
m_soBounce2.Stop_internal();
|
|
||||||
m_soBounce3.SetOwner(this);
|
|
||||||
m_soBounce3.Stop_internal();
|
|
||||||
m_soBounce4.SetOwner(this);
|
|
||||||
m_soBounce4.Stop_internal();
|
|
||||||
m_cbtType = CBT_IRON ;
|
|
||||||
m_tmInvisibility = 0.0f;
|
|
||||||
m_tmExpandBox = 0.0f;
|
|
||||||
m_tmForceExplode = 0.0f;
|
|
||||||
CMovableModelEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void CCannonBall::PreMoving(void) {
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(m_tmExpandBox > 0){
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(_pTimer -> CurrentTick () > m_fStartTime + m_tmExpandBox ){
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ChangeCollisionBoxIndexWhenPossible (1);
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_tmExpandBox = 0;
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CMovableModelEntity :: PreMoving ();
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void CCannonBall::PostMoving(void)
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CMovableModelEntity :: PostMoving ();
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(en_vCurrentTranslationAbsolute . Length () < 1.0f ||
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
_pTimer -> CurrentTick () >= m_tmForceExplode ||
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
(GetCollisionBoxIndex () == 0 &&
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
(_pTimer -> CurrentTick () > m_fStartTime + m_tmExpandBox + 0.5f)))
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SendEvent (EForceExplode ());
|
|
||||||
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void CCannonBall::Read_t(CTStream * istr)
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CMovableModelEntity :: Read_t (istr );
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL CCannonBall::AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient)
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CModelObject * pmo = GetModelObject ();
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if((pmo != NULL ) && (_pTimer -> GetLerpedCurrentTick () < (m_fStartTime + m_tmInvisibility )))
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
pmo -> mo_colBlendColor = 0;
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
else
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
pmo -> mo_colBlendColor = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return CEntity :: AdjustShadingParameters (vLightDirection , colLight , colAmbient );
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void CCannonBall::RenderParticles(void) {
|
|
||||||
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(GetRenderType () != CEntity :: RT_MODEL ){
|
|
||||||
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return ;
|
|
||||||
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 212 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT fSpeedRatio = Min (en_vCurrentTranslationAbsolute . Length () / 140.0f , 1.0f);
|
|
||||||
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
INDEX ctFireParticles = INDEX ((Max (fSpeedRatio - 0.5f , 0.0f) * 2.0f) * 128);
|
|
||||||
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(_pTimer -> GetLerpedCurrentTick () - m_fStartTime > 0.075)
|
|
||||||
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Particles_BeastBigProjectileTrail (this , 2.0f , 1.0f , 0.75f , ctFireParticles );
|
|
||||||
#line 218 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 219 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void CCannonBall::Initialize(void) {
|
|
||||||
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
InitAsModel ();
|
|
||||||
#line 224 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_BOUNCING );
|
|
||||||
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetCollisionFlags (ECF_CANNON_BALL );
|
|
||||||
#line 226 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetModel (MODEL_BALL );
|
|
||||||
#line 227 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(m_cbtType == CBT_IRON )
|
|
||||||
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 229 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetModelMainTexture (TEXTURE_IRON_BALL );
|
|
||||||
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
else
|
|
||||||
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 233 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetModelMainTexture (TEXTURE_NUKE_BALL );
|
|
||||||
#line 234 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
GetModelObject () -> StretchModel (FLOAT3D (m_fCannonBallSize , m_fCannonBallSize , m_fCannonBallSize ));
|
|
||||||
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ModelChangeNotify ();
|
|
||||||
#line 240 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
GetModelObject () -> mo_toReflection . SetData (GetTextureDataForComponent (TEX_REFL_BWRIPLES01 ));
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
GetModelObject () -> mo_toSpecular . SetData (GetTextureDataForComponent (TEX_SPEC_MEDIUM ));
|
|
||||||
#line 244 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
LaunchAsFreeProjectile (FLOAT3D (0.0f , 0.0f , - m_fLaunchPower ) , (CMovableEntity *) (CEntity *) m_penLauncher );
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
en_fBounceDampNormal = 0.5f;
|
|
||||||
#line 246 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
en_fBounceDampParallel = 0.75f;
|
|
||||||
#line 247 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
en_fAcceleration = 0.0f;
|
|
||||||
#line 248 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
en_fDeceleration = 5.0f;
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
en_fCollisionSpeedLimit = 40.0f;
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
en_fCollisionDamageFactor = 10.0f;
|
|
||||||
#line 251 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetHealth (50000.0f);
|
|
||||||
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
GetModelObject () -> PlayAnim (CANNONBALL_ANIM_FIRESLOW , 0);
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT CCannonBall::CalculateDamageToInflict(void)
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 257 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT fMaxDamage = IRON_DAMAGE_MAX ;
|
|
||||||
#line 258 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(m_cbtType == CBT_NUKE )
|
|
||||||
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 260 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
fMaxDamage = IRON_DAMAGE_MAX ;
|
|
||||||
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 264 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT fSpeedRatio = en_vCurrentTranslationAbsolute . Length () / 140.0f;
|
|
||||||
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT fApplyDamage = Clamp (fSpeedRatio * fMaxDamage , 0.0f , fMaxDamage );
|
|
||||||
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return fApplyDamage ;
|
|
||||||
#line 268 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void CCannonBall::Explosion(FLOAT3D vCenter,
|
|
||||||
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
const FLOAT3D & vStretchExplosion,
|
|
||||||
#line 272 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
const FLOAT3D & vStretchShockwave,
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
const FLOAT3D & vStretchStain,
|
|
||||||
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL bHasExplosion,
|
|
||||||
#line 275 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL bHasShockWave,
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL bHasStain,
|
|
||||||
#line 277 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL bHasLight)
|
|
||||||
#line 278 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 279 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ESpawnEffect ese ;
|
|
||||||
#line 280 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT3D vOnPlane ;
|
|
||||||
#line 281 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOATplane3D vPlaneNormal ;
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT fDistanceToEdge ;
|
|
||||||
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(bHasExplosion )
|
|
||||||
#line 286 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 287 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . colMuliplier = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(bHasLight )
|
|
||||||
#line 289 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 290 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . betType = BET_CANNON ;
|
|
||||||
#line 291 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 292 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
else
|
|
||||||
#line 293 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 294 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . betType = BET_CANNON_NOLIGHT ;
|
|
||||||
#line 295 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 296 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . vStretch = vStretchExplosion ;
|
|
||||||
#line 297 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CPlacement3D plHandle = GetPlacement ();
|
|
||||||
#line 298 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
plHandle . pl_PositionVector += vCenter ;
|
|
||||||
#line 299 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SpawnEffect (plHandle , ese );
|
|
||||||
#line 301 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(IsDerivedFromClass (m_penLauncher , "Player")){
|
|
||||||
#line 302 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SpawnRangeSound (m_penLauncher , this , SNDT_PLAYER , 100.0f);
|
|
||||||
#line 303 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 304 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 306 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(GetNearestPolygon (vOnPlane , vPlaneNormal , fDistanceToEdge )){
|
|
||||||
#line 307 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if((vOnPlane - GetPlacement () . pl_PositionVector ) . Length () < 3.5f){
|
|
||||||
#line 308 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(bHasStain )
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 311 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . colMuliplier = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 312 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . betType = BET_CANNONEXPLOSIONSTAIN ;
|
|
||||||
#line 313 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . vNormal = FLOAT3D (vPlaneNormal );
|
|
||||||
#line 314 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . vStretch = vStretchShockwave ;
|
|
||||||
#line 315 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SpawnEffect (CPlacement3D (vOnPlane , ANGLE3D (0 , 0 , 0)) , ese );
|
|
||||||
#line 316 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 317 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(bHasShockWave )
|
|
||||||
#line 318 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 320 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . colMuliplier = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 321 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . betType = BET_CANNONSHOCKWAVE ;
|
|
||||||
#line 322 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . vNormal = FLOAT3D (vPlaneNormal );
|
|
||||||
#line 323 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ese . vStretch = vStretchShockwave ;
|
|
||||||
#line 324 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SpawnEffect (CPlacement3D (vOnPlane , ANGLE3D (0 , 0 , 0)) , ese );
|
|
||||||
#line 325 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 342 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 343 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 345 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
RangeDamage ();
|
|
||||||
#line 346 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL CCannonBall::BallTouchExplode(CEntityPointer penHit)
|
|
||||||
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 357 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT fApplyDamage = CalculateDamageToInflict ();
|
|
||||||
#line 360 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT fHealth = 100;
|
|
||||||
#line 361 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL bForceCannonballToExplode = FALSE ;
|
|
||||||
#line 363 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(penHit -> GetPhysicsFlags () & EPF_MOVABLE ){
|
|
||||||
#line 364 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
fHealth = ((CMovableEntity &) * penHit ) . GetHealth ();
|
|
||||||
#line 365 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(IsDerivedFromClass (penHit , "Enemy Base"))
|
|
||||||
#line 366 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 367 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
bForceCannonballToExplode = ((CEnemyBase &) * penHit ) . ForcesCannonballToExplode ();
|
|
||||||
#line 368 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 369 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}else {
|
|
||||||
#line 370 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(IsOfClass (penHit , "ModelHolder2") || IsOfClass (penHit , "ExotechLarvaBattery")){
|
|
||||||
#line 371 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
fHealth = ((CLiveEntity &) * penHit ) . GetHealth ();
|
|
||||||
#line 372 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}else {
|
|
||||||
#line 373 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 374 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 375 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 377 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(IsOfClass (penHit , "ModelHolder2"))
|
|
||||||
#line 378 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 379 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
bForceCannonballToExplode = TRUE ;
|
|
||||||
#line 380 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 382 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(IsOfClass (penHit , "Player")){
|
|
||||||
#line 383 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
fHealth += ((CPlayer &) * penHit ) . m_fArmor * 2.0f;
|
|
||||||
#line 384 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 386 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT3D vDirection = en_vCurrentTranslationAbsolute ;
|
|
||||||
#line 387 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
vDirection . Normalize ();
|
|
||||||
#line 389 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
const FLOAT fDamageMul = GetSeriousDamageMultiplier (m_penLauncher );
|
|
||||||
#line 390 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
InflictDirectDamage (penHit , m_penLauncher , DMT_CANNONBALL , fApplyDamage * fDamageMul ,
|
|
||||||
#line 391 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
GetPlacement () . pl_PositionVector , vDirection );
|
|
||||||
#line 392 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return (fApplyDamage <= fHealth || bForceCannonballToExplode );
|
|
||||||
#line 393 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 397 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void CCannonBall::RangeDamage(void)
|
|
||||||
#line 398 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 399 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
const FLOAT fDamageMul = GetSeriousDamageMultiplier (m_penLauncher );
|
|
||||||
#line 400 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(m_cbtType == CBT_IRON ){
|
|
||||||
#line 401 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
InflictRangeDamage (m_penLauncher , DMT_CANNONBALL_EXPLOSION , IRON_RANGE_DAMAGE * fDamageMul ,
|
|
||||||
#line 402 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
GetPlacement () . pl_PositionVector , IRON_RANGE_HOTSPOT , IRON_RANGE_FALLOFF );
|
|
||||||
#line 403 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}else {
|
|
||||||
#line 405 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
InflictRangeDamage (m_penLauncher , DMT_CANNONBALL_EXPLOSION , NUKE_RANGE_DAMAGE * fDamageMul ,
|
|
||||||
#line 406 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
GetPlacement () . pl_PositionVector , NUKE_RANGE_HOTSPOT , NUKE_RANGE_FALLOFF );
|
|
||||||
#line 407 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 408 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 412 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void CCannonBall::SpawnEffect(const CPlacement3D & plEffect,const ESpawnEffect & eSpawnEffect) {
|
|
||||||
#line 413 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CEntityPointer penEffect = CreateEntity (plEffect , CLASS_BASIC_EFFECT );
|
|
||||||
#line 414 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
penEffect -> Initialize (eSpawnEffect );
|
|
||||||
#line 415 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 422 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void CCannonBall::BounceSound(FLOAT fSpeed) {
|
|
||||||
#line 423 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT fVolume = Clamp (fSpeed / 6.0f , 0.0f , 1.0f);
|
|
||||||
#line 424 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(fVolume < 0.1f){
|
|
||||||
#line 425 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return ;
|
|
||||||
#line 426 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 427 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CSoundObject & so = (& m_soBounce0 ) [ m_iNextChannel ];
|
|
||||||
#line 428 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_iNextChannel = (m_iNextChannel + 1) % 5;
|
|
||||||
#line 429 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
so . Set3DParameters (70.0f , 10.0f , fVolume , 1.0f);
|
|
||||||
#line 430 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
PlaySound (so , SOUND_BALL_BOUNCE , SOF_3D );
|
|
||||||
#line 431 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
BOOL CCannonBall::
|
|
||||||
#line 439 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Bounce(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonBall_Bounce
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonBall::Bounce expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 441 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CEntity * penObstacle ;
|
|
||||||
#line 442 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(CheckForCollisionNow (0 , & penObstacle )){
|
|
||||||
#line 444 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Return(STATE_CURRENT,EEnd ());
|
|
||||||
#line 444 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 445 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 447 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT fWaitTime = IRON_LIFE_TIME ;
|
|
||||||
#line 449 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(m_cbtType == CBT_NUKE )
|
|
||||||
#line 450 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 451 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
fWaitTime = NUKE_LIFE_TIME ;
|
|
||||||
#line 452 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 454 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(fWaitTime );
|
|
||||||
Jump(STATE_CURRENT, 0x01fa0003, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa0003_Bounce_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0003
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
||||||
return TRUE;}ASSERT(FALSE);break;case(EVENTCODE_EPass):{const EPass&epass= (EPass&)__eeInput;
|
|
||||||
|
|
||||||
#line 457 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL bHit ;
|
|
||||||
#line 459 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
bHit = epass . penOther != m_penLauncher || _pTimer -> CurrentTick () > m_fIgnoreTime ;
|
|
||||||
#line 461 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
bHit &= ! IsOfClass (epass . penOther , "Twister");
|
|
||||||
#line 463 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(bHit )
|
|
||||||
#line 464 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 465 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(BallTouchExplode (epass . penOther )){UnsetTimer();Jump(STATE_CURRENT,0x01fa0004, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 466 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 467 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 468 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_ETouch):{const ETouch&etouch= (ETouch&)__eeInput;
|
|
||||||
|
|
||||||
#line 471 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(IsOfClass (etouch . penOther , "Cannon ball"))
|
|
||||||
#line 472 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 473 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x01fa0004, FALSE, EInternal());return TRUE;
|
|
||||||
#line 474 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 475 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(IsOfClass (etouch . penOther , "Moving Brush"))
|
|
||||||
#line 476 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 477 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CMovingBrush & br = (CMovingBrush &) * etouch . penOther ;
|
|
||||||
#line 478 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(br . m_fHealth > 0)
|
|
||||||
#line 479 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 480 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT3D vDirection = en_vCurrentTranslationAbsolute ;
|
|
||||||
#line 481 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
vDirection . Normalize ();
|
|
||||||
#line 482 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
InflictDirectDamage (etouch . penOther , m_penLauncher , DMT_CANNONBALL , CalculateDamageToInflict () ,
|
|
||||||
#line 483 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
GetPlacement () . pl_PositionVector , vDirection );
|
|
||||||
#line 484 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_bSelfExploded = FALSE ;
|
|
||||||
#line 485 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x01fa0004, FALSE, EInternal());return TRUE;
|
|
||||||
#line 486 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 487 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 488 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(IsOfClass (etouch . penOther , "DestroyableArchitecture"))
|
|
||||||
#line 489 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 490 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CDestroyableArchitecture & br = (CDestroyableArchitecture &) * etouch . penOther ;
|
|
||||||
#line 491 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(br . m_fHealth > 0)
|
|
||||||
#line 492 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 493 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT3D vDirection = en_vCurrentTranslationAbsolute ;
|
|
||||||
#line 494 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
vDirection . Normalize ();
|
|
||||||
#line 495 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
InflictDirectDamage (etouch . penOther , m_penLauncher , DMT_CANNONBALL , CalculateDamageToInflict () ,
|
|
||||||
#line 496 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
GetPlacement () . pl_PositionVector , vDirection );
|
|
||||||
#line 497 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_bSelfExploded = FALSE ;
|
|
||||||
#line 498 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x01fa0004, FALSE, EInternal());return TRUE;
|
|
||||||
#line 499 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 500 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 503 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BounceSound (((FLOAT3D &) etouch . plCollision ) % en_vCurrentTranslationAbsolute );
|
|
||||||
#line 504 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 505 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EForceExplode):{const EForceExplode&e= (EForceExplode&)__eeInput;
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x01fa0004, FALSE, EInternal());return TRUE;}ASSERT(FALSE);break;case(EVENTCODE_EDeath):{const EDeath&e= (EDeath&)__eeInput;
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x01fa0004, FALSE, EInternal());return TRUE;}ASSERT(FALSE);break;case(EVENTCODE_ETimer):{const ETimer&e= (ETimer&)__eeInput;
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x01fa0004, FALSE, EInternal());return TRUE;}ASSERT(FALSE);break;default: return FALSE; break;
|
|
||||||
#line 509 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}return TRUE;}BOOL CCannonBall::H0x01fa0004_Bounce_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0004
|
|
||||||
|
|
||||||
#line 510 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_bSelfExploded = TRUE ;
|
|
||||||
#line 511 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Return(STATE_CURRENT,EEnd ());
|
|
||||||
#line 511 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCannonBall::
|
|
||||||
#line 515 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonBall_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_ELaunchCannonBall, "CCannonBall::Main expects 'ELaunchCannonBall' as input!"); const ELaunchCannonBall &eLaunch = (const ELaunchCannonBall &)__eeInput;
|
|
||||||
#line 517 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ASSERT (eLaunch . penLauncher != NULL );
|
|
||||||
#line 518 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_penLauncher = eLaunch . penLauncher ;
|
|
||||||
#line 519 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_fLaunchPower = eLaunch . fLaunchPower ;
|
|
||||||
#line 520 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_cbtType = eLaunch . cbtType ;
|
|
||||||
#line 521 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_fCannonBallSize = eLaunch . fSize ;
|
|
||||||
#line 522 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_tmInvisibility = 0.05f;
|
|
||||||
#line 523 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_bSelfExploded = FALSE ;
|
|
||||||
#line 524 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_tmExpandBox = 0.0001f;
|
|
||||||
#line 526 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_tmForceExplode = _pTimer -> CurrentTick () + 30.0f;
|
|
||||||
#line 529 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Initialize ();
|
|
||||||
#line 531 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SendEvent (EReturn ());
|
|
||||||
#line 532 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa0005, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa0005_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0005
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
||||||
return TRUE;}ASSERT(FALSE);break;case(EVENTCODE_EReturn):{const EReturn&e= (EReturn&)__eeInput;
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x01fa0006, FALSE, EInternal());return TRUE;}ASSERT(FALSE);break;default: return FALSE; break;
|
|
||||||
#line 535 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}return TRUE;}BOOL CCannonBall::H0x01fa0006_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0006
|
|
||||||
|
|
||||||
#line 538 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT tmCastCoverPath = _pTimer -> TickQuantum * 1.5f;
|
|
||||||
#line 539 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
CCastRay crRay (m_penLauncher , GetPlacement () , m_fLaunchPower * tmCastCoverPath );
|
|
||||||
#line 540 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
crRay . cr_bHitTranslucentPortals = FALSE ;
|
|
||||||
#line 541 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
crRay . cr_fTestR = 0.75f / 2.0f * m_fCannonBallSize ;
|
|
||||||
#line 542 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
crRay . cr_ttHitModels = CCastRay :: TT_COLLISIONBOX ;
|
|
||||||
#line 543 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
GetWorld () -> CastRay (crRay );
|
|
||||||
#line 546 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_fIgnoreTime = _pTimer -> CurrentTick () + 0.1f;
|
|
||||||
#line 549 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_fStartTime = _pTimer -> CurrentTick ();
|
|
||||||
#line 551 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(crRay . cr_penHit != NULL && crRay . cr_penHit -> GetRenderType () == RT_MODEL )
|
|
||||||
#line 552 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 553 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(BallTouchExplode (crRay . cr_penHit ))
|
|
||||||
#line 554 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
{
|
|
||||||
#line 555 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
m_tmForceExplode = _pTimer -> CurrentTick () + tmCastCoverPath ;
|
|
||||||
#line 556 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 557 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 559 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
STATE_CCannonBall_Bounce, TRUE;
|
|
||||||
Jump(STATE_CURRENT, 0x01fa0007, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa0007_Main_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0007
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: Call(STATE_CURRENT, STATE_CCannonBall_Bounce, TRUE, EVoid());return TRUE;case EVENTCODE_EEnd: Jump(STATE_CURRENT,0x01fa0008, FALSE, __eeInput); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa0008_Main_04(const CEntityEvent &__eeInput){
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0008
|
|
||||||
const EEnd&__e= (EEnd&)__eeInput;
|
|
||||||
;
|
|
||||||
#line 562 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SwitchToEditorModel ();
|
|
||||||
#line 564 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ForceFullStop ();
|
|
||||||
#line 567 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
ESound eSound ;
|
|
||||||
#line 568 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
eSound . EsndtSound = SNDT_EXPLOSION ;
|
|
||||||
#line 569 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
eSound . penTarget = m_penLauncher ;
|
|
||||||
#line 570 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(IsDerivedFromClass (this , "Player")){
|
|
||||||
#line 571 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SendEventInRange (eSound , FLOATaabbox3D (GetPlacement () . pl_PositionVector , SOUND_RANGE ));
|
|
||||||
#line 572 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
}
|
|
||||||
#line 574 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
if(!(m_cbtType == CBT_IRON )){ Jump(STATE_CURRENT,0x01fa0023, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 578 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (0.0f , 0.0f , 0.0f) , STRETCH_3 , STRETCH_3 , STRETCH_4 , TRUE , TRUE , TRUE , TRUE );
|
|
||||||
#line 579 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (1.0f , 1.5f , 1.5f) , STRETCH_3 , STRETCH_3 , STRETCH_4 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 580 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (- 2.0f , 1.0f , - 1.5f) , STRETCH_3 , STRETCH_3 , STRETCH_4 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 581 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (- 1.0f , 0.5f , 1.0f) , STRETCH_4 , STRETCH_4 , STRETCH_4 , TRUE , FALSE , FALSE , FALSE );Jump(STATE_CURRENT,0x01fa0022, FALSE, EInternal());return TRUE;}BOOL CCannonBall::H0x01fa0023_Main_31(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0023
|
|
||||||
if(!(m_cbtType == CBT_NUKE )){ Jump(STATE_CURRENT,0x01fa0021, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 585 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (0.0f , 0.0f , 0.0f) , STRETCH_6 , STRETCH_6 , STRETCH_10 , TRUE , TRUE , TRUE , TRUE );
|
|
||||||
#line 586 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.15f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa0009, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa0009_Main_05(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0009
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa000a, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa000a_Main_06(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa000a
|
|
||||||
;
|
|
||||||
#line 587 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (4.0f , 5.0f , 5.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 588 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.2f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa000b, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa000b_Main_07(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa000b
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa000c, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa000c_Main_08(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa000c
|
|
||||||
;
|
|
||||||
#line 589 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (- 5.0f , 3.0f , - 4.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 590 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.15f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa000d, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa000d_Main_09(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa000d
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa000e, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa000e_Main_10(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa000e
|
|
||||||
;
|
|
||||||
#line 591 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (- 3.0f , 2.0f , 3.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 592 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.15f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa000f, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa000f_Main_11(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa000f
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa0010, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa0010_Main_12(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0010
|
|
||||||
;
|
|
||||||
#line 593 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (2.0f , 1.0f , 4.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , TRUE , FALSE , FALSE );
|
|
||||||
#line 594 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.2f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa0011, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa0011_Main_13(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0011
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa0012, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa0012_Main_14(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0012
|
|
||||||
;
|
|
||||||
#line 595 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (- 2.0f , 5.0f , - 4.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 596 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.18f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa0013, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa0013_Main_15(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0013
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa0014, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa0014_Main_16(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0014
|
|
||||||
;
|
|
||||||
#line 597 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (- 3.0f , 2.0f , 2.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 598 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.25f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa0015, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa0015_Main_17(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0015
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa0016, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa0016_Main_18(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0016
|
|
||||||
;
|
|
||||||
#line 599 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (0.0f , 4.0f , - 1.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 600 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.15f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa0017, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa0017_Main_19(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0017
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa0018, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa0018_Main_20(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0018
|
|
||||||
;
|
|
||||||
#line 601 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (2.0f , 0.0f , - 3.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , TRUE , FALSE , FALSE );
|
|
||||||
#line 602 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.25f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa0019, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa0019_Main_21(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0019
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa001a, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa001a_Main_22(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa001a
|
|
||||||
;
|
|
||||||
#line 603 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (- 1.0f , 2.0f , 0.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 604 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.125f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa001b, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa001b_Main_23(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa001b
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa001c, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa001c_Main_24(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa001c
|
|
||||||
;
|
|
||||||
#line 605 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (3.0f , 1.0f , 1.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 606 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.1f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa001d, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa001d_Main_25(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa001d
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa001e, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa001e_Main_26(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa001e
|
|
||||||
;
|
|
||||||
#line 607 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (3.0f , 2.0f , 2.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , FALSE , FALSE , FALSE );
|
|
||||||
#line 608 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
SetTimerAfter(0.125f);
|
|
||||||
Jump(STATE_CURRENT, 0x01fa001f, FALSE, EBegin());return TRUE;}BOOL CCannonBall::H0x01fa001f_Main_27(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa001f
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01fa0020, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonBall::H0x01fa0020_Main_28(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0020
|
|
||||||
;
|
|
||||||
#line 609 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Explosion (FLOAT3D (3.0f , 2.0f , 2.0f) , STRETCH_4 , STRETCH_6 , STRETCH_10 , TRUE , TRUE , FALSE , FALSE );Jump(STATE_CURRENT,0x01fa0021, FALSE, EInternal());return TRUE;}BOOL CCannonBall::H0x01fa0021_Main_29(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0021
|
|
||||||
Jump(STATE_CURRENT,0x01fa0022, FALSE, EInternal());return TRUE;}
|
|
||||||
BOOL CCannonBall::H0x01fa0022_Main_30(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01fa0022
|
|
||||||
|
|
||||||
#line 613 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 615 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 615 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,147 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_CannonBall_INCLUDED
|
|
||||||
#define _EntitiesMP_CannonBall_INCLUDED 1
|
|
||||||
#include <EntitiesMP/BasicEffects.h>
|
|
||||||
#include <EntitiesMP/Light.h>
|
|
||||||
#include <EntitiesMP/PlayerWeapons.h>
|
|
||||||
#include <EntitiesMP/EnemyBase.h>
|
|
||||||
extern DECL_DLL CEntityPropertyEnumType CannonBallType_enum;
|
|
||||||
enum CannonBallType {
|
|
||||||
CBT_IRON = 0,
|
|
||||||
CBT_NUKE = 1,
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(CannonBallType &e) { e = (CannonBallType)0; } ;
|
|
||||||
#define EVENTCODE_ELaunchCannonBall 0x01fa0000
|
|
||||||
class DECL_DLL ELaunchCannonBall : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
ELaunchCannonBall();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
CEntityPointer penLauncher;
|
|
||||||
enum CannonBallType cbtType;
|
|
||||||
FLOAT fLaunchPower;
|
|
||||||
FLOAT fSize;
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(ELaunchCannonBall &e) { e = ELaunchCannonBall(); } ;
|
|
||||||
#define EVENTCODE_EForceExplode 0x01fa0001
|
|
||||||
class DECL_DLL EForceExplode : public CEntityEvent {
|
|
||||||
public:
|
|
||||||
EForceExplode();
|
|
||||||
CEntityEvent *MakeCopy(void);
|
|
||||||
};
|
|
||||||
DECL_DLL inline void ClearToDefault(EForceExplode &e) { e = EForceExplode(); } ;
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CCannonBall_DLLClass;
|
|
||||||
class DECL_DLL CCannonBall : public CMovableModelEntity {
|
|
||||||
public:
|
|
||||||
virtual void SetDefaultProperties(void);
|
|
||||||
CEntityPointer m_penLauncher;
|
|
||||||
FLOAT m_fLaunchPower;
|
|
||||||
FLOAT m_fCannonBallSize;
|
|
||||||
FLOAT m_fIgnoreTime;
|
|
||||||
FLOAT m_fStartTime;
|
|
||||||
INDEX m_iNextChannel;
|
|
||||||
BOOL m_bSelfExploded;
|
|
||||||
CSoundObject m_soBounce0;
|
|
||||||
CSoundObject m_soBounce1;
|
|
||||||
CSoundObject m_soBounce2;
|
|
||||||
CSoundObject m_soBounce3;
|
|
||||||
CSoundObject m_soBounce4;
|
|
||||||
enum CannonBallType m_cbtType;
|
|
||||||
FLOAT m_tmInvisibility;
|
|
||||||
FLOAT m_tmExpandBox;
|
|
||||||
FLOAT m_tmForceExplode;
|
|
||||||
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void PreMoving(void);
|
|
||||||
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void PostMoving(void);
|
|
||||||
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void Read_t(CTStream * istr);
|
|
||||||
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient);
|
|
||||||
|
|
||||||
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void RenderParticles(void);
|
|
||||||
|
|
||||||
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void Initialize(void);
|
|
||||||
|
|
||||||
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
FLOAT CalculateDamageToInflict(void);
|
|
||||||
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void Explosion(FLOAT3D vCenter,
|
|
||||||
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
const FLOAT3D & vStretchExplosion,
|
|
||||||
#line 272 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
const FLOAT3D & vStretchShockwave,
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
const FLOAT3D & vStretchStain,
|
|
||||||
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL bHasExplosion,
|
|
||||||
#line 275 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL bHasShockWave,
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL bHasStain,
|
|
||||||
#line 277 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL bHasLight);
|
|
||||||
|
|
||||||
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
BOOL BallTouchExplode(CEntityPointer penHit);
|
|
||||||
|
|
||||||
#line 397 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void RangeDamage(void);
|
|
||||||
|
|
||||||
#line 412 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void SpawnEffect(const CPlacement3D & plEffect,const ESpawnEffect & eSpawnEffect);
|
|
||||||
|
|
||||||
#line 422 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
void BounceSound(FLOAT fSpeed);
|
|
||||||
#define STATE_CCannonBall_Bounce 0x01fa0002
|
|
||||||
BOOL
|
|
||||||
#line 439 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Bounce(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0003_Bounce_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0004_Bounce_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonBall_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 515 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0005_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0006_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0007_Main_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0008_Main_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0009_Main_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa000a_Main_06(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa000b_Main_07(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa000c_Main_08(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa000d_Main_09(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa000e_Main_10(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa000f_Main_11(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0010_Main_12(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0011_Main_13(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0012_Main_14(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0013_Main_15(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0014_Main_16(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0015_Main_17(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0016_Main_18(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0017_Main_19(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0018_Main_20(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0019_Main_21(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa001a_Main_22(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa001b_Main_23(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa001c_Main_24(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa001d_Main_25(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa001e_Main_26(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa001f_Main_27(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0020_Main_28(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0021_Main_29(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0022_Main_30(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01fa0023_Main_31(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_CannonBall_INCLUDED
|
|
|
@ -1,104 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
EP_ENUMBEG(CannonBallType)
|
|
||||||
EP_ENUMVALUE(CBT_IRON, ""),
|
|
||||||
EP_ENUMVALUE(CBT_NUKE, ""),
|
|
||||||
EP_ENUMEND(CannonBallType);
|
|
||||||
|
|
||||||
#define ENTITYCLASS CCannonBall
|
|
||||||
|
|
||||||
CEntityProperty CCannonBall_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000001fa<<8)+1, offsetof(CCannonBall, m_penLauncher), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000001fa<<8)+2, offsetof(CCannonBall, m_fLaunchPower), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000001fa<<8)+3, offsetof(CCannonBall, m_fCannonBallSize), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000001fa<<8)+10, offsetof(CCannonBall, m_fIgnoreTime), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000001fa<<8)+11, offsetof(CCannonBall, m_fStartTime), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x000001fa<<8)+12, offsetof(CCannonBall, m_iNextChannel), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000001fa<<8)+13, offsetof(CCannonBall, m_bSelfExploded), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x000001fa<<8)+20, offsetof(CCannonBall, m_soBounce0), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x000001fa<<8)+21, offsetof(CCannonBall, m_soBounce1), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x000001fa<<8)+22, offsetof(CCannonBall, m_soBounce2), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x000001fa<<8)+23, offsetof(CCannonBall, m_soBounce3), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x000001fa<<8)+24, offsetof(CCannonBall, m_soBounce4), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENUM, &CannonBallType_enum, (0x000001fa<<8)+30, offsetof(CCannonBall, m_cbtType), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000001fa<<8)+40, offsetof(CCannonBall, m_tmInvisibility), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000001fa<<8)+41, offsetof(CCannonBall, m_tmExpandBox), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000001fa<<8)+42, offsetof(CCannonBall, m_tmForceExplode), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CCannonBall_propertiesct ARRAYCOUNT(CCannonBall_properties)
|
|
||||||
|
|
||||||
CEntityComponent CCannonBall_components[] = {
|
|
||||||
#define CLASS_BASIC_EFFECT ((0x000001fa<<8)+1)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASIC_EFFECT, "EFNM" "Classes\\BasicEffect.ecl"),
|
|
||||||
#define CLASS_LIGHT ((0x000001fa<<8)+2)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_LIGHT, "EFNM" "Classes\\Light.ecl"),
|
|
||||||
#define MODEL_BALL ((0x000001fa<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BALL, "EFNM" "Models\\Weapons\\Cannon\\Projectile\\CannonBall.mdl"),
|
|
||||||
#define TEXTURE_NUKE_BALL ((0x000001fa<<8)+11)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_NUKE_BALL, "EFNM" "Models\\Weapons\\Cannon\\Projectile\\NukeBall.tex"),
|
|
||||||
#define TEXTURE_IRON_BALL ((0x000001fa<<8)+13)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_IRON_BALL, "EFNM" "Models\\Weapons\\Cannon\\Projectile\\IronBall.tex"),
|
|
||||||
#define SOUND_BALL_BOUNCE ((0x000001fa<<8)+12)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_BALL_BOUNCE, "EFNM" "Models\\Weapons\\Cannon\\Sounds\\Bounce.wav"),
|
|
||||||
#define TEX_REFL_BWRIPLES01 ((0x000001fa<<8)+200)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_REFL_BWRIPLES01, "EFNM" "Models\\ReflectionTextures\\BWRiples01.tex"),
|
|
||||||
#define TEX_SPEC_MEDIUM ((0x000001fa<<8)+211)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEX_SPEC_MEDIUM, "EFNM" "Models\\SpecularTextures\\Medium.tex"),
|
|
||||||
};
|
|
||||||
#define CCannonBall_componentsct ARRAYCOUNT(CCannonBall_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CCannonBall_handlers[] = {
|
|
||||||
{0x01fa0002, -1, CEntity::pEventHandler(&CCannonBall::
|
|
||||||
#line 439 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Bounce),DEBUGSTRING("CCannonBall::Bounce")},
|
|
||||||
{0x01fa0003, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0003_Bounce_01), DEBUGSTRING("CCannonBall::H0x01fa0003_Bounce_01")},
|
|
||||||
{0x01fa0004, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0004_Bounce_02), DEBUGSTRING("CCannonBall::H0x01fa0004_Bounce_02")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CCannonBall::
|
|
||||||
#line 515 "D:/SE1_GPL/Sources/EntitiesMP/CannonBall.es"
|
|
||||||
Main),DEBUGSTRING("CCannonBall::Main")},
|
|
||||||
{0x01fa0005, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0005_Main_01), DEBUGSTRING("CCannonBall::H0x01fa0005_Main_01")},
|
|
||||||
{0x01fa0006, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0006_Main_02), DEBUGSTRING("CCannonBall::H0x01fa0006_Main_02")},
|
|
||||||
{0x01fa0007, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0007_Main_03), DEBUGSTRING("CCannonBall::H0x01fa0007_Main_03")},
|
|
||||||
{0x01fa0008, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0008_Main_04), DEBUGSTRING("CCannonBall::H0x01fa0008_Main_04")},
|
|
||||||
{0x01fa0009, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0009_Main_05), DEBUGSTRING("CCannonBall::H0x01fa0009_Main_05")},
|
|
||||||
{0x01fa000a, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa000a_Main_06), DEBUGSTRING("CCannonBall::H0x01fa000a_Main_06")},
|
|
||||||
{0x01fa000b, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa000b_Main_07), DEBUGSTRING("CCannonBall::H0x01fa000b_Main_07")},
|
|
||||||
{0x01fa000c, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa000c_Main_08), DEBUGSTRING("CCannonBall::H0x01fa000c_Main_08")},
|
|
||||||
{0x01fa000d, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa000d_Main_09), DEBUGSTRING("CCannonBall::H0x01fa000d_Main_09")},
|
|
||||||
{0x01fa000e, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa000e_Main_10), DEBUGSTRING("CCannonBall::H0x01fa000e_Main_10")},
|
|
||||||
{0x01fa000f, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa000f_Main_11), DEBUGSTRING("CCannonBall::H0x01fa000f_Main_11")},
|
|
||||||
{0x01fa0010, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0010_Main_12), DEBUGSTRING("CCannonBall::H0x01fa0010_Main_12")},
|
|
||||||
{0x01fa0011, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0011_Main_13), DEBUGSTRING("CCannonBall::H0x01fa0011_Main_13")},
|
|
||||||
{0x01fa0012, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0012_Main_14), DEBUGSTRING("CCannonBall::H0x01fa0012_Main_14")},
|
|
||||||
{0x01fa0013, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0013_Main_15), DEBUGSTRING("CCannonBall::H0x01fa0013_Main_15")},
|
|
||||||
{0x01fa0014, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0014_Main_16), DEBUGSTRING("CCannonBall::H0x01fa0014_Main_16")},
|
|
||||||
{0x01fa0015, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0015_Main_17), DEBUGSTRING("CCannonBall::H0x01fa0015_Main_17")},
|
|
||||||
{0x01fa0016, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0016_Main_18), DEBUGSTRING("CCannonBall::H0x01fa0016_Main_18")},
|
|
||||||
{0x01fa0017, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0017_Main_19), DEBUGSTRING("CCannonBall::H0x01fa0017_Main_19")},
|
|
||||||
{0x01fa0018, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0018_Main_20), DEBUGSTRING("CCannonBall::H0x01fa0018_Main_20")},
|
|
||||||
{0x01fa0019, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0019_Main_21), DEBUGSTRING("CCannonBall::H0x01fa0019_Main_21")},
|
|
||||||
{0x01fa001a, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa001a_Main_22), DEBUGSTRING("CCannonBall::H0x01fa001a_Main_22")},
|
|
||||||
{0x01fa001b, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa001b_Main_23), DEBUGSTRING("CCannonBall::H0x01fa001b_Main_23")},
|
|
||||||
{0x01fa001c, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa001c_Main_24), DEBUGSTRING("CCannonBall::H0x01fa001c_Main_24")},
|
|
||||||
{0x01fa001d, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa001d_Main_25), DEBUGSTRING("CCannonBall::H0x01fa001d_Main_25")},
|
|
||||||
{0x01fa001e, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa001e_Main_26), DEBUGSTRING("CCannonBall::H0x01fa001e_Main_26")},
|
|
||||||
{0x01fa001f, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa001f_Main_27), DEBUGSTRING("CCannonBall::H0x01fa001f_Main_27")},
|
|
||||||
{0x01fa0020, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0020_Main_28), DEBUGSTRING("CCannonBall::H0x01fa0020_Main_28")},
|
|
||||||
{0x01fa0021, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0021_Main_29), DEBUGSTRING("CCannonBall::H0x01fa0021_Main_29")},
|
|
||||||
{0x01fa0022, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0022_Main_30), DEBUGSTRING("CCannonBall::H0x01fa0022_Main_30")},
|
|
||||||
{0x01fa0023, -1, CEntity::pEventHandler(&CCannonBall::H0x01fa0023_Main_31), DEBUGSTRING("CCannonBall::H0x01fa0023_Main_31")},
|
|
||||||
};
|
|
||||||
#define CCannonBall_handlersct ARRAYCOUNT(CCannonBall_handlers)
|
|
||||||
|
|
||||||
CEntity *CCannonBall_New(void) { return new CCannonBall; };
|
|
||||||
void CCannonBall_OnInitClass(void) {};
|
|
||||||
void CCannonBall_OnEndClass(void) {};
|
|
||||||
void CCannonBall_OnPrecache(CDLLEntityClass *pdec, INDEX iUser);
|
|
||||||
void CCannonBall_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CCannonBall_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CCannonBall_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CCannonBall_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CCannonBall, CMovableModelEntity, "Cannon ball", "", 0x000001fa);
|
|
||||||
DECLARE_CTFILENAME(_fnmCCannonBall_tbn, "");
|
|
|
@ -1,848 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "ModelsMP/Enemies/CannonRotating/Turret.h"
|
|
||||||
#include "ModelsMP/Enemies/CannonRotating/RotatingMechanism.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/CannonRotating.h>
|
|
||||||
#include <EntitiesMP/CannonRotating_tables.h>
|
|
||||||
#line 16 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
|
|
||||||
#define CANNONR_SIZE 2.0f
|
|
||||||
|
|
||||||
// info structure
|
|
||||||
static EntityInfo eiCannonRotating = {
|
|
||||||
EIBT_WOOD, 10000.0f,
|
|
||||||
0.0f, 1.5f*CANNONR_SIZE, 0.0f, // source (eyes)
|
|
||||||
0.0f, 0.5f*CANNONR_SIZE, 0.0f, // target (body)
|
|
||||||
};
|
|
||||||
|
|
||||||
#define FIRING_POSITION_MUZZLE FLOAT3D(0.0f, 0.0f, -1.0f)
|
|
||||||
#define MUZZLE_ROTATION_SPEED 45.0f //deg/sec
|
|
||||||
|
|
||||||
|
|
||||||
void CCannonRotating::SetDefaultProperties(void) {
|
|
||||||
m_fHealth = 100.0f;
|
|
||||||
m_fFiringRangeClose = 50.0f;
|
|
||||||
m_fFiringRangeFar = 150.0f;
|
|
||||||
m_fWaitAfterFire = 3.0f;
|
|
||||||
m_fSize = CANNONR_SIZE ;
|
|
||||||
m_fMaxPitch = 20.0f;
|
|
||||||
m_fViewAngle = 2.5f;
|
|
||||||
m_fScanAngle = 60.0f;
|
|
||||||
m_fRotationSpeed = 20.0f;
|
|
||||||
m_bActive = TRUE ;
|
|
||||||
m_fRotSpeedMuzzle = ANGLE3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_fRotSpeedRotator = ANGLE3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_fDistanceToPlayer = 0.0f;
|
|
||||||
m_fDesiredMuzzlePitch = 0.0f;
|
|
||||||
m_iMuzzleDir = 1.0f;
|
|
||||||
m_vFiringPos = FLOAT3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_vTarget = FLOAT3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_tmLastFireTime = -1000.0f;
|
|
||||||
m_aBeginMuzzleRotation = ANGLE3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_aEndMuzzleRotation = ANGLE3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_aBeginRotatorRotation = ANGLE3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_aEndRotatorRotation = ANGLE3D(0.0f , 0.0f , 0.0f);
|
|
||||||
CEnemyBase::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
CTString CCannonRotating::GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath)
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
{
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CTString str ;
|
|
||||||
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
str . PrintF (TRANS ("A Cannon killed %s") , strPlayerName );
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return str ;
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void * CCannonRotating::GetEntityInfo(void) {
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return & eiCannonRotating ;
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
const CTFileName & CCannonRotating::GetComputerMessageName(void)const {
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
static DECLARE_CTFILENAME (fnmCannon , "DataMP\\Messages\\Enemies\\CannonRotating.txt");
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return fnmCannon ;
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void CCannonRotating::Precache(void) {
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CEnemyBase :: Precache ();
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
PrecacheModel (MODEL_DEBRIS_MUZZLE );
|
|
||||||
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
PrecacheModel (MODEL_DEBRIS_ROTATOR );
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
PrecacheModel (MODEL_DEBRIS_BASE );
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
PrecacheModel (MODEL_BALL );
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
PrecacheTexture (TEXTURE_BALL );
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
PrecacheSound (SOUND_FIRE );
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
PrecacheClass (CLASS_CANNONBALL );
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void CCannonRotating::ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection)
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
{
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(dmtType == DMT_BULLET && fDamageAmmount > 100.0f)
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
{
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
fDamageAmmount *= 0.5f;
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CEnemyBase :: ReceiveDamage (penInflictor , dmtType , fDamageAmmount ,
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vHitPoint , vDirection );
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
INDEX CCannonRotating::AnimForDamage(FLOAT fDamage) {
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return 0;
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
INDEX CCannonRotating::AnimForDeath(void) {
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return 0;
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
BOOL CCannonRotating::IsVisible(CEntity * penEntity)
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
{
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
ASSERT (penEntity != NULL );
|
|
||||||
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vSource , vTarget ;
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
GetPositionCastRay (this , penEntity , vSource , vTarget );
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CCastRay crRay (this , vSource , vTarget );
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
crRay . cr_ttHitModels = CCastRay :: TT_NONE ;
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
crRay . cr_bHitTranslucentPortals = FALSE ;
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
en_pwoWorld -> CastRay (crRay );
|
|
||||||
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return (crRay . cr_penHit == NULL );
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
BOOL CCannonRotating::IsInTheLineOfFire(CEntity * penEntity,FLOAT fAngle)
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
{
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
ASSERT (penEntity != NULL );
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT fCosAngle ;
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vHeading ;
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vToPlayer ;
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vSide = FLOAT3D (1.0f , 0.0f , 0.0f) * GetRotationMatrix ();
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vFront = FLOAT3D (0.0f , 0.0f , - 1.0f) * GetRotationMatrix ();
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOATmatrix3D m ;
|
|
||||||
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
MakeRotationMatrixFast (m , m_aBeginRotatorRotation );
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vSide = vSide * m ;
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vFront = vFront * m ;
|
|
||||||
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vToPlayer = penEntity -> GetPlacement () . pl_PositionVector - GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vToPlayer . Normalize ();
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
fCosAngle = vToPlayer % vSide ;
|
|
||||||
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(Abs (fCosAngle ) < CosFast (90.0f - fAngle )){
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if((vToPlayer % vFront ) > 0.0f){
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CPlayer * CCannonRotating::AcquireTarget() {
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
INDEX ctMaxPlayers = GetMaxPlayers ();
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CEntity * penPlayer ;
|
|
||||||
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
for(INDEX i = 0;i < ctMaxPlayers ;i ++){
|
|
||||||
#line 198 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
penPlayer = GetPlayerEntity (i );
|
|
||||||
#line 199 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(penPlayer != NULL && DistanceTo (this , penPlayer ) < m_fFiringRangeFar ){
|
|
||||||
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(IsInTheLineOfFire (penPlayer , m_fViewAngle )){
|
|
||||||
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(IsVisible (penPlayer )){
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return (CPlayer *) penPlayer ;
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 207 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return NULL ;
|
|
||||||
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void CCannonRotating::CannonBlowUp(void)
|
|
||||||
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
{
|
|
||||||
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vNormalizedDamage = m_vDamage - m_vDamage * (m_fBlowUpAmount / m_vDamage . Length ());
|
|
||||||
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vNormalizedDamage /= Sqrt (vNormalizedDamage . Length ());
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vNormalizedDamage *= 0.75f;
|
|
||||||
#line 218 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vNormalizedDamage += FLOAT3D (0.0f , 15.0f + FRnd () * 10.0f , 0.0f);
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vBodySpeed = en_vCurrentTranslationAbsolute - en_vGravityDir * (en_vGravityDir % en_vCurrentTranslationAbsolute );
|
|
||||||
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Debris_Begin (EIBT_WOOD , DPT_NONE , BET_NONE , 1.0f , vNormalizedDamage , vBodySpeed , 5.0f , 2.0f);
|
|
||||||
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_DEBRIS_MUZZLE , TEXTURE_CANNON , 0 , 0 , 0 , 0 , m_fSize ,
|
|
||||||
#line 226 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 227 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_DEBRIS_ROTATOR , TEXTURE_ROTATOR , 0 , 0 , 0 , 0 , m_fSize ,
|
|
||||||
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 229 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_DEBRIS_ROTATOR , TEXTURE_ROTATOR , 0 , 0 , 0 , 0 , m_fSize ,
|
|
||||||
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_DEBRIS_BASE , TEXTURE_TURRET , 0 , 0 , 0 , 0 , m_fSize ,
|
|
||||||
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 233 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_BALL , TEXTURE_BALL , 0 , 0 , 0 , 0 , m_fSize / 2.0f ,
|
|
||||||
#line 234 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 235 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_BALL , TEXTURE_BALL , 0 , 0 , 0 , 0 , m_fSize / 2.0f ,
|
|
||||||
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CPlacement3D plExplosion = GetPlacement ();
|
|
||||||
#line 240 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CEntityPointer penExplosion = CreateEntity (plExplosion , CLASS_BASIC_EFFECT );
|
|
||||||
#line 241 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
ESpawnEffect eSpawnEffect ;
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eSpawnEffect . colMuliplier = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 243 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eSpawnEffect . betType = BET_CANNON ;
|
|
||||||
#line 244 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT fSize = m_fBlowUpSize * 1.0f;
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eSpawnEffect . vStretch = FLOAT3D (fSize , fSize , fSize );
|
|
||||||
#line 246 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
penExplosion -> Initialize (eSpawnEffect );
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
plExplosion = GetPlacement ();
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
penExplosion = CreateEntity (plExplosion , CLASS_BASIC_EFFECT );
|
|
||||||
#line 251 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eSpawnEffect . colMuliplier = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eSpawnEffect . betType = BET_CANNONSHOCKWAVE ;
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
fSize = m_fBlowUpSize * 1.0f;
|
|
||||||
#line 254 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eSpawnEffect . vStretch = FLOAT3D (fSize , fSize , fSize );
|
|
||||||
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
penExplosion -> Initialize (eSpawnEffect );
|
|
||||||
#line 258 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SwitchToEditorModel ();
|
|
||||||
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 260 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void CCannonRotating::PreMoving() {
|
|
||||||
#line 265 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
UpdateAttachmentRotations ();
|
|
||||||
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CEnemyBase :: PreMoving ();
|
|
||||||
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void CCannonRotating::PostMoving() {
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CEnemyBase :: PostMoving ();
|
|
||||||
#line 272 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetFlags (GetFlags () & ~ ENF_INRENDERING );
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
BOOL CCannonRotating::AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient) {
|
|
||||||
#line 278 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CAttachmentModelObject & amo0 = * GetModelObject () -> GetAttachmentModel (TURRET_ATTACHMENT_ROTATORHEADING );
|
|
||||||
#line 279 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
amo0 . amo_plRelative . pl_OrientationAngle = Lerp (m_aBeginRotatorRotation , m_aEndRotatorRotation , _pTimer -> GetLerpFactor ());
|
|
||||||
#line 281 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CAttachmentModelObject & amo1 = * amo0 . amo_moModelObject . GetAttachmentModel (ROTATINGMECHANISM_ATTACHMENT_CANNON );
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
amo1 . amo_plRelative . pl_OrientationAngle = Lerp (m_aBeginMuzzleRotation , m_aEndMuzzleRotation , _pTimer -> GetLerpFactor ());
|
|
||||||
#line 284 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return CEnemyBase :: AdjustShadingParameters (vLightDirection , colLight , colAmbient );
|
|
||||||
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void CCannonRotating::UpdateAttachmentRotations(void)
|
|
||||||
#line 289 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
{
|
|
||||||
#line 291 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_aBeginRotatorRotation = m_aEndRotatorRotation ;
|
|
||||||
#line 292 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_aEndRotatorRotation += m_fRotSpeedRotator * _pTimer -> TickQuantum ;
|
|
||||||
#line 294 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_aBeginMuzzleRotation = m_aEndMuzzleRotation ;
|
|
||||||
#line 295 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_aEndMuzzleRotation += m_fRotSpeedMuzzle * _pTimer -> TickQuantum ;
|
|
||||||
#line 296 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 298 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void CCannonRotating::UpdateFiringPos() {
|
|
||||||
#line 299 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOATmatrix3D m ;
|
|
||||||
#line 301 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_vFiringPos = FIRING_POSITION_MUZZLE * m_fSize ;
|
|
||||||
#line 304 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
MakeRotationMatrixFast (m , m_aBeginRotatorRotation );
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_vFiringPos = m_vFiringPos * m ;
|
|
||||||
#line 308 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
MakeRotationMatrixFast (m , m_aBeginMuzzleRotation );
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_vFiringPos = m_vFiringPos * m ;
|
|
||||||
#line 312 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CAttachmentModelObject & amo0 = * GetModelObject () -> GetAttachmentModel (TURRET_ATTACHMENT_ROTATORHEADING );
|
|
||||||
#line 313 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CAttachmentModelObject & amo1 = * amo0 . amo_moModelObject . GetAttachmentModel (ROTATINGMECHANISM_ATTACHMENT_CANNON );
|
|
||||||
#line 314 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_vFiringPos += amo0 . amo_plRelative . pl_PositionVector + amo1 . amo_plRelative . pl_PositionVector ;
|
|
||||||
#line 315 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
BOOL CCannonRotating::
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
MainLoop(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonRotating_MainLoop
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonRotating::MainLoop expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 320 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x01590001, FALSE, EBegin());return TRUE;}BOOL CCannonRotating::H0x01590001_MainLoop_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590001
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
||||||
|
|
||||||
#line 322 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Call(STATE_CURRENT, STATE_CCannonRotating_Scan, TRUE, EVoid());return TRUE;
|
|
||||||
#line 323 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 324 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EDeactivate):{const EDeactivate&e= (EDeactivate&)__eeInput;
|
|
||||||
|
|
||||||
#line 326 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCannonRotating_Inactive, TRUE, EVoid());return TRUE;
|
|
||||||
#line 327 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EDeath):{const EDeath&eDeath= (EDeath&)__eeInput;
|
|
||||||
|
|
||||||
#line 330 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCannonRotating_Die, TRUE, eDeath );return TRUE;
|
|
||||||
#line 331 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}ASSERT(FALSE);break;default: return FALSE; break;
|
|
||||||
#line 332 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}return TRUE;}BOOL CCannonRotating::H0x01590002_MainLoop_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590002
|
|
||||||
;
|
|
||||||
#line 333 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 333 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCannonRotating::
|
|
||||||
#line 336 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Scan(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonRotating_Scan
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonRotating::Scan expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 339 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Jump(STATE_CURRENT,0x0159000e, FALSE, EInternal());return TRUE;}BOOL CCannonRotating::H0x0159000e_Scan_11(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000e
|
|
||||||
if(!(TRUE )){ Jump(STATE_CURRENT,0x0159000f, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 340 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetTimerAfter(0.20f);
|
|
||||||
Jump(STATE_CURRENT, 0x01590004, FALSE, EBegin());return TRUE;}BOOL CCannonRotating::H0x01590004_Scan_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590004
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01590005, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonRotating::H0x01590005_Scan_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590005
|
|
||||||
;
|
|
||||||
#line 343 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
BOOL bPause = FALSE ;
|
|
||||||
#line 344 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(m_aBeginRotatorRotation (1) > (m_fScanAngle / 2.0f)){
|
|
||||||
#line 345 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fRotSpeedRotator = FLOAT3D (- m_fRotationSpeed , 0.0f , 0.0f);
|
|
||||||
#line 346 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(m_iMuzzleDir != - 1.0f){
|
|
||||||
#line 347 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_iMuzzleDir = - 1.0f;
|
|
||||||
#line 348 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
bPause = TRUE ;
|
|
||||||
#line 349 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 350 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}else if(m_aBeginRotatorRotation (1) < (- m_fScanAngle / 2.0f)){
|
|
||||||
#line 351 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fRotSpeedRotator = FLOAT3D (m_fRotationSpeed , 0.0f , 0.0f);
|
|
||||||
#line 352 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(m_iMuzzleDir != 1.0f){
|
|
||||||
#line 353 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_iMuzzleDir = 1.0f;
|
|
||||||
#line 354 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
bPause = TRUE ;
|
|
||||||
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}else if(TRUE ){
|
|
||||||
#line 357 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fRotSpeedRotator = FLOAT3D (m_iMuzzleDir * m_fRotationSpeed , 0.0f , 0.0f);
|
|
||||||
#line 358 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 360 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(!(bPause )){ Jump(STATE_CURRENT,0x01590008, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 361 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fRotSpeedRotator = FLOAT3D (0.0f , 0.0f , 0.0f);
|
|
||||||
#line 362 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetTimerAfter(0.5f);
|
|
||||||
Jump(STATE_CURRENT, 0x01590006, FALSE, EBegin());return TRUE;}BOOL CCannonRotating::H0x01590006_Scan_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590006
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01590007, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonRotating::H0x01590007_Scan_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590007
|
|
||||||
;Jump(STATE_CURRENT,0x01590008, FALSE, EInternal());return TRUE;}BOOL CCannonRotating::H0x01590008_Scan_05(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590008
|
|
||||||
|
|
||||||
#line 366 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CPlayer * pTarget = AcquireTarget ();
|
|
||||||
#line 367 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(!(pTarget )){ Jump(STATE_CURRENT,0x0159000d, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 368 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(!((pTarget -> GetFlags () & ENF_ALIVE ) && ! (pTarget -> GetFlags () & ENF_DELETED ))){ Jump(STATE_CURRENT,0x0159000c, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 370 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fRotSpeedRotator = FLOAT3D (0.0f , 0.0f , 0.0f);
|
|
||||||
#line 371 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_penEnemy = pTarget ;
|
|
||||||
#line 372 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fDistanceToPlayer = DistanceTo (this , pTarget );
|
|
||||||
#line 374 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(!(m_tmLastFireTime + m_fWaitAfterFire < _pTimer -> CurrentTick ())){ Jump(STATE_CURRENT,0x0159000b, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 376 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
STATE_CCannonRotating_FireCannon, TRUE;
|
|
||||||
Jump(STATE_CURRENT, 0x01590009, FALSE, EBegin());return TRUE;}BOOL CCannonRotating::H0x01590009_Scan_06(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590009
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: Call(STATE_CURRENT, STATE_CCannonRotating_FireCannon, TRUE, EVoid());return TRUE;case EVENTCODE_EReturn: Jump(STATE_CURRENT,0x0159000a, FALSE, __eeInput); return TRUE;default: return FALSE; }}BOOL CCannonRotating::H0x0159000a_Scan_07(const CEntityEvent &__eeInput){
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000a
|
|
||||||
const EReturn&__e= (EReturn&)__eeInput;
|
|
||||||
;Jump(STATE_CURRENT,0x0159000b, FALSE, EInternal());return TRUE;}BOOL CCannonRotating::H0x0159000b_Scan_08(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000b
|
|
||||||
Jump(STATE_CURRENT,0x0159000c, FALSE, EInternal());return TRUE;}BOOL CCannonRotating::H0x0159000c_Scan_09(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000c
|
|
||||||
Jump(STATE_CURRENT,0x0159000d, FALSE, EInternal());return TRUE;}BOOL CCannonRotating::H0x0159000d_Scan_10(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000d
|
|
||||||
Jump(STATE_CURRENT,0x0159000e, FALSE, EInternal());return TRUE;
|
|
||||||
#line 380 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}BOOL CCannonRotating::H0x0159000f_Scan_12(const CEntityEvent &__eeInput) {
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000f
|
|
||||||
ASSERT(FALSE); return TRUE;};BOOL CCannonRotating::
|
|
||||||
#line 383 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Die(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonRotating_Die
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EDeath, "CCannonRotating::Die expects 'EDeath' as input!"); const EDeath &eDeath = (const EDeath &)__eeInput;
|
|
||||||
#line 385 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetFlags (GetFlags () & ~ ENF_ALIVE );
|
|
||||||
#line 388 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CEntityPointer penKiller = eDeath . eLastDamage . penInflictor ;
|
|
||||||
#line 389 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(penKiller == NULL || ! IsOfClass (penKiller , "Player")){
|
|
||||||
#line 390 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
penKiller = m_penEnemy ;
|
|
||||||
#line 391 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 393 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(penKiller == NULL || ! IsOfClass (penKiller , "Player")){
|
|
||||||
#line 394 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
penKiller = FixupCausedToPlayer (this , penKiller , FALSE );
|
|
||||||
#line 395 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 398 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(penKiller != NULL ){
|
|
||||||
#line 400 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
EReceiveScore eScore ;
|
|
||||||
#line 401 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eScore . iPoints = m_iScore ;
|
|
||||||
#line 402 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
penKiller -> SendEvent (eScore );
|
|
||||||
#line 403 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(CountAsKill ())
|
|
||||||
#line 404 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
{
|
|
||||||
#line 405 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
penKiller -> SendEvent (EKilledEnemy ());
|
|
||||||
#line 406 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 408 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
EComputerMessage eMsg ;
|
|
||||||
#line 409 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eMsg . fnmMessage = GetComputerMessageName ();
|
|
||||||
#line 410 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(eMsg . fnmMessage != ""){
|
|
||||||
#line 411 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
penKiller -> SendEvent (eMsg );
|
|
||||||
#line 412 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 413 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 416 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SendToTarget (m_penDeathTarget , m_eetDeathType , penKiller );
|
|
||||||
#line 419 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(m_penSpawnerTarget ){
|
|
||||||
#line 420 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SendToTarget (m_penSpawnerTarget , EET_TRIGGER , this );
|
|
||||||
#line 421 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 424 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CannonBlowUp ();
|
|
||||||
#line 425 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 426 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 426 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCannonRotating::
|
|
||||||
#line 429 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
RotateMuzzle(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonRotating_RotateMuzzle
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonRotating::RotateMuzzle expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 431 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT fDeltaP = m_fDesiredMuzzlePitch - m_aBeginMuzzleRotation (2);
|
|
||||||
#line 434 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(Abs (fDeltaP ) < 5.0f){Return(STATE_CURRENT,EReturn ());return TRUE;}
|
|
||||||
#line 436 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fRotSpeedMuzzle = ANGLE3D (0.0f , MUZZLE_ROTATION_SPEED * Sgn (fDeltaP ) , 0.0f);
|
|
||||||
#line 438 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetTimerAfter(Abs (fDeltaP / MUZZLE_ROTATION_SPEED ));
|
|
||||||
Jump(STATE_CURRENT, 0x01590012, FALSE, EBegin());return TRUE;}BOOL CCannonRotating::H0x01590012_RotateMuzzle_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590012
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01590013, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonRotating::H0x01590013_RotateMuzzle_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590013
|
|
||||||
;
|
|
||||||
#line 439 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fRotSpeedMuzzle = ANGLE3D (0.0f , 0.0f , 0.0f);
|
|
||||||
#line 441 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 441 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCannonRotating::
|
|
||||||
#line 444 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FireCannon(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonRotating_FireCannon
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonRotating::FireCannon expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 446 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
UpdateFiringPos ();
|
|
||||||
#line 447 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vToTarget = m_penEnemy -> GetPlacement () . pl_PositionVector -
|
|
||||||
#line 448 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
GetPlacement () . pl_PositionVector + m_vFiringPos ;
|
|
||||||
#line 449 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vToTarget . Normalize ();
|
|
||||||
#line 452 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vCannonFront = FLOAT3D (0.0f , 0.0f , - 1.0f) * GetRotationMatrix ();
|
|
||||||
#line 453 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOATmatrix3D m ;
|
|
||||||
#line 454 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
MakeRotationMatrixFast (m , m_aBeginRotatorRotation );
|
|
||||||
#line 455 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vCannonFront = vCannonFront * m ;
|
|
||||||
#line 456 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
ANGLE aToPlayer = ACos (vToTarget % vCannonFront );
|
|
||||||
#line 457 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT fPitch = aToPlayer + 5.0f;
|
|
||||||
#line 458 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vCannonUp = FLOAT3D (0.0 , 1.0f , 0.0f) * GetRotationMatrix ();
|
|
||||||
#line 461 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(m_fDistanceToPlayer > m_fFiringRangeFar ){
|
|
||||||
#line 462 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 462 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 464 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}else if(vToTarget % vCannonUp < 0.0f){
|
|
||||||
#line 465 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
fPitch = 5.0f;
|
|
||||||
#line 467 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}else if(m_fDistanceToPlayer > m_fFiringRangeClose ){
|
|
||||||
#line 468 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(aToPlayer < m_fMaxPitch ){
|
|
||||||
#line 469 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
fPitch = aToPlayer + m_fMaxPitch * (m_fDistanceToPlayer - m_fFiringRangeClose ) / (m_fFiringRangeFar - m_fFiringRangeClose );
|
|
||||||
#line 470 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}else if(TRUE ){
|
|
||||||
#line 471 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
fPitch = aToPlayer + 10.0f + m_fMaxPitch * (m_fDistanceToPlayer - m_fFiringRangeClose ) / (m_fFiringRangeFar - m_fFiringRangeClose );
|
|
||||||
#line 472 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 474 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
fPitch = Clamp (fPitch , 1.0f , 60.0f);
|
|
||||||
#line 475 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}
|
|
||||||
#line 477 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_vTarget = m_penEnemy -> GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 479 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fDesiredMuzzlePitch = fPitch ;
|
|
||||||
#line 480 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
STATE_CCannonRotating_RotateMuzzle, TRUE;
|
|
||||||
Jump(STATE_CURRENT, 0x01590015, FALSE, EBegin());return TRUE;}BOOL CCannonRotating::H0x01590015_FireCannon_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590015
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: Call(STATE_CURRENT, STATE_CCannonRotating_RotateMuzzle, TRUE, EVoid());return TRUE;case EVENTCODE_EReturn: Jump(STATE_CURRENT,0x01590016, FALSE, __eeInput); return TRUE;default: return FALSE; }}BOOL CCannonRotating::H0x01590016_FireCannon_02(const CEntityEvent &__eeInput){
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590016
|
|
||||||
const EReturn&__e= (EReturn&)__eeInput;
|
|
||||||
;
|
|
||||||
#line 482 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vShooting = GetPlacement () . pl_PositionVector + m_vFiringPos ;
|
|
||||||
#line 483 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vSpeedDest = FLOAT3D (0.0f , 0.0f , 0.0f);
|
|
||||||
#line 484 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT fLaunchSpeed ;
|
|
||||||
#line 485 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT fRelativeHdg ;
|
|
||||||
#line 488 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
EntityInfo * peiTarget = (EntityInfo *) (m_penEnemy -> GetEntityInfo ());
|
|
||||||
#line 489 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CalculateAngularLaunchParams (vShooting , peiTarget -> vTargetCenter [ 1 ] - 6.0f / 3.0f , m_vTarget ,
|
|
||||||
#line 490 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
vSpeedDest , m_fDesiredMuzzlePitch , fLaunchSpeed , fRelativeHdg );
|
|
||||||
#line 493 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT3D vShootTarget ;
|
|
||||||
#line 494 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
GetEntityInfoPosition (m_penEnemy , peiTarget -> vTargetCenter , vShootTarget );
|
|
||||||
#line 496 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CPlacement3D pl ;
|
|
||||||
#line 497 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
PrepareFreeFlyingProjectile (pl , vShootTarget , m_vFiringPos , ANGLE3D (fRelativeHdg , m_fDesiredMuzzlePitch , 0));
|
|
||||||
#line 498 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CEntityPointer penBall = CreateEntity (pl , CLASS_CANNONBALL );
|
|
||||||
#line 499 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
ELaunchCannonBall eLaunch ;
|
|
||||||
#line 500 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eLaunch . penLauncher = this ;
|
|
||||||
#line 501 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eLaunch . fLaunchPower = fLaunchSpeed ;
|
|
||||||
#line 502 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eLaunch . cbtType = CBT_IRON ;
|
|
||||||
#line 503 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
eLaunch . fSize = 1.0f;
|
|
||||||
#line 504 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
penBall -> Initialize (eLaunch );
|
|
||||||
#line 506 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_tmLastFireTime = _pTimer -> CurrentTick ();
|
|
||||||
#line 508 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 508 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCannonRotating::
|
|
||||||
#line 511 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Inactive(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonRotating_Inactive
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonRotating::Inactive expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 513 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fRotSpeedMuzzle = ANGLE3D (0.0f , 0.0f , 0.0f);
|
|
||||||
#line 514 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fRotSpeedRotator = ANGLE3D (0.0f , 0.0f , 0.0f);
|
|
||||||
#line 515 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x01590018, FALSE, EBegin());return TRUE;}BOOL CCannonRotating::H0x01590018_Inactive_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590018
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
||||||
return TRUE;}ASSERT(FALSE);break;case(EVENTCODE_EActivate):{const EActivate&e= (EActivate&)__eeInput;
|
|
||||||
|
|
||||||
#line 518 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCannonRotating_MainLoop, TRUE, EVoid());return TRUE;
|
|
||||||
#line 519 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EDeath):{const EDeath&eDeath= (EDeath&)__eeInput;
|
|
||||||
|
|
||||||
#line 521 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCannonRotating_Die, TRUE, eDeath );return TRUE;
|
|
||||||
#line 522 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}ASSERT(FALSE);break;default:{return TRUE;}ASSERT(FALSE);break;
|
|
||||||
#line 524 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
}return TRUE;}BOOL CCannonRotating::H0x01590019_Inactive_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590019
|
|
||||||
ASSERT(FALSE); return TRUE;};BOOL CCannonRotating::
|
|
||||||
#line 527 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonRotating_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonRotating::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 529 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
InitAsModel ();
|
|
||||||
#line 530 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_WALKING | EPF_HASLUNGS );
|
|
||||||
#line 531 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetCollisionFlags (ECF_MODEL );
|
|
||||||
#line 532 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetFlags (GetFlags () | ENF_ALIVE );
|
|
||||||
#line 533 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
en_fDensity = 2000.0f;
|
|
||||||
#line 536 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetModel (MODEL_TURRET );
|
|
||||||
#line 537 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetModelMainTexture (TEXTURE_TURRET );
|
|
||||||
#line 539 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
AddAttachment (TURRET_ATTACHMENT_ROTATORHEADING , MODEL_ROTATOR , TEXTURE_ROTATOR );
|
|
||||||
#line 540 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CModelObject & amo0 = GetModelObject () -> GetAttachmentModel (TURRET_ATTACHMENT_ROTATORHEADING ) -> amo_moModelObject ;
|
|
||||||
#line 541 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
AddAttachmentToModel (this , amo0 , ROTATINGMECHANISM_ATTACHMENT_CANNON , MODEL_CANNON , TEXTURE_CANNON , 0 , 0 , 0);
|
|
||||||
#line 544 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fWalkSpeed = 0.0f;
|
|
||||||
#line 545 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_aWalkRotateSpeed = 0.0f;
|
|
||||||
#line 546 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fAttackRunSpeed = 0.0f;
|
|
||||||
#line 547 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_aAttackRotateSpeed = 0.0f;
|
|
||||||
#line 548 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fCloseRunSpeed = 0.0f;
|
|
||||||
#line 549 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_aCloseRotateSpeed = 0.0f;
|
|
||||||
#line 551 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fStopDistance = 100.0f;
|
|
||||||
#line 553 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fBlowUpAmount = 100.0f;
|
|
||||||
#line 554 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fBodyParts = 4;
|
|
||||||
#line 555 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fDamageWounded = 0.0f;
|
|
||||||
#line 556 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_iScore = 1000;
|
|
||||||
#line 557 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_sptType = SPT_WOOD ;
|
|
||||||
#line 560 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(m_fHealth <= 0.0f){m_fHealth = 1.0f;}
|
|
||||||
#line 561 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
m_fCloseFireTime = m_fAttackFireTime = m_fWaitAfterFire ;
|
|
||||||
#line 562 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetHealth (m_fHealth );m_fMaxHealth = m_fHealth ;
|
|
||||||
#line 563 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(m_fFiringRangeFar < m_fFiringRangeClose ){m_fFiringRangeFar = m_fFiringRangeClose + 1.0f;}
|
|
||||||
#line 566 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
GetModelObject () -> StretchModel (FLOAT3D (m_fSize , m_fSize , m_fSize ));
|
|
||||||
#line 568 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
ModelChangeNotify ();
|
|
||||||
#line 569 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
StandingAnim ();
|
|
||||||
#line 573 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetTimerAfter(0.05f);
|
|
||||||
Jump(STATE_CURRENT, 0x0159001a, FALSE, EBegin());return TRUE;}BOOL CCannonRotating::H0x0159001a_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159001a
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x0159001b, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonRotating::H0x0159001b_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159001b
|
|
||||||
;
|
|
||||||
#line 574 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
SetDesiredTranslation (FLOAT3D (0.0f , 0.0f , 0.0f));
|
|
||||||
#line 575 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
UpdateFiringPos ();
|
|
||||||
#line 577 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
if(! m_bActive ){Jump(STATE_CURRENT, STATE_CCannonRotating_Inactive, TRUE, EVoid());return TRUE;}
|
|
||||||
#line 578 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCannonRotating_MainLoop, TRUE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,139 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_CannonRotating_INCLUDED
|
|
||||||
#define _EntitiesMP_CannonRotating_INCLUDED 1
|
|
||||||
#include <EntitiesMP/ModelHolder2.h>
|
|
||||||
#include <EntitiesMP/Projectile.h>
|
|
||||||
#include <EntitiesMP/SoundHolder.h>
|
|
||||||
#include <EntitiesMP/BloodSpray.h>
|
|
||||||
#include <EntitiesMP/CannonBall.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CCannonRotating_DLLClass;
|
|
||||||
class CCannonRotating : public CEnemyBase {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
FLOAT m_fHealth;
|
|
||||||
RANGE m_fFiringRangeClose;
|
|
||||||
RANGE m_fFiringRangeFar;
|
|
||||||
FLOAT m_fWaitAfterFire;
|
|
||||||
FLOAT m_fSize;
|
|
||||||
FLOAT m_fMaxPitch;
|
|
||||||
FLOAT m_fViewAngle;
|
|
||||||
FLOAT m_fScanAngle;
|
|
||||||
FLOAT m_fRotationSpeed;
|
|
||||||
BOOL m_bActive;
|
|
||||||
FLOAT3D m_fRotSpeedMuzzle;
|
|
||||||
FLOAT3D m_fRotSpeedRotator;
|
|
||||||
FLOAT m_fDistanceToPlayer;
|
|
||||||
FLOAT m_fDesiredMuzzlePitch;
|
|
||||||
FLOAT m_iMuzzleDir;
|
|
||||||
FLOAT3D m_vFiringPos;
|
|
||||||
FLOAT3D m_vTarget;
|
|
||||||
FLOAT m_tmLastFireTime;
|
|
||||||
FLOAT3D m_aBeginMuzzleRotation;
|
|
||||||
FLOAT3D m_aEndMuzzleRotation;
|
|
||||||
FLOAT3D m_aBeginRotatorRotation;
|
|
||||||
FLOAT3D m_aEndRotatorRotation;
|
|
||||||
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
virtual CTString GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath);
|
|
||||||
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void * GetEntityInfo(void);
|
|
||||||
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
virtual const CTFileName & GetComputerMessageName(void)const;
|
|
||||||
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection);
|
|
||||||
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
INDEX AnimForDamage(FLOAT fDamage);
|
|
||||||
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
INDEX AnimForDeath(void);
|
|
||||||
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
BOOL IsVisible(CEntity * penEntity);
|
|
||||||
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
BOOL IsInTheLineOfFire(CEntity * penEntity,FLOAT fAngle);
|
|
||||||
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
CPlayer * AcquireTarget();
|
|
||||||
|
|
||||||
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void CannonBlowUp(void);
|
|
||||||
|
|
||||||
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void PreMoving();
|
|
||||||
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void PostMoving();
|
|
||||||
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
BOOL AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient);
|
|
||||||
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void UpdateAttachmentRotations(void);
|
|
||||||
|
|
||||||
#line 298 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
void UpdateFiringPos();
|
|
||||||
#define STATE_CCannonRotating_MainLoop 0x01590000
|
|
||||||
BOOL
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
MainLoop(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590001_MainLoop_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590002_MainLoop_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonRotating_Scan 0x01590003
|
|
||||||
BOOL
|
|
||||||
#line 336 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Scan(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590004_Scan_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590005_Scan_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590006_Scan_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590007_Scan_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590008_Scan_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590009_Scan_06(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000a_Scan_07(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000b_Scan_08(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000c_Scan_09(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000d_Scan_10(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000e_Scan_11(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000f_Scan_12(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonRotating_Die 0x01590010
|
|
||||||
BOOL
|
|
||||||
#line 383 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Die(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonRotating_RotateMuzzle 0x01590011
|
|
||||||
BOOL
|
|
||||||
#line 429 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
RotateMuzzle(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590012_RotateMuzzle_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590013_RotateMuzzle_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonRotating_FireCannon 0x01590014
|
|
||||||
BOOL
|
|
||||||
#line 444 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FireCannon(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590015_FireCannon_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590016_FireCannon_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonRotating_Inactive 0x01590017
|
|
||||||
BOOL
|
|
||||||
#line 511 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Inactive(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590018_Inactive_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590019_Inactive_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonRotating_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 527 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159001a_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159001b_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_CannonRotating_INCLUDED
|
|
|
@ -1,125 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CCannonRotating
|
|
||||||
|
|
||||||
CEntityProperty CCannonRotating_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+1, offsetof(CCannonRotating, m_fHealth), "Cannon Health", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_RANGE, NULL, (0x00000159<<8)+2, offsetof(CCannonRotating, m_fFiringRangeClose), "Cannon Firing Close Range", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_RANGE, NULL, (0x00000159<<8)+3, offsetof(CCannonRotating, m_fFiringRangeFar), "Cannon Firing Far Range", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+4, offsetof(CCannonRotating, m_fWaitAfterFire), "Cannon Wait After Fire", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+5, offsetof(CCannonRotating, m_fSize), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+6, offsetof(CCannonRotating, m_fMaxPitch), "Cannon Max Pitch", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+7, offsetof(CCannonRotating, m_fViewAngle), "Cannon View Angle", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+8, offsetof(CCannonRotating, m_fScanAngle), "Cannon Scanning Angle", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+9, offsetof(CCannonRotating, m_fRotationSpeed), "Cannon Rotation Speed", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000159<<8)+10, offsetof(CCannonRotating, m_bActive), "Cannon Active", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+20, offsetof(CCannonRotating, m_fRotSpeedMuzzle), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+21, offsetof(CCannonRotating, m_fRotSpeedRotator), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+25, offsetof(CCannonRotating, m_fDistanceToPlayer), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+26, offsetof(CCannonRotating, m_fDesiredMuzzlePitch), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+27, offsetof(CCannonRotating, m_iMuzzleDir), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+28, offsetof(CCannonRotating, m_vFiringPos), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+29, offsetof(CCannonRotating, m_vTarget), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+30, offsetof(CCannonRotating, m_tmLastFireTime), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+40, offsetof(CCannonRotating, m_aBeginMuzzleRotation), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+41, offsetof(CCannonRotating, m_aEndMuzzleRotation), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+42, offsetof(CCannonRotating, m_aBeginRotatorRotation), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+43, offsetof(CCannonRotating, m_aEndRotatorRotation), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CCannonRotating_propertiesct ARRAYCOUNT(CCannonRotating_properties)
|
|
||||||
|
|
||||||
CEntityComponent CCannonRotating_components[] = {
|
|
||||||
#define CLASS_BASE ((0x00000159<<8)+1)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\EnemyBase.ecl"),
|
|
||||||
#define CLASS_BASIC_EFFECT ((0x00000159<<8)+2)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASIC_EFFECT, "EFNM" "Classes\\BasicEffect.ecl"),
|
|
||||||
#define CLASS_PROJECTILE ((0x00000159<<8)+3)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_PROJECTILE, "EFNM" "Classes\\Projectile.ecl"),
|
|
||||||
#define CLASS_CANNONBALL ((0x00000159<<8)+4)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_CANNONBALL, "EFNM" "Classes\\CannonBall.ecl"),
|
|
||||||
#define MODEL_TURRET ((0x00000159<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_TURRET, "EFNM" "ModelsMP\\Enemies\\CannonRotating\\Turret.mdl"),
|
|
||||||
#define MODEL_ROTATOR ((0x00000159<<8)+11)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_ROTATOR, "EFNM" "ModelsMP\\Enemies\\CannonRotating\\RotatingMechanism.mdl"),
|
|
||||||
#define MODEL_CANNON ((0x00000159<<8)+12)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CANNON, "EFNM" "ModelsMP\\Enemies\\CannonStatic\\Cannon.mdl"),
|
|
||||||
#define TEXTURE_TURRET ((0x00000159<<8)+20)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_TURRET, "EFNM" "ModelsMP\\Enemies\\CannonRotating\\Turret.tex"),
|
|
||||||
#define TEXTURE_ROTATOR ((0x00000159<<8)+21)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_ROTATOR, "EFNM" "ModelsMP\\Enemies\\CannonRotating\\RotatingMechanism.tex"),
|
|
||||||
#define TEXTURE_CANNON ((0x00000159<<8)+22)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_CANNON, "EFNM" "Models\\Weapons\\Cannon\\Body.tex"),
|
|
||||||
#define MODEL_DEBRIS_MUZZLE ((0x00000159<<8)+30)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_DEBRIS_MUZZLE, "EFNM" "ModelsMP\\Enemies\\CannonRotating\\Debris\\Cannon.mdl"),
|
|
||||||
#define MODEL_DEBRIS_ROTATOR ((0x00000159<<8)+31)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_DEBRIS_ROTATOR, "EFNM" "ModelsMP\\Enemies\\CannonRotating\\Debris\\RotatingMechanism.mdl"),
|
|
||||||
#define MODEL_DEBRIS_BASE ((0x00000159<<8)+32)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_DEBRIS_BASE, "EFNM" "ModelsMP\\Enemies\\CannonRotating\\Debris\\Turret.mdl"),
|
|
||||||
#define MODEL_BALL ((0x00000159<<8)+35)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BALL, "EFNM" "Models\\Weapons\\Cannon\\Projectile\\CannonBall.mdl"),
|
|
||||||
#define TEXTURE_BALL ((0x00000159<<8)+36)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BALL, "EFNM" "Models\\Weapons\\Cannon\\Projectile\\IronBall.tex"),
|
|
||||||
#define SOUND_FIRE ((0x00000159<<8)+50)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_FIRE, "EFNM" "ModelsMP\\Enemies\\CannonRotating\\Sounds\\Fire.wav"),
|
|
||||||
};
|
|
||||||
#define CCannonRotating_componentsct ARRAYCOUNT(CCannonRotating_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CCannonRotating_handlers[] = {
|
|
||||||
{0x01590000, -1, CEntity::pEventHandler(&CCannonRotating::
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
MainLoop),DEBUGSTRING("CCannonRotating::MainLoop")},
|
|
||||||
{0x01590001, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590001_MainLoop_01), DEBUGSTRING("CCannonRotating::H0x01590001_MainLoop_01")},
|
|
||||||
{0x01590002, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590002_MainLoop_02), DEBUGSTRING("CCannonRotating::H0x01590002_MainLoop_02")},
|
|
||||||
{0x01590003, -1, CEntity::pEventHandler(&CCannonRotating::
|
|
||||||
#line 336 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Scan),DEBUGSTRING("CCannonRotating::Scan")},
|
|
||||||
{0x01590004, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590004_Scan_01), DEBUGSTRING("CCannonRotating::H0x01590004_Scan_01")},
|
|
||||||
{0x01590005, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590005_Scan_02), DEBUGSTRING("CCannonRotating::H0x01590005_Scan_02")},
|
|
||||||
{0x01590006, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590006_Scan_03), DEBUGSTRING("CCannonRotating::H0x01590006_Scan_03")},
|
|
||||||
{0x01590007, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590007_Scan_04), DEBUGSTRING("CCannonRotating::H0x01590007_Scan_04")},
|
|
||||||
{0x01590008, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590008_Scan_05), DEBUGSTRING("CCannonRotating::H0x01590008_Scan_05")},
|
|
||||||
{0x01590009, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590009_Scan_06), DEBUGSTRING("CCannonRotating::H0x01590009_Scan_06")},
|
|
||||||
{0x0159000a, -1, CEntity::pEventHandler(&CCannonRotating::H0x0159000a_Scan_07), DEBUGSTRING("CCannonRotating::H0x0159000a_Scan_07")},
|
|
||||||
{0x0159000b, -1, CEntity::pEventHandler(&CCannonRotating::H0x0159000b_Scan_08), DEBUGSTRING("CCannonRotating::H0x0159000b_Scan_08")},
|
|
||||||
{0x0159000c, -1, CEntity::pEventHandler(&CCannonRotating::H0x0159000c_Scan_09), DEBUGSTRING("CCannonRotating::H0x0159000c_Scan_09")},
|
|
||||||
{0x0159000d, -1, CEntity::pEventHandler(&CCannonRotating::H0x0159000d_Scan_10), DEBUGSTRING("CCannonRotating::H0x0159000d_Scan_10")},
|
|
||||||
{0x0159000e, -1, CEntity::pEventHandler(&CCannonRotating::H0x0159000e_Scan_11), DEBUGSTRING("CCannonRotating::H0x0159000e_Scan_11")},
|
|
||||||
{0x0159000f, -1, CEntity::pEventHandler(&CCannonRotating::H0x0159000f_Scan_12), DEBUGSTRING("CCannonRotating::H0x0159000f_Scan_12")},
|
|
||||||
{0x01590010, -1, CEntity::pEventHandler(&CCannonRotating::
|
|
||||||
#line 383 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Die),DEBUGSTRING("CCannonRotating::Die")},
|
|
||||||
{0x01590011, -1, CEntity::pEventHandler(&CCannonRotating::
|
|
||||||
#line 429 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
RotateMuzzle),DEBUGSTRING("CCannonRotating::RotateMuzzle")},
|
|
||||||
{0x01590012, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590012_RotateMuzzle_01), DEBUGSTRING("CCannonRotating::H0x01590012_RotateMuzzle_01")},
|
|
||||||
{0x01590013, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590013_RotateMuzzle_02), DEBUGSTRING("CCannonRotating::H0x01590013_RotateMuzzle_02")},
|
|
||||||
{0x01590014, -1, CEntity::pEventHandler(&CCannonRotating::
|
|
||||||
#line 444 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
FireCannon),DEBUGSTRING("CCannonRotating::FireCannon")},
|
|
||||||
{0x01590015, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590015_FireCannon_01), DEBUGSTRING("CCannonRotating::H0x01590015_FireCannon_01")},
|
|
||||||
{0x01590016, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590016_FireCannon_02), DEBUGSTRING("CCannonRotating::H0x01590016_FireCannon_02")},
|
|
||||||
{0x01590017, -1, CEntity::pEventHandler(&CCannonRotating::
|
|
||||||
#line 511 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Inactive),DEBUGSTRING("CCannonRotating::Inactive")},
|
|
||||||
{0x01590018, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590018_Inactive_01), DEBUGSTRING("CCannonRotating::H0x01590018_Inactive_01")},
|
|
||||||
{0x01590019, -1, CEntity::pEventHandler(&CCannonRotating::H0x01590019_Inactive_02), DEBUGSTRING("CCannonRotating::H0x01590019_Inactive_02")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CCannonRotating::
|
|
||||||
#line 527 "D:/SE1_GPL/Sources/EntitiesMP/CannonRotating.es"
|
|
||||||
Main),DEBUGSTRING("CCannonRotating::Main")},
|
|
||||||
{0x0159001a, -1, CEntity::pEventHandler(&CCannonRotating::H0x0159001a_Main_01), DEBUGSTRING("CCannonRotating::H0x0159001a_Main_01")},
|
|
||||||
{0x0159001b, -1, CEntity::pEventHandler(&CCannonRotating::H0x0159001b_Main_02), DEBUGSTRING("CCannonRotating::H0x0159001b_Main_02")},
|
|
||||||
};
|
|
||||||
#define CCannonRotating_handlersct ARRAYCOUNT(CCannonRotating_handlers)
|
|
||||||
|
|
||||||
CEntity *CCannonRotating_New(void) { return new CCannonRotating; };
|
|
||||||
void CCannonRotating_OnInitClass(void) {};
|
|
||||||
void CCannonRotating_OnEndClass(void) {};
|
|
||||||
void CCannonRotating_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CCannonRotating_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CCannonRotating_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CCannonRotating_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CCannonRotating_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CCannonRotating, CEnemyBase, "CannonRotating", "Thumbnails\\CannonRotating.tbn", 0x00000159);
|
|
||||||
DECLARE_CTFILENAME(_fnmCCannonRotating_tbn, "Thumbnails\\CannonRotating.tbn");
|
|
|
@ -1,758 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "ModelsMP/Enemies/CannonStatic/Turret.h"
|
|
||||||
|
|
||||||
|
|
||||||
#include <EntitiesMP/CannonStatic.h>
|
|
||||||
#include <EntitiesMP/CannonStatic_tables.h>
|
|
||||||
#line 16 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
|
|
||||||
#define CANNONS_SIZE 2.0f
|
|
||||||
|
|
||||||
// info structure
|
|
||||||
static EntityInfo eiCannonStatic = {
|
|
||||||
EIBT_WOOD, 10000.0f,
|
|
||||||
0.0f, 1.5f*CANNONS_SIZE, 0.0f, // source (eyes)
|
|
||||||
0.0f, 0.5f*CANNONS_SIZE, 0.0f, // target (body)
|
|
||||||
};
|
|
||||||
|
|
||||||
#define FIRING_POSITION_MUZZLE FLOAT3D(0.0f, 0.4f, -1.0f)
|
|
||||||
#define MUZZLE_ROTATION_SPEED 45.0f //deg/sec
|
|
||||||
|
|
||||||
|
|
||||||
void CCannonStatic::SetDefaultProperties(void) {
|
|
||||||
m_fHealth = 100.0f;
|
|
||||||
m_fFiringRangeClose = 50.0f;
|
|
||||||
m_fFiringRangeFar = 150.0f;
|
|
||||||
m_fShootingPeriod = 5.0f;
|
|
||||||
m_fSize = CANNONS_SIZE ;
|
|
||||||
m_fMaxPitch = 20.0f;
|
|
||||||
m_fViewAngle = 2.5f;
|
|
||||||
m_bActive = TRUE ;
|
|
||||||
m_fRotSpeedMuzzle = ANGLE3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_fDistanceToPlayer = 0.0f;
|
|
||||||
m_fDesiredMuzzlePitch = 0.0f;
|
|
||||||
m_iMuzzleDir = 1;
|
|
||||||
m_vFiringPos = FLOAT3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_vTarget = FLOAT3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_aBeginMuzzleRotation = ANGLE3D(0.0f , 0.0f , 0.0f);
|
|
||||||
m_aEndMuzzleRotation = ANGLE3D(0.0f , 0.0f , 0.0f);
|
|
||||||
CEnemyBase::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
CTString CCannonStatic::GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath)
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
{
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CTString str ;
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
str . PrintF (TRANS ("A Cannon killed %s") , strPlayerName );
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return str ;
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void * CCannonStatic::GetEntityInfo(void) {
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return & eiCannonStatic ;
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
const CTFileName & CCannonStatic::GetComputerMessageName(void)const {
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
static DECLARE_CTFILENAME (fnmCannon , "DataMP\\Messages\\Enemies\\CannonStatic.txt");
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return fnmCannon ;
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void CCannonStatic::Precache(void) {
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CEnemyBase :: Precache ();
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
PrecacheModel (MODEL_DEBRIS_MUZZLE );
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
PrecacheModel (MODEL_DEBRIS_WHEEL );
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
PrecacheModel (MODEL_DEBRIS_WOOD );
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
PrecacheModel (MODEL_BALL );
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
PrecacheTexture (TEXTURE_BALL );
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
PrecacheSound (SOUND_FIRE );
|
|
||||||
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
PrecacheClass (CLASS_CANNONBALL );
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void CCannonStatic::ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection)
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
{
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(dmtType == DMT_BULLET && fDamageAmmount > 100.0f)
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
{
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
fDamageAmmount *= 0.5f;
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CEnemyBase :: ReceiveDamage (penInflictor , dmtType , fDamageAmmount ,
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
vHitPoint , vDirection );
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
INDEX CCannonStatic::AnimForDamage(FLOAT fDamage) {
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return 0;
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
INDEX CCannonStatic::AnimForDeath(void) {
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return 0;
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
BOOL CCannonStatic::IsVisible(CEntity * penEntity)
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
{
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
ASSERT (penEntity != NULL );
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vSource , vTarget ;
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
GetPositionCastRay (this , penEntity , vSource , vTarget );
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CCastRay crRay (this , vSource , vTarget );
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
crRay . cr_ttHitModels = CCastRay :: TT_NONE ;
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
crRay . cr_bHitTranslucentPortals = FALSE ;
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
en_pwoWorld -> CastRay (crRay );
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return (crRay . cr_penHit == NULL );
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
BOOL CCannonStatic::IsInTheLineOfFire(CEntity * penEntity,FLOAT fAngle)
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
{
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
ASSERT (penEntity != NULL );
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT fCosAngle ;
|
|
||||||
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vHeading ;
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vToPlayer ;
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vSide = FLOAT3D (1.0f , 0.0f , 0.0f) * GetRotationMatrix ();
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vFront = FLOAT3D (0.0f , 0.0f , - 1.0f) * GetRotationMatrix ();
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
vToPlayer = penEntity -> GetPlacement () . pl_PositionVector - GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
vToPlayer . Normalize ();
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
fCosAngle = vToPlayer % vSide ;
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(Abs (fCosAngle ) < CosFast (90.0f - fAngle )){
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if((vToPlayer % vFront ) > 0.0f){
|
|
||||||
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CPlayer * CCannonStatic::AcquireTarget() {
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
INDEX ctMaxPlayers = GetMaxPlayers ();
|
|
||||||
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CEntity * penPlayer ;
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
for(INDEX i = 0;i < ctMaxPlayers ;i ++){
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
penPlayer = GetPlayerEntity (i );
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(penPlayer != NULL && DistanceTo (this , penPlayer ) < m_fFiringRangeFar ){
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(IsInTheLineOfFire (penPlayer , m_fViewAngle )){
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(IsVisible (penPlayer )){
|
|
||||||
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return (CPlayer *) penPlayer ;
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return NULL ;
|
|
||||||
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void CCannonStatic::CannonBlowUp(void)
|
|
||||||
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
{
|
|
||||||
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vNormalizedDamage = m_vDamage - m_vDamage * (m_fBlowUpAmount / m_vDamage . Length ());
|
|
||||||
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
vNormalizedDamage /= Sqrt (vNormalizedDamage . Length ());
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
vNormalizedDamage *= 0.75f;
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
vNormalizedDamage += FLOAT3D (0.0f , 10.0f + FRnd () * 10.0f , 0.0f);
|
|
||||||
#line 207 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vBodySpeed = en_vCurrentTranslationAbsolute - en_vGravityDir * (en_vGravityDir % en_vCurrentTranslationAbsolute );
|
|
||||||
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Debris_Begin (EIBT_WOOD , DPT_NONE , BET_NONE , 1.0f , vNormalizedDamage , vBodySpeed , 5.0f , 2.0f);
|
|
||||||
#line 212 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_DEBRIS_MUZZLE , TEXTURE_CANNON , 0 , 0 , 0 , 0 , m_fSize ,
|
|
||||||
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_DEBRIS_WHEEL , TEXTURE_TURRET , 0 , 0 , 0 , 0 , m_fSize ,
|
|
||||||
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_DEBRIS_WHEEL , TEXTURE_TURRET , 0 , 0 , 0 , 0 , m_fSize ,
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 218 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_DEBRIS_WOOD , TEXTURE_TURRET , 0 , 0 , 0 , 0 , m_fSize ,
|
|
||||||
#line 219 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_DEBRIS_WOOD , TEXTURE_TURRET , 0 , 0 , 0 , 0 , m_fSize ,
|
|
||||||
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 222 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Debris_Spawn (this , this , MODEL_BALL , TEXTURE_BALL , 0 , 0 , 0 , 0 , m_fSize / 2.0f ,
|
|
||||||
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D (FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f , FRnd () * 0.6f + 0.2f));
|
|
||||||
#line 226 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CPlacement3D plExplosion = GetPlacement ();
|
|
||||||
#line 227 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CEntityPointer penExplosion = CreateEntity (plExplosion , CLASS_BASIC_EFFECT );
|
|
||||||
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
ESpawnEffect eSpawnEffect ;
|
|
||||||
#line 229 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eSpawnEffect . colMuliplier = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eSpawnEffect . betType = BET_CANNON ;
|
|
||||||
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT fSize = m_fBlowUpSize * 1.0f;
|
|
||||||
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eSpawnEffect . vStretch = FLOAT3D (fSize , fSize , fSize );
|
|
||||||
#line 233 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
penExplosion -> Initialize (eSpawnEffect );
|
|
||||||
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
plExplosion = GetPlacement ();
|
|
||||||
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
penExplosion = CreateEntity (plExplosion , CLASS_BASIC_EFFECT );
|
|
||||||
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eSpawnEffect . colMuliplier = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eSpawnEffect . betType = BET_CANNONSHOCKWAVE ;
|
|
||||||
#line 240 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
fSize = m_fBlowUpSize * 1.0f;
|
|
||||||
#line 241 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eSpawnEffect . vStretch = FLOAT3D (fSize , fSize , fSize );
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
penExplosion -> Initialize (eSpawnEffect );
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SwitchToEditorModel ();
|
|
||||||
#line 246 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 247 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 248 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void CCannonStatic::PreMoving() {
|
|
||||||
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
UpdateAttachmentRotations ();
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CEnemyBase :: PreMoving ();
|
|
||||||
#line 254 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void CCannonStatic::PostMoving() {
|
|
||||||
#line 257 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CEnemyBase :: PostMoving ();
|
|
||||||
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetFlags (GetFlags () & ~ ENF_INRENDERING );
|
|
||||||
#line 260 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
BOOL CCannonStatic::AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient) {
|
|
||||||
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CAttachmentModelObject & amo0 = * GetModelObject () -> GetAttachmentModel (TURRET_ATTACHMENT_CANNON );
|
|
||||||
#line 265 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
amo0 . amo_plRelative . pl_OrientationAngle = Lerp (m_aBeginMuzzleRotation , m_aEndMuzzleRotation , _pTimer -> GetLerpFactor ());
|
|
||||||
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return CEnemyBase :: AdjustShadingParameters (vLightDirection , colLight , colAmbient );
|
|
||||||
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void CCannonStatic::UpdateAttachmentRotations(void)
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
{
|
|
||||||
#line 272 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_aBeginMuzzleRotation = m_aEndMuzzleRotation ;
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_aEndMuzzleRotation += m_fRotSpeedMuzzle * _pTimer -> TickQuantum ;
|
|
||||||
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void CCannonStatic::UpdateFiringPos() {
|
|
||||||
#line 277 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOATmatrix3D m ;
|
|
||||||
#line 279 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_vFiringPos = FIRING_POSITION_MUZZLE * m_fSize ;
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
MakeRotationMatrixFast (m , m_aBeginMuzzleRotation );
|
|
||||||
#line 283 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_vFiringPos = m_vFiringPos * m ;
|
|
||||||
#line 286 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CAttachmentModelObject & amo0 = * GetModelObject () -> GetAttachmentModel (TURRET_ATTACHMENT_CANNON );
|
|
||||||
#line 287 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_vFiringPos += amo0 . amo_plRelative . pl_PositionVector ;
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
BOOL CCannonStatic::
|
|
||||||
#line 292 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
MainLoop(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonStatic_MainLoop
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonStatic::MainLoop expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 293 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x01590001, FALSE, EBegin());return TRUE;}BOOL CCannonStatic::H0x01590001_MainLoop_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590001
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
||||||
|
|
||||||
#line 295 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Call(STATE_CURRENT, STATE_CCannonStatic_WatchPlayers, TRUE, EVoid());return TRUE;
|
|
||||||
#line 296 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 297 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EDeactivate):{const EDeactivate&e= (EDeactivate&)__eeInput;
|
|
||||||
|
|
||||||
#line 299 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCannonStatic_Inactive, TRUE, EVoid());return TRUE;
|
|
||||||
#line 300 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EDeath):{const EDeath&eDeath= (EDeath&)__eeInput;
|
|
||||||
|
|
||||||
#line 302 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCannonStatic_Die, TRUE, eDeath );return TRUE;
|
|
||||||
#line 303 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}ASSERT(FALSE);break;default: return FALSE; break;
|
|
||||||
#line 304 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}return TRUE;}BOOL CCannonStatic::H0x01590002_MainLoop_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590002
|
|
||||||
;
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCannonStatic::
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Die(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonStatic_Die
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EDeath, "CCannonStatic::Die expects 'EDeath' as input!"); const EDeath &eDeath = (const EDeath &)__eeInput;
|
|
||||||
#line 311 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetFlags (GetFlags () & ~ ENF_ALIVE );
|
|
||||||
#line 314 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CEntityPointer penKiller = eDeath . eLastDamage . penInflictor ;
|
|
||||||
#line 315 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(penKiller == NULL || ! IsOfClass (penKiller , "Player")){
|
|
||||||
#line 316 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
penKiller = m_penEnemy ;
|
|
||||||
#line 317 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(penKiller == NULL || ! IsOfClass (penKiller , "Player")){
|
|
||||||
#line 320 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
penKiller = FixupCausedToPlayer (this , penKiller , FALSE );
|
|
||||||
#line 321 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 324 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(penKiller != NULL ){
|
|
||||||
#line 326 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
EReceiveScore eScore ;
|
|
||||||
#line 327 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eScore . iPoints = m_iScore ;
|
|
||||||
#line 328 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
penKiller -> SendEvent (eScore );
|
|
||||||
#line 329 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(CountAsKill ())
|
|
||||||
#line 330 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
{
|
|
||||||
#line 331 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
penKiller -> SendEvent (EKilledEnemy ());
|
|
||||||
#line 332 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 334 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
EComputerMessage eMsg ;
|
|
||||||
#line 335 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eMsg . fnmMessage = GetComputerMessageName ();
|
|
||||||
#line 336 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(eMsg . fnmMessage != ""){
|
|
||||||
#line 337 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
penKiller -> SendEvent (eMsg );
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 339 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 342 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SendToTarget (m_penDeathTarget , m_eetDeathType , penKiller );
|
|
||||||
#line 345 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(m_penSpawnerTarget ){
|
|
||||||
#line 346 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SendToTarget (m_penSpawnerTarget , EET_TRIGGER , this );
|
|
||||||
#line 347 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 350 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CannonBlowUp ();
|
|
||||||
#line 351 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 352 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 352 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCannonStatic::
|
|
||||||
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
RotateMuzzle(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonStatic_RotateMuzzle
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonStatic::RotateMuzzle expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 358 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT fDeltaP = m_fDesiredMuzzlePitch - m_aBeginMuzzleRotation (2);
|
|
||||||
#line 361 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(Abs (fDeltaP ) < 5.0f){Return(STATE_CURRENT,EReturn ());return TRUE;}
|
|
||||||
#line 363 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fRotSpeedMuzzle = ANGLE3D (0.0f , MUZZLE_ROTATION_SPEED * Sgn (fDeltaP ) , 0.0f);
|
|
||||||
#line 364 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetTimerAfter(Abs (fDeltaP / MUZZLE_ROTATION_SPEED ));
|
|
||||||
Jump(STATE_CURRENT, 0x01590005, FALSE, EBegin());return TRUE;}BOOL CCannonStatic::H0x01590005_RotateMuzzle_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590005
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01590006, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonStatic::H0x01590006_RotateMuzzle_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590006
|
|
||||||
;
|
|
||||||
#line 365 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fRotSpeedMuzzle = ANGLE3D (0.0f , 0.0f , 0.0f);
|
|
||||||
#line 366 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
UpdateFiringPos ();
|
|
||||||
#line 368 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 368 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCannonStatic::
|
|
||||||
#line 371 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FireCannon(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonStatic_FireCannon
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonStatic::FireCannon expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 373 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vToTarget = m_penEnemy -> GetPlacement () . pl_PositionVector -
|
|
||||||
#line 374 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
GetPlacement () . pl_PositionVector + m_vFiringPos ;
|
|
||||||
#line 375 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
vToTarget . Normalize ();
|
|
||||||
#line 378 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vCannonFront = FLOAT3D (0.0f , 0.0f , - 1.0f) * GetRotationMatrix ();
|
|
||||||
#line 379 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
ANGLE aToPlayer = ACos (vToTarget % vCannonFront );
|
|
||||||
#line 381 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT fPitch = aToPlayer + 5.0f;
|
|
||||||
#line 382 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vCannonUp = FLOAT3D (0.0 , 1.0f , 0.0f) * GetRotationMatrix ();
|
|
||||||
#line 385 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(m_fDistanceToPlayer > m_fFiringRangeFar ){
|
|
||||||
#line 386 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 386 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 388 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}else if(vToTarget % vCannonUp < 0.0f){
|
|
||||||
#line 389 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
fPitch = 5.0f;
|
|
||||||
#line 391 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}else if(m_fDistanceToPlayer > m_fFiringRangeClose ){
|
|
||||||
#line 392 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(aToPlayer < m_fMaxPitch ){
|
|
||||||
#line 393 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
fPitch = aToPlayer + m_fMaxPitch * (m_fDistanceToPlayer - m_fFiringRangeClose ) / (m_fFiringRangeFar - m_fFiringRangeClose );
|
|
||||||
#line 394 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}else if(TRUE ){
|
|
||||||
#line 395 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
fPitch = aToPlayer + 10.0f + m_fMaxPitch * (m_fDistanceToPlayer - m_fFiringRangeClose ) / (m_fFiringRangeFar - m_fFiringRangeClose );
|
|
||||||
#line 396 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 398 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
fPitch = Clamp (fPitch , 1.0f , 80.0f);
|
|
||||||
#line 399 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}
|
|
||||||
#line 401 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_vTarget = m_penEnemy -> GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 403 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fDesiredMuzzlePitch = fPitch ;
|
|
||||||
#line 404 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
STATE_CCannonStatic_RotateMuzzle, TRUE;
|
|
||||||
Jump(STATE_CURRENT, 0x01590008, FALSE, EBegin());return TRUE;}BOOL CCannonStatic::H0x01590008_FireCannon_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590008
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: Call(STATE_CURRENT, STATE_CCannonStatic_RotateMuzzle, TRUE, EVoid());return TRUE;case EVENTCODE_EReturn: Jump(STATE_CURRENT,0x01590009, FALSE, __eeInput); return TRUE;default: return FALSE; }}BOOL CCannonStatic::H0x01590009_FireCannon_02(const CEntityEvent &__eeInput){
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590009
|
|
||||||
const EReturn&__e= (EReturn&)__eeInput;
|
|
||||||
;
|
|
||||||
#line 406 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vShooting = GetPlacement () . pl_PositionVector + m_vFiringPos ;
|
|
||||||
#line 407 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vSpeedDest = FLOAT3D (0.0f , 0.0f , 0.0f);
|
|
||||||
#line 408 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT fLaunchSpeed ;
|
|
||||||
#line 409 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT fRelativeHdg ;
|
|
||||||
#line 412 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
EntityInfo * peiTarget = (EntityInfo *) (m_penEnemy -> GetEntityInfo ());
|
|
||||||
#line 413 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CalculateAngularLaunchParams (vShooting , peiTarget -> vTargetCenter [ 1 ] - 6.0f / 3.0f , m_vTarget ,
|
|
||||||
#line 414 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
vSpeedDest , m_fDesiredMuzzlePitch , fLaunchSpeed , fRelativeHdg );
|
|
||||||
#line 417 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT3D vShootTarget ;
|
|
||||||
#line 418 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
GetEntityInfoPosition (m_penEnemy , peiTarget -> vTargetCenter , vShootTarget );
|
|
||||||
#line 420 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CPlacement3D pl ;
|
|
||||||
#line 421 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
PrepareFreeFlyingProjectile (pl , vShootTarget , m_vFiringPos , ANGLE3D (fRelativeHdg , m_fDesiredMuzzlePitch , 0));
|
|
||||||
#line 422 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CEntityPointer penBall = CreateEntity (pl , CLASS_CANNONBALL );
|
|
||||||
#line 423 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
ELaunchCannonBall eLaunch ;
|
|
||||||
#line 424 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eLaunch . penLauncher = this ;
|
|
||||||
#line 425 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eLaunch . fLaunchPower = fLaunchSpeed ;
|
|
||||||
#line 426 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eLaunch . cbtType = CBT_IRON ;
|
|
||||||
#line 427 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
eLaunch . fSize = 1.0f;
|
|
||||||
#line 428 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
penBall -> Initialize (eLaunch );
|
|
||||||
#line 430 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 430 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCannonStatic::
|
|
||||||
#line 434 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
WatchPlayers(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonStatic_WatchPlayers
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonStatic::WatchPlayers expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 438 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Jump(STATE_CURRENT,0x01590013, FALSE, EInternal());return TRUE;}BOOL CCannonStatic::H0x01590013_WatchPlayers_09(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590013
|
|
||||||
if(!(TRUE )){ Jump(STATE_CURRENT,0x01590014, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 439 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetTimerAfter(0.20f);
|
|
||||||
Jump(STATE_CURRENT, 0x0159000b, FALSE, EBegin());return TRUE;}BOOL CCannonStatic::H0x0159000b_WatchPlayers_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000b
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x0159000c, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonStatic::H0x0159000c_WatchPlayers_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000c
|
|
||||||
;
|
|
||||||
#line 440 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CPlayer * pTarget = AcquireTarget ();
|
|
||||||
#line 441 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(!(pTarget )){ Jump(STATE_CURRENT,0x01590012, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 442 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(!((pTarget -> GetFlags () & ENF_ALIVE ) && ! (pTarget -> GetFlags () & ENF_DELETED ))){ Jump(STATE_CURRENT,0x01590011, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 443 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_penEnemy = pTarget ;
|
|
||||||
#line 444 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fDistanceToPlayer = DistanceTo (this , pTarget );
|
|
||||||
#line 445 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
STATE_CCannonStatic_FireCannon, TRUE;
|
|
||||||
Jump(STATE_CURRENT, 0x0159000d, FALSE, EBegin());return TRUE;}BOOL CCannonStatic::H0x0159000d_WatchPlayers_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000d
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: Call(STATE_CURRENT, STATE_CCannonStatic_FireCannon, TRUE, EVoid());return TRUE;case EVENTCODE_EReturn: Jump(STATE_CURRENT,0x0159000e, FALSE, __eeInput); return TRUE;default: return FALSE; }}BOOL CCannonStatic::H0x0159000e_WatchPlayers_04(const CEntityEvent &__eeInput){
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000e
|
|
||||||
const EReturn&__e= (EReturn&)__eeInput;
|
|
||||||
;
|
|
||||||
#line 446 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetTimerAfter(m_fShootingPeriod );
|
|
||||||
Jump(STATE_CURRENT, 0x0159000f, FALSE, EBegin());return TRUE;}BOOL CCannonStatic::H0x0159000f_WatchPlayers_05(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0159000f
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01590010, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonStatic::H0x01590010_WatchPlayers_06(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590010
|
|
||||||
;Jump(STATE_CURRENT,0x01590011, FALSE, EInternal());return TRUE;}BOOL CCannonStatic::H0x01590011_WatchPlayers_07(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590011
|
|
||||||
Jump(STATE_CURRENT,0x01590012, FALSE, EInternal());return TRUE;}BOOL CCannonStatic::H0x01590012_WatchPlayers_08(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590012
|
|
||||||
Jump(STATE_CURRENT,0x01590013, FALSE, EInternal());return TRUE;
|
|
||||||
#line 449 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}BOOL CCannonStatic::H0x01590014_WatchPlayers_10(const CEntityEvent &__eeInput) {
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590014
|
|
||||||
ASSERT(FALSE); return TRUE;};BOOL CCannonStatic::
|
|
||||||
#line 452 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Inactive(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonStatic_Inactive
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonStatic::Inactive expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 454 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fRotSpeedMuzzle = ANGLE3D (0.0f , 0.0f , 0.0f);
|
|
||||||
#line 455 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x01590016, FALSE, EBegin());return TRUE;}BOOL CCannonStatic::H0x01590016_Inactive_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590016
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
||||||
return TRUE;}ASSERT(FALSE);break;case(EVENTCODE_EActivate):{const EActivate&e= (EActivate&)__eeInput;
|
|
||||||
|
|
||||||
#line 458 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCannonStatic_MainLoop, TRUE, EVoid());return TRUE;
|
|
||||||
#line 459 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EDeath):{const EDeath&eDeath= (EDeath&)__eeInput;
|
|
||||||
|
|
||||||
#line 461 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCannonStatic_Die, TRUE, eDeath );return TRUE;
|
|
||||||
#line 462 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}ASSERT(FALSE);break;default:{return TRUE;}ASSERT(FALSE);break;
|
|
||||||
#line 464 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
}return TRUE;}BOOL CCannonStatic::H0x01590017_Inactive_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590017
|
|
||||||
ASSERT(FALSE); return TRUE;};BOOL CCannonStatic::
|
|
||||||
#line 467 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCannonStatic_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCannonStatic::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 469 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
InitAsModel ();
|
|
||||||
#line 470 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_WALKING | EPF_HASLUNGS );
|
|
||||||
#line 471 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetCollisionFlags (ECF_MODEL );
|
|
||||||
#line 472 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetFlags (GetFlags () | ENF_ALIVE );
|
|
||||||
#line 473 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
en_fDensity = 2000.0f;
|
|
||||||
#line 476 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetModel (MODEL_TURRET );
|
|
||||||
#line 477 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetModelMainTexture (TEXTURE_TURRET );
|
|
||||||
#line 479 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
AddAttachment (TURRET_ATTACHMENT_CANNON , MODEL_CANNON , TEXTURE_CANNON );
|
|
||||||
#line 481 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fWalkSpeed = 0.0f;
|
|
||||||
#line 482 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_aWalkRotateSpeed = 0.0f;
|
|
||||||
#line 483 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fAttackRunSpeed = 0.0f;
|
|
||||||
#line 484 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_aAttackRotateSpeed = 0.0f;
|
|
||||||
#line 485 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fCloseRunSpeed = 0.0f;
|
|
||||||
#line 486 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_aCloseRotateSpeed = 0.0f;
|
|
||||||
#line 488 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fStopDistance = 100.0f;
|
|
||||||
#line 490 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fBlowUpAmount = 100.0f;
|
|
||||||
#line 491 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fBodyParts = 4;
|
|
||||||
#line 492 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fDamageWounded = 0.0f;
|
|
||||||
#line 493 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_iScore = 750;
|
|
||||||
#line 494 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_sptType = SPT_WOOD ;
|
|
||||||
#line 497 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(m_fHealth <= 0.0f){m_fHealth = 1.0f;}
|
|
||||||
#line 498 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
m_fCloseFireTime = m_fAttackFireTime = m_fShootingPeriod ;
|
|
||||||
#line 499 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetHealth (m_fHealth );m_fMaxHealth = m_fHealth ;
|
|
||||||
#line 500 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(m_fFiringRangeFar < m_fFiringRangeClose ){m_fFiringRangeFar = m_fFiringRangeClose + 1.0f;}
|
|
||||||
#line 503 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
GetModelObject () -> StretchModel (FLOAT3D (m_fSize , m_fSize , m_fSize ));
|
|
||||||
#line 505 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
ModelChangeNotify ();
|
|
||||||
#line 506 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
StandingAnim ();
|
|
||||||
#line 510 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetTimerAfter(0.05f);
|
|
||||||
Jump(STATE_CURRENT, 0x01590018, FALSE, EBegin());return TRUE;}BOOL CCannonStatic::H0x01590018_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590018
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01590019, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCannonStatic::H0x01590019_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01590019
|
|
||||||
;
|
|
||||||
#line 511 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
SetDesiredTranslation (FLOAT3D (0.0f , 0.0f , 0.0f));
|
|
||||||
#line 512 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
UpdateFiringPos ();
|
|
||||||
#line 514 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
if(! m_bActive ){Jump(STATE_CURRENT, STATE_CCannonStatic_Inactive, TRUE, EVoid());return TRUE;}
|
|
||||||
#line 515 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCannonStatic_MainLoop, TRUE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,131 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_CannonStatic_INCLUDED
|
|
||||||
#define _EntitiesMP_CannonStatic_INCLUDED 1
|
|
||||||
#include <EntitiesMP/ModelHolder2.h>
|
|
||||||
#include <EntitiesMP/Projectile.h>
|
|
||||||
#include <EntitiesMP/SoundHolder.h>
|
|
||||||
#include <EntitiesMP/BloodSpray.h>
|
|
||||||
#include <EntitiesMP/CannonBall.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CCannonStatic_DLLClass;
|
|
||||||
class CCannonStatic : public CEnemyBase {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
FLOAT m_fHealth;
|
|
||||||
RANGE m_fFiringRangeClose;
|
|
||||||
RANGE m_fFiringRangeFar;
|
|
||||||
FLOAT m_fShootingPeriod;
|
|
||||||
FLOAT m_fSize;
|
|
||||||
FLOAT m_fMaxPitch;
|
|
||||||
FLOAT m_fViewAngle;
|
|
||||||
BOOL m_bActive;
|
|
||||||
FLOAT3D m_fRotSpeedMuzzle;
|
|
||||||
FLOAT m_fDistanceToPlayer;
|
|
||||||
FLOAT m_fDesiredMuzzlePitch;
|
|
||||||
INDEX m_iMuzzleDir;
|
|
||||||
FLOAT3D m_vFiringPos;
|
|
||||||
FLOAT3D m_vTarget;
|
|
||||||
FLOAT3D m_aBeginMuzzleRotation;
|
|
||||||
FLOAT3D m_aEndMuzzleRotation;
|
|
||||||
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
virtual CTString GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath);
|
|
||||||
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void * GetEntityInfo(void);
|
|
||||||
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
virtual const CTFileName & GetComputerMessageName(void)const;
|
|
||||||
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection);
|
|
||||||
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
INDEX AnimForDamage(FLOAT fDamage);
|
|
||||||
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
INDEX AnimForDeath(void);
|
|
||||||
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
BOOL IsVisible(CEntity * penEntity);
|
|
||||||
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
BOOL IsInTheLineOfFire(CEntity * penEntity,FLOAT fAngle);
|
|
||||||
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
CPlayer * AcquireTarget();
|
|
||||||
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void CannonBlowUp(void);
|
|
||||||
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void PreMoving();
|
|
||||||
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void PostMoving();
|
|
||||||
|
|
||||||
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
BOOL AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient);
|
|
||||||
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void UpdateAttachmentRotations(void);
|
|
||||||
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
void UpdateFiringPos();
|
|
||||||
#define STATE_CCannonStatic_MainLoop 0x01590000
|
|
||||||
BOOL
|
|
||||||
#line 292 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
MainLoop(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590001_MainLoop_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590002_MainLoop_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonStatic_Die 0x01590003
|
|
||||||
BOOL
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Die(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonStatic_RotateMuzzle 0x01590004
|
|
||||||
BOOL
|
|
||||||
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
RotateMuzzle(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590005_RotateMuzzle_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590006_RotateMuzzle_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonStatic_FireCannon 0x01590007
|
|
||||||
BOOL
|
|
||||||
#line 371 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FireCannon(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590008_FireCannon_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590009_FireCannon_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonStatic_WatchPlayers 0x0159000a
|
|
||||||
BOOL
|
|
||||||
#line 434 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
WatchPlayers(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000b_WatchPlayers_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000c_WatchPlayers_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000d_WatchPlayers_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000e_WatchPlayers_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0159000f_WatchPlayers_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590010_WatchPlayers_06(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590011_WatchPlayers_07(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590012_WatchPlayers_08(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590013_WatchPlayers_09(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590014_WatchPlayers_10(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonStatic_Inactive 0x01590015
|
|
||||||
BOOL
|
|
||||||
#line 452 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Inactive(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590016_Inactive_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590017_Inactive_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCannonStatic_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 467 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590018_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01590019_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_CannonStatic_INCLUDED
|
|
|
@ -1,113 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CCannonStatic
|
|
||||||
|
|
||||||
CEntityProperty CCannonStatic_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+1, offsetof(CCannonStatic, m_fHealth), "Cannon Health", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_RANGE, NULL, (0x00000159<<8)+2, offsetof(CCannonStatic, m_fFiringRangeClose), "Cannon Firing Close Range", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_RANGE, NULL, (0x00000159<<8)+3, offsetof(CCannonStatic, m_fFiringRangeFar), "Cannon Firing Far Range", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+4, offsetof(CCannonStatic, m_fShootingPeriod), "Cannon Shooting Period", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+5, offsetof(CCannonStatic, m_fSize), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+6, offsetof(CCannonStatic, m_fMaxPitch), "Cannon Max Pitch", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+7, offsetof(CCannonStatic, m_fViewAngle), "Cannon View Angle", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000159<<8)+8, offsetof(CCannonStatic, m_bActive), "Cannon Active", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+20, offsetof(CCannonStatic, m_fRotSpeedMuzzle), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+25, offsetof(CCannonStatic, m_fDistanceToPlayer), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000159<<8)+26, offsetof(CCannonStatic, m_fDesiredMuzzlePitch), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000159<<8)+27, offsetof(CCannonStatic, m_iMuzzleDir), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+28, offsetof(CCannonStatic, m_vFiringPos), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+29, offsetof(CCannonStatic, m_vTarget), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+40, offsetof(CCannonStatic, m_aBeginMuzzleRotation), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT3D, NULL, (0x00000159<<8)+41, offsetof(CCannonStatic, m_aEndMuzzleRotation), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CCannonStatic_propertiesct ARRAYCOUNT(CCannonStatic_properties)
|
|
||||||
|
|
||||||
CEntityComponent CCannonStatic_components[] = {
|
|
||||||
#define CLASS_BASE ((0x00000159<<8)+1)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\EnemyBase.ecl"),
|
|
||||||
#define CLASS_BASIC_EFFECT ((0x00000159<<8)+2)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASIC_EFFECT, "EFNM" "Classes\\BasicEffect.ecl"),
|
|
||||||
#define CLASS_PROJECTILE ((0x00000159<<8)+3)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_PROJECTILE, "EFNM" "Classes\\Projectile.ecl"),
|
|
||||||
#define CLASS_CANNONBALL ((0x00000159<<8)+4)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_CANNONBALL, "EFNM" "Classes\\CannonBall.ecl"),
|
|
||||||
#define MODEL_TURRET ((0x00000159<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_TURRET, "EFNM" "ModelsMP\\Enemies\\CannonStatic\\Turret.mdl"),
|
|
||||||
#define MODEL_CANNON ((0x00000159<<8)+11)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CANNON, "EFNM" "ModelsMP\\Enemies\\CannonStatic\\Cannon.mdl"),
|
|
||||||
#define TEXTURE_TURRET ((0x00000159<<8)+20)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_TURRET, "EFNM" "ModelsMP\\Enemies\\CannonStatic\\Turret.tex"),
|
|
||||||
#define TEXTURE_CANNON ((0x00000159<<8)+21)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_CANNON, "EFNM" "Models\\Weapons\\Cannon\\Body.tex"),
|
|
||||||
#define MODEL_DEBRIS_MUZZLE ((0x00000159<<8)+30)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_DEBRIS_MUZZLE, "EFNM" "ModelsMP\\Enemies\\CannonStatic\\Debris\\Cannon.mdl"),
|
|
||||||
#define MODEL_DEBRIS_WHEEL ((0x00000159<<8)+31)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_DEBRIS_WHEEL, "EFNM" "ModelsMP\\Enemies\\CannonStatic\\Debris\\Wheel.mdl"),
|
|
||||||
#define MODEL_DEBRIS_WOOD ((0x00000159<<8)+32)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_DEBRIS_WOOD, "EFNM" "ModelsMP\\Enemies\\CannonStatic\\Debris\\Wood.mdl"),
|
|
||||||
#define MODEL_BALL ((0x00000159<<8)+35)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_BALL, "EFNM" "Models\\Weapons\\Cannon\\Projectile\\CannonBall.mdl"),
|
|
||||||
#define TEXTURE_BALL ((0x00000159<<8)+36)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BALL, "EFNM" "Models\\Weapons\\Cannon\\Projectile\\IronBall.tex"),
|
|
||||||
#define SOUND_FIRE ((0x00000159<<8)+50)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_FIRE, "EFNM" "ModelsMP\\Enemies\\CannonStatic\\Sounds\\Fire.wav"),
|
|
||||||
};
|
|
||||||
#define CCannonStatic_componentsct ARRAYCOUNT(CCannonStatic_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CCannonStatic_handlers[] = {
|
|
||||||
{0x01590000, -1, CEntity::pEventHandler(&CCannonStatic::
|
|
||||||
#line 292 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
MainLoop),DEBUGSTRING("CCannonStatic::MainLoop")},
|
|
||||||
{0x01590001, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590001_MainLoop_01), DEBUGSTRING("CCannonStatic::H0x01590001_MainLoop_01")},
|
|
||||||
{0x01590002, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590002_MainLoop_02), DEBUGSTRING("CCannonStatic::H0x01590002_MainLoop_02")},
|
|
||||||
{0x01590003, -1, CEntity::pEventHandler(&CCannonStatic::
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Die),DEBUGSTRING("CCannonStatic::Die")},
|
|
||||||
{0x01590004, -1, CEntity::pEventHandler(&CCannonStatic::
|
|
||||||
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
RotateMuzzle),DEBUGSTRING("CCannonStatic::RotateMuzzle")},
|
|
||||||
{0x01590005, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590005_RotateMuzzle_01), DEBUGSTRING("CCannonStatic::H0x01590005_RotateMuzzle_01")},
|
|
||||||
{0x01590006, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590006_RotateMuzzle_02), DEBUGSTRING("CCannonStatic::H0x01590006_RotateMuzzle_02")},
|
|
||||||
{0x01590007, -1, CEntity::pEventHandler(&CCannonStatic::
|
|
||||||
#line 371 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
FireCannon),DEBUGSTRING("CCannonStatic::FireCannon")},
|
|
||||||
{0x01590008, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590008_FireCannon_01), DEBUGSTRING("CCannonStatic::H0x01590008_FireCannon_01")},
|
|
||||||
{0x01590009, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590009_FireCannon_02), DEBUGSTRING("CCannonStatic::H0x01590009_FireCannon_02")},
|
|
||||||
{0x0159000a, -1, CEntity::pEventHandler(&CCannonStatic::
|
|
||||||
#line 434 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
WatchPlayers),DEBUGSTRING("CCannonStatic::WatchPlayers")},
|
|
||||||
{0x0159000b, -1, CEntity::pEventHandler(&CCannonStatic::H0x0159000b_WatchPlayers_01), DEBUGSTRING("CCannonStatic::H0x0159000b_WatchPlayers_01")},
|
|
||||||
{0x0159000c, -1, CEntity::pEventHandler(&CCannonStatic::H0x0159000c_WatchPlayers_02), DEBUGSTRING("CCannonStatic::H0x0159000c_WatchPlayers_02")},
|
|
||||||
{0x0159000d, -1, CEntity::pEventHandler(&CCannonStatic::H0x0159000d_WatchPlayers_03), DEBUGSTRING("CCannonStatic::H0x0159000d_WatchPlayers_03")},
|
|
||||||
{0x0159000e, -1, CEntity::pEventHandler(&CCannonStatic::H0x0159000e_WatchPlayers_04), DEBUGSTRING("CCannonStatic::H0x0159000e_WatchPlayers_04")},
|
|
||||||
{0x0159000f, -1, CEntity::pEventHandler(&CCannonStatic::H0x0159000f_WatchPlayers_05), DEBUGSTRING("CCannonStatic::H0x0159000f_WatchPlayers_05")},
|
|
||||||
{0x01590010, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590010_WatchPlayers_06), DEBUGSTRING("CCannonStatic::H0x01590010_WatchPlayers_06")},
|
|
||||||
{0x01590011, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590011_WatchPlayers_07), DEBUGSTRING("CCannonStatic::H0x01590011_WatchPlayers_07")},
|
|
||||||
{0x01590012, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590012_WatchPlayers_08), DEBUGSTRING("CCannonStatic::H0x01590012_WatchPlayers_08")},
|
|
||||||
{0x01590013, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590013_WatchPlayers_09), DEBUGSTRING("CCannonStatic::H0x01590013_WatchPlayers_09")},
|
|
||||||
{0x01590014, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590014_WatchPlayers_10), DEBUGSTRING("CCannonStatic::H0x01590014_WatchPlayers_10")},
|
|
||||||
{0x01590015, -1, CEntity::pEventHandler(&CCannonStatic::
|
|
||||||
#line 452 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Inactive),DEBUGSTRING("CCannonStatic::Inactive")},
|
|
||||||
{0x01590016, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590016_Inactive_01), DEBUGSTRING("CCannonStatic::H0x01590016_Inactive_01")},
|
|
||||||
{0x01590017, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590017_Inactive_02), DEBUGSTRING("CCannonStatic::H0x01590017_Inactive_02")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CCannonStatic::
|
|
||||||
#line 467 "D:/SE1_GPL/Sources/EntitiesMP/CannonStatic.es"
|
|
||||||
Main),DEBUGSTRING("CCannonStatic::Main")},
|
|
||||||
{0x01590018, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590018_Main_01), DEBUGSTRING("CCannonStatic::H0x01590018_Main_01")},
|
|
||||||
{0x01590019, -1, CEntity::pEventHandler(&CCannonStatic::H0x01590019_Main_02), DEBUGSTRING("CCannonStatic::H0x01590019_Main_02")},
|
|
||||||
};
|
|
||||||
#define CCannonStatic_handlersct ARRAYCOUNT(CCannonStatic_handlers)
|
|
||||||
|
|
||||||
CEntity *CCannonStatic_New(void) { return new CCannonStatic; };
|
|
||||||
void CCannonStatic_OnInitClass(void) {};
|
|
||||||
void CCannonStatic_OnEndClass(void) {};
|
|
||||||
void CCannonStatic_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CCannonStatic_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CCannonStatic_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CCannonStatic_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CCannonStatic_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CCannonStatic, CEnemyBase, "CannonStatic", "Thumbnails\\CannonStatic.tbn", 0x00000159);
|
|
||||||
DECLARE_CTFILENAME(_fnmCCannonStatic_tbn, "Thumbnails\\CannonStatic.tbn");
|
|
|
@ -1,631 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "ModelsMP/Enemies/ChainSawFreak/Freak.h"
|
|
||||||
#include "ModelsMP/Enemies/ChainSawFreak/Saw.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/ChainsawFreak.h>
|
|
||||||
#include <EntitiesMP/ChainsawFreak_tables.h>
|
|
||||||
#line 13 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
|
|
||||||
#define FREAK_SIZE 1.05f
|
|
||||||
|
|
||||||
// info structure
|
|
||||||
static EntityInfo eiChainsawFreak = {
|
|
||||||
EIBT_FLESH, 350.0f,
|
|
||||||
0.0f, 2.5f*FREAK_SIZE, 0.0f, // source (eyes)
|
|
||||||
0.0f, 1.5f*FREAK_SIZE, 0.0f, // target (body)
|
|
||||||
};
|
|
||||||
|
|
||||||
#define HIT_DISTANCE 4.0f
|
|
||||||
|
|
||||||
void CChainsawFreak::SetDefaultProperties(void) {
|
|
||||||
m_bRunAttack = FALSE ;
|
|
||||||
m_bSawHit = FALSE ;
|
|
||||||
m_penLastTouched = NULL;
|
|
||||||
m_soFeet.SetOwner(this);
|
|
||||||
m_soFeet.Stop_internal();
|
|
||||||
m_bRunSoundPlaying = FALSE ;
|
|
||||||
m_iRunType = 0;
|
|
||||||
m_bAttacking = FALSE ;
|
|
||||||
m_fSightSoundBegin = 0.0f;
|
|
||||||
CEnemyRunInto::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
CTString CChainsawFreak::GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath)
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
CTString str ;
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
str . PrintF (TRANS ("Chainsaw freak dismembered %s") , strPlayerName );
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return str ;
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::Precache(void) {
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
CEnemyBase :: Precache ();
|
|
||||||
#line 70 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PrecacheSound (SOUND_IDLE );
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PrecacheSound (SOUND_RUN );
|
|
||||||
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PrecacheSound (SOUND_ATTACK );
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PrecacheSound (SOUND_WOUND );
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PrecacheSound (SOUND_DEATH );
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PrecacheSound (SOUND_SIGHT );
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void * CChainsawFreak::GetEntityInfo(void) {
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return & eiChainsawFreak ;
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT CChainsawFreak::GetCrushHealth(void)
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return 60.0f;
|
|
||||||
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
const CTFileName & CChainsawFreak::GetComputerMessageName(void)const {
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
static DECLARE_CTFILENAME (fnm , "DataMP\\Messages\\Enemies\\ChainsawFreak.txt");
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return fnm ;
|
|
||||||
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection)
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(! IsOfClass (penInflictor , "ChainsawFreak")){
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
CEnemyBase :: ReceiveDamage (penInflictor , dmtType , fDamageAmmount , vHitPoint , vDirection );
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::AdjustDifficulty(void)
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
INDEX CChainsawFreak::AnimForDeath(void) {
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
INDEX iAnim ;
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(en_vCurrentTranslationAbsolute . Length () > 5.0f){
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
iAnim = FREAK_ANIM_DEATHRUN ;
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}else {
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
iAnim = FREAK_ANIM_DEATHSTAND ;
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
ChangeCollisionBoxIndexWhenPossible (FREAK_COLLISION_BOX_DEATHRUN );
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (iAnim , 0);
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_bAttacking = FALSE ;
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
DeactivateRunningSound ();
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return iAnim ;
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT CChainsawFreak::WaitForDust(FLOAT3D & vStretch) {
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(GetModelObject () -> GetAnim () == FREAK_ANIM_DEATHRUN )
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vStretch = FLOAT3D (1 , 1 , 2) * 1.0f;
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return 0.65f;
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
else if(GetModelObject () -> GetAnim () == FREAK_ANIM_DEATHSTAND )
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vStretch = FLOAT3D (1 , 1 , 2) * 1.5f;
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return 0.72f;
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return - 1.0f;
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::DeathNotify() {
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
ChangeCollisionBoxIndexWhenPossible (FREAK_COLLISION_BOX_DEATH );
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetCollisionFlags (ECF_MODEL );
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::StandingAnim(void) {
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (FREAK_ANIM_IDLE , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::WalkingAnim(void) {
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (FREAK_ANIM_WALK , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::RunningAnim(void) {
|
|
||||||
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
switch(m_iRunType )
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
case 0:
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (FREAK_ANIM_ATTACKRUN , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
break ;
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
case 1:
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (FREAK_ANIM_ATTACKRUNFAR , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
break ;
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
case 2:
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (FREAK_ANIM_ATTACKCHARGE , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
break ;
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
default :
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
ASSERTALWAYS ("Unknown Chainsaw freak run type!");
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::ChargeAnim(void) {
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (FREAK_ANIM_RUNSLASHING , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::RotatingAnim(void) {
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_iRunType = IRnd () % 3;
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (FREAK_ANIM_ATTACKSTART , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::IdleSound(void) {
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PlaySound (m_soSound , SOUND_IDLE , SOF_3D );
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::WoundSound(void) {
|
|
||||||
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PlaySound (m_soSound , SOUND_WOUND , SOF_3D );
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::DeathSound(void) {
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PlaySound (m_soSound , SOUND_DEATH , SOF_3D );
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 198 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::ActivateRunningSound(void)
|
|
||||||
#line 199 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(! m_bRunSoundPlaying ){
|
|
||||||
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PlaySound (m_soFeet , SOUND_RUN , SOF_3D | SOF_LOOP );
|
|
||||||
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_bRunSoundPlaying = TRUE ;
|
|
||||||
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::DeactivateRunningSound(void)
|
|
||||||
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 207 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_soFeet . Stop ();
|
|
||||||
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_bRunSoundPlaying = FALSE ;
|
|
||||||
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::LiveEntityTouched(ETouch etouch) {
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(m_penLastTouched != etouch . penOther || _pTimer -> CurrentTick () >= m_fLastTouchedTime + 0.25f){
|
|
||||||
#line 219 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT3D vDirection = en_vCurrentTranslationAbsolute ;
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vDirection . Normalize ();
|
|
||||||
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
ANGLE aHitAngle = FLOAT3D (etouch . plCollision ) % vDirection ;
|
|
||||||
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(aHitAngle < 0.0f){
|
|
||||||
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(! IsOfSameClass (this , etouch . penOther )){
|
|
||||||
#line 226 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
IncreaseKickedMass (etouch . penOther );
|
|
||||||
#line 227 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PlaySound (m_soSound , SOUND_ATTACK , SOF_3D );
|
|
||||||
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_penLastTouched = etouch . penOther ;
|
|
||||||
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fLastTouchedTime = _pTimer -> CurrentTick ();
|
|
||||||
#line 233 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT3D vDirection = m_penEnemy -> GetPlacement () . pl_PositionVector - GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 234 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vDirection . Normalize ();
|
|
||||||
#line 235 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
InflictDirectDamage (etouch . penOther , this , DMT_CHAINSAW , - aHitAngle * 40.0f ,
|
|
||||||
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT3D (0 , 0 , 0) , vDirection );
|
|
||||||
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT3D vSpeed = - FLOAT3D (etouch . plCollision );
|
|
||||||
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vSpeed = vSpeed * 10.0f;
|
|
||||||
#line 240 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
const FLOATmatrix3D & m = GetRotationMatrix ();
|
|
||||||
#line 241 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT3D vSpeedRel = vSpeed * ! m ;
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(vSpeedRel (1) < - 0.1f){
|
|
||||||
#line 243 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vSpeedRel (1) -= 5.0f;
|
|
||||||
#line 244 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}else {
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vSpeedRel (1) += 5.0f;
|
|
||||||
#line 246 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 247 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vSpeedRel (2) = 5.0f;
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vSpeed = vSpeedRel * m ;
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
KickEntity (etouch . penOther , vSpeed );
|
|
||||||
#line 251 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
BOOL CChainsawFreak::HigherMass(void) {
|
|
||||||
#line 257 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return (m_fMassKicked > 500.0f);
|
|
||||||
#line 258 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::EnemyPostInit(void)
|
|
||||||
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 264 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_soFeet . Set3DParameters (500.0f , 50.0f , 1.0f , 1.0f);
|
|
||||||
#line 265 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_bRunSoundPlaying = FALSE ;
|
|
||||||
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_soSound . Set3DParameters (160.0f , 50.0f , 1.0f , 1.0f);
|
|
||||||
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void CChainsawFreak::PreMoving() {
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(! m_bRunSoundPlaying && _pTimer -> CurrentTick () > m_fSightSoundBegin + 2.0f && m_bAttacking )
|
|
||||||
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
{
|
|
||||||
#line 272 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
ActivateRunningSound ();
|
|
||||||
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
CEnemyBase :: PreMoving ();
|
|
||||||
#line 275 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
BOOL CChainsawFreak::
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Hit(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CChainsawFreak_Hit
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CChainsawFreak::Hit expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 283 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(!(CalcDist (m_penEnemy ) < HIT_DISTANCE )){ Jump(STATE_CURRENT,0x01560009, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (FREAK_ANIM_ATTACKSLASH , 0);
|
|
||||||
#line 287 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT3D vDir = (m_penEnemy -> GetPlacement () . pl_PositionVector -
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
GetPlacement () . pl_PositionVector ) . Normalize ();
|
|
||||||
#line 289 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vDir *= ! GetRotationMatrix ();
|
|
||||||
#line 290 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vDir *= m_fCloseRunSpeed * 1.5f;
|
|
||||||
#line 291 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vDir (2) = 1.0f;
|
|
||||||
#line 293 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
GiveImpulseTranslationRelative (vDir );
|
|
||||||
#line 296 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_bSawHit = FALSE ;
|
|
||||||
#line 297 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetTimerAfter(0.4f);
|
|
||||||
Jump(STATE_CURRENT, 0x01560001, FALSE, EBegin());return TRUE;}BOOL CChainsawFreak::H0x01560001_Hit_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01560001
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01560002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CChainsawFreak::H0x01560002_Hit_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01560002
|
|
||||||
;
|
|
||||||
#line 298 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PlaySound (m_soSound , SOUND_ATTACK , SOF_3D );
|
|
||||||
#line 299 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(CalcDist (m_penEnemy ) < HIT_DISTANCE ){m_bSawHit = TRUE ;}
|
|
||||||
#line 300 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetTimerAfter(0.1f);
|
|
||||||
Jump(STATE_CURRENT, 0x01560003, FALSE, EBegin());return TRUE;}BOOL CChainsawFreak::H0x01560003_Hit_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01560003
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01560004, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CChainsawFreak::H0x01560004_Hit_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01560004
|
|
||||||
;
|
|
||||||
#line 301 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(CalcDist (m_penEnemy ) < HIT_DISTANCE ){m_bSawHit = TRUE ;}
|
|
||||||
#line 302 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetTimerAfter(0.1f);
|
|
||||||
Jump(STATE_CURRENT, 0x01560005, FALSE, EBegin());return TRUE;}BOOL CChainsawFreak::H0x01560005_Hit_05(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01560005
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01560006, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CChainsawFreak::H0x01560006_Hit_06(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01560006
|
|
||||||
;
|
|
||||||
#line 303 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(CalcDist (m_penEnemy ) < HIT_DISTANCE ){m_bSawHit = TRUE ;}
|
|
||||||
#line 304 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(m_bSawHit ){
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT3D vDirection = m_penEnemy -> GetPlacement () . pl_PositionVector - GetPlacement () . pl_PositionVector ;
|
|
||||||
#line 306 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vDirection . Normalize ();
|
|
||||||
#line 307 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
InflictDirectDamage (m_penEnemy , this , DMT_CHAINSAW , 20.0f , FLOAT3D (0 , 0 , 0) , vDirection );
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vDirection = vDirection * 10.0f;
|
|
||||||
#line 311 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOATmatrix3D mDirection ;
|
|
||||||
#line 312 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
MakeRotationMatrixFast (mDirection , ANGLE3D (0.0f , 30.0f , 0.0f));
|
|
||||||
#line 313 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
vDirection = vDirection * mDirection ;
|
|
||||||
#line 314 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
KickEntity (m_penEnemy , vDirection );
|
|
||||||
#line 315 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 316 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetTimerAfter(0.6f);
|
|
||||||
Jump(STATE_CURRENT, 0x01560007, FALSE, EBegin());return TRUE;}BOOL CChainsawFreak::H0x01560007_Hit_07(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01560007
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01560008, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CChainsawFreak::H0x01560008_Hit_08(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01560008
|
|
||||||
;Jump(STATE_CURRENT,0x01560009, FALSE, EInternal());return TRUE;}BOOL CChainsawFreak::H0x01560009_Hit_09(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01560009
|
|
||||||
|
|
||||||
#line 320 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fShootTime = _pTimer -> CurrentTick () + 0.5f;
|
|
||||||
#line 321 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 321 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CChainsawFreak::
|
|
||||||
#line 324 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
AttackEnemy(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CChainsawFreak_AttackEnemy
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CChainsawFreak::AttackEnemy expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 325 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_bAttacking = TRUE ;
|
|
||||||
#line 326 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PlaySound (m_soSound , SOUND_SIGHT , SOF_3D | SOF_SMOOTHCHANGE );
|
|
||||||
#line 327 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fSightSoundBegin = _pTimer -> CurrentTick ();
|
|
||||||
#line 328 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CEnemyBase_AttackEnemy, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};BOOL CChainsawFreak::
|
|
||||||
#line 331 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
BeIdle(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CChainsawFreak_BeIdle
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CChainsawFreak::BeIdle expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 332 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_bAttacking = FALSE ;
|
|
||||||
#line 333 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
DeactivateRunningSound ();
|
|
||||||
#line 334 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CEnemyBase_BeIdle, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};BOOL CChainsawFreak::
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PostRunAwayFromEnemy(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CChainsawFreak_PostRunAwayFromEnemy
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CChainsawFreak::PostRunAwayFromEnemy expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 339 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (FREAK_ANIM_ATTACKRUNFAR , 0);
|
|
||||||
#line 340 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetTimerAfter(0.25f);
|
|
||||||
Jump(STATE_CURRENT, 0x0156000d, FALSE, EBegin());return TRUE;}BOOL CChainsawFreak::H0x0156000d_PostRunAwayFromEnemy_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0156000d
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x0156000e, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CChainsawFreak::H0x0156000e_PostRunAwayFromEnemy_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0156000e
|
|
||||||
;
|
|
||||||
#line 341 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetDesiredTranslation (FLOAT3D (0 , 0 , 0));
|
|
||||||
#line 342 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StartModelAnim (FREAK_ANIM_IDLE , 0);
|
|
||||||
#line 343 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetTimerAfter(0.25f);
|
|
||||||
Jump(STATE_CURRENT, 0x0156000f, FALSE, EBegin());return TRUE;}BOOL CChainsawFreak::H0x0156000f_PostRunAwayFromEnemy_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x0156000f
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01560010, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CChainsawFreak::H0x01560010_PostRunAwayFromEnemy_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01560010
|
|
||||||
;
|
|
||||||
#line 344 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 344 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CChainsawFreak::
|
|
||||||
#line 350 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CChainsawFreak_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CChainsawFreak::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 352 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
InitAsModel ();
|
|
||||||
#line 353 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_WALKING );
|
|
||||||
#line 354 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetCollisionFlags (ECF_MODEL );
|
|
||||||
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetFlags (GetFlags () | ENF_ALIVE );
|
|
||||||
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetHealth (175.0f);
|
|
||||||
#line 357 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fMaxHealth = 175.0f;
|
|
||||||
#line 358 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
en_fDensity = 2000.0f;
|
|
||||||
#line 360 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetModel (MODEL_FREAK );
|
|
||||||
#line 361 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
SetModelMainTexture (TEXTURE_FREAK );
|
|
||||||
#line 362 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
AddAttachment (FREAK_ATTACHMENT_CHAINSAW , MODEL_CHAINSAW , TEXTURE_CHAINSAW );
|
|
||||||
#line 363 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
StandingAnim ();
|
|
||||||
#line 365 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fWalkSpeed = FRnd () + 2.5f;
|
|
||||||
#line 366 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_aWalkRotateSpeed = AngleDeg (FRnd () * 25.0f + 45.0f);
|
|
||||||
#line 367 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fAttackRunSpeed = FRnd () * 2.0f + 13.0f;
|
|
||||||
#line 368 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fAttackRotateRunInto = AngleDeg (FRnd () * 30 + 50.0f);
|
|
||||||
#line 369 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_aAttackRotateSpeed = m_fAttackRotateRunInto ;
|
|
||||||
#line 370 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fCloseRunSpeed = FRnd () + 10.5f;
|
|
||||||
#line 371 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_aCloseRotateSpeed = AngleDeg (FRnd () * 50 + 250.0f);
|
|
||||||
#line 373 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fAttackDistance = 50.0f;
|
|
||||||
#line 374 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fCloseDistance = 7.0f;
|
|
||||||
#line 375 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fStopDistance = 0.0f;
|
|
||||||
#line 376 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fAttackFireTime = 0.05f;
|
|
||||||
#line 377 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fCloseFireTime = 1.0f;
|
|
||||||
#line 378 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fIgnoreRange = 150.0f;
|
|
||||||
#line 380 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fBlowUpAmount = 1E10f;
|
|
||||||
#line 381 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fBodyParts = 6;
|
|
||||||
#line 382 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fDamageWounded = 100000.0f;
|
|
||||||
#line 383 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_iScore = 1500;
|
|
||||||
#line 384 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
if(m_fStepHeight == - 1){
|
|
||||||
#line 385 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fStepHeight = 4.0f;
|
|
||||||
#line 386 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
}
|
|
||||||
#line 387 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fStopApproachDistance = 0.0f;
|
|
||||||
#line 388 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
ASSERT (m_fStopApproachDistance < m_fCloseDistance );
|
|
||||||
#line 389 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_bUseChargeAnimation = TRUE ;
|
|
||||||
#line 390 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fChargeDistance = 20.0f;
|
|
||||||
#line 391 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_fInertionRunTime = 0.15f;
|
|
||||||
#line 392 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_iRunType = IRnd () % 3;
|
|
||||||
#line 394 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
GetModelObject () -> StretchModel (FLOAT3D (FREAK_SIZE , FREAK_SIZE , FREAK_SIZE ));
|
|
||||||
#line 395 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
ModelChangeNotify ();
|
|
||||||
#line 397 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
m_bAttacking = FALSE ;
|
|
||||||
#line 400 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CEnemyRunInto_MainLoop, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,129 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_ChainsawFreak_INCLUDED
|
|
||||||
#define _EntitiesMP_ChainsawFreak_INCLUDED 1
|
|
||||||
#include <EntitiesMP/EnemyBase.h>
|
|
||||||
#include <EntitiesMP/EnemyRunInto.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CChainsawFreak_DLLClass;
|
|
||||||
class CChainsawFreak : public CEnemyRunInto {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
BOOL m_bRunAttack;
|
|
||||||
BOOL m_bSawHit;
|
|
||||||
CEntityPointer m_penLastTouched;
|
|
||||||
CSoundObject m_soFeet;
|
|
||||||
BOOL m_bRunSoundPlaying;
|
|
||||||
INDEX m_iRunType;
|
|
||||||
BOOL m_bAttacking;
|
|
||||||
FLOAT m_fSightSoundBegin;
|
|
||||||
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
virtual CTString GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath);
|
|
||||||
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void * GetEntityInfo(void);
|
|
||||||
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT GetCrushHealth(void);
|
|
||||||
|
|
||||||
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
virtual const CTFileName & GetComputerMessageName(void)const;
|
|
||||||
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection);
|
|
||||||
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void AdjustDifficulty(void);
|
|
||||||
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
INDEX AnimForDeath(void);
|
|
||||||
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
FLOAT WaitForDust(FLOAT3D & vStretch);
|
|
||||||
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void DeathNotify();
|
|
||||||
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void StandingAnim(void);
|
|
||||||
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void WalkingAnim(void);
|
|
||||||
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void RunningAnim(void);
|
|
||||||
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void ChargeAnim(void);
|
|
||||||
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void RotatingAnim(void);
|
|
||||||
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void IdleSound(void);
|
|
||||||
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void WoundSound(void);
|
|
||||||
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void DeathSound(void);
|
|
||||||
|
|
||||||
#line 198 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void ActivateRunningSound(void);
|
|
||||||
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void DeactivateRunningSound(void);
|
|
||||||
|
|
||||||
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void LiveEntityTouched(ETouch etouch);
|
|
||||||
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
BOOL HigherMass(void);
|
|
||||||
|
|
||||||
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void EnemyPostInit(void);
|
|
||||||
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
void PreMoving();
|
|
||||||
#define STATE_CChainsawFreak_Hit 0x01560000
|
|
||||||
BOOL
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Hit(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01560001_Hit_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01560002_Hit_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01560003_Hit_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01560004_Hit_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01560005_Hit_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01560006_Hit_06(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01560007_Hit_07(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01560008_Hit_08(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01560009_Hit_09(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CChainsawFreak_AttackEnemy 0x0156000a
|
|
||||||
BOOL
|
|
||||||
#line 324 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
AttackEnemy(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CChainsawFreak_BeIdle 0x0156000b
|
|
||||||
BOOL
|
|
||||||
#line 331 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
BeIdle(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CChainsawFreak_PostRunAwayFromEnemy 0x0156000c
|
|
||||||
BOOL
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PostRunAwayFromEnemy(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0156000d_PostRunAwayFromEnemy_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0156000e_PostRunAwayFromEnemy_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x0156000f_PostRunAwayFromEnemy_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01560010_PostRunAwayFromEnemy_04(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CChainsawFreak_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 350 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_ChainsawFreak_INCLUDED
|
|
|
@ -1,86 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CChainsawFreak
|
|
||||||
|
|
||||||
CEntityProperty CChainsawFreak_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000156<<8)+1, offsetof(CChainsawFreak, m_bRunAttack), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000156<<8)+2, offsetof(CChainsawFreak, m_bSawHit), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x00000156<<8)+3, offsetof(CChainsawFreak, m_penLastTouched), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x00000156<<8)+4, offsetof(CChainsawFreak, m_soFeet), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000156<<8)+5, offsetof(CChainsawFreak, m_bRunSoundPlaying), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000156<<8)+6, offsetof(CChainsawFreak, m_iRunType), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000156<<8)+10, offsetof(CChainsawFreak, m_bAttacking), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000156<<8)+11, offsetof(CChainsawFreak, m_fSightSoundBegin), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CChainsawFreak_propertiesct ARRAYCOUNT(CChainsawFreak_properties)
|
|
||||||
|
|
||||||
CEntityComponent CChainsawFreak_components[] = {
|
|
||||||
#define CLASS_BASE ((0x00000156<<8)+0)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\EnemyRunInto.ecl"),
|
|
||||||
#define MODEL_FREAK ((0x00000156<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_FREAK, "EFNM" "ModelsMP\\Enemies\\ChainsawFreak\\Freak.mdl"),
|
|
||||||
#define MODEL_CHAINSAW ((0x00000156<<8)+2)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CHAINSAW, "EFNM" "ModelsMP\\Enemies\\ChainsawFreak\\Saw.mdl"),
|
|
||||||
#define TEXTURE_FREAK ((0x00000156<<8)+3)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_FREAK, "EFNM" "ModelsMP\\Enemies\\ChainsawFreak\\Freak.tex"),
|
|
||||||
#define TEXTURE_CHAINSAW ((0x00000156<<8)+4)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_CHAINSAW, "EFNM" "ModelsMP\\Enemies\\ChainsawFreak\\Saw.tex"),
|
|
||||||
#define SOUND_IDLE ((0x00000156<<8)+50)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_IDLE, "EFNM" "ModelsMP\\Enemies\\ChainsawFreak\\Sounds\\Idle.wav"),
|
|
||||||
#define SOUND_RUN ((0x00000156<<8)+51)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_RUN, "EFNM" "ModelsMP\\Enemies\\ChainsawFreak\\Sounds\\Run.wav"),
|
|
||||||
#define SOUND_ATTACK ((0x00000156<<8)+54)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_ATTACK, "EFNM" "ModelsMP\\Enemies\\ChainsawFreak\\Sounds\\Attack.wav"),
|
|
||||||
#define SOUND_WOUND ((0x00000156<<8)+55)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_WOUND, "EFNM" "ModelsMP\\Enemies\\ChainsawFreak\\Sounds\\Wound.wav"),
|
|
||||||
#define SOUND_DEATH ((0x00000156<<8)+56)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_DEATH, "EFNM" "ModelsMP\\Enemies\\ChainsawFreak\\Sounds\\Death.wav"),
|
|
||||||
#define SOUND_SIGHT ((0x00000156<<8)+57)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_SIGHT, "EFNM" "ModelsMP\\Enemies\\ChainsawFreak\\Sounds\\Sight.wav"),
|
|
||||||
};
|
|
||||||
#define CChainsawFreak_componentsct ARRAYCOUNT(CChainsawFreak_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CChainsawFreak_handlers[] = {
|
|
||||||
{0x01560000, STATE_CEnemyBase_Hit, CEntity::pEventHandler(&CChainsawFreak::
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Hit),DEBUGSTRING("CChainsawFreak::Hit")},
|
|
||||||
{0x01560001, -1, CEntity::pEventHandler(&CChainsawFreak::H0x01560001_Hit_01), DEBUGSTRING("CChainsawFreak::H0x01560001_Hit_01")},
|
|
||||||
{0x01560002, -1, CEntity::pEventHandler(&CChainsawFreak::H0x01560002_Hit_02), DEBUGSTRING("CChainsawFreak::H0x01560002_Hit_02")},
|
|
||||||
{0x01560003, -1, CEntity::pEventHandler(&CChainsawFreak::H0x01560003_Hit_03), DEBUGSTRING("CChainsawFreak::H0x01560003_Hit_03")},
|
|
||||||
{0x01560004, -1, CEntity::pEventHandler(&CChainsawFreak::H0x01560004_Hit_04), DEBUGSTRING("CChainsawFreak::H0x01560004_Hit_04")},
|
|
||||||
{0x01560005, -1, CEntity::pEventHandler(&CChainsawFreak::H0x01560005_Hit_05), DEBUGSTRING("CChainsawFreak::H0x01560005_Hit_05")},
|
|
||||||
{0x01560006, -1, CEntity::pEventHandler(&CChainsawFreak::H0x01560006_Hit_06), DEBUGSTRING("CChainsawFreak::H0x01560006_Hit_06")},
|
|
||||||
{0x01560007, -1, CEntity::pEventHandler(&CChainsawFreak::H0x01560007_Hit_07), DEBUGSTRING("CChainsawFreak::H0x01560007_Hit_07")},
|
|
||||||
{0x01560008, -1, CEntity::pEventHandler(&CChainsawFreak::H0x01560008_Hit_08), DEBUGSTRING("CChainsawFreak::H0x01560008_Hit_08")},
|
|
||||||
{0x01560009, -1, CEntity::pEventHandler(&CChainsawFreak::H0x01560009_Hit_09), DEBUGSTRING("CChainsawFreak::H0x01560009_Hit_09")},
|
|
||||||
{0x0156000a, STATE_CEnemyBase_AttackEnemy, CEntity::pEventHandler(&CChainsawFreak::
|
|
||||||
#line 324 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
AttackEnemy),DEBUGSTRING("CChainsawFreak::AttackEnemy")},
|
|
||||||
{0x0156000b, STATE_CEnemyBase_BeIdle, CEntity::pEventHandler(&CChainsawFreak::
|
|
||||||
#line 331 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
BeIdle),DEBUGSTRING("CChainsawFreak::BeIdle")},
|
|
||||||
{0x0156000c, STATE_CEnemyRunInto_PostRunAwayFromEnemy, CEntity::pEventHandler(&CChainsawFreak::
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
PostRunAwayFromEnemy),DEBUGSTRING("CChainsawFreak::PostRunAwayFromEnemy")},
|
|
||||||
{0x0156000d, -1, CEntity::pEventHandler(&CChainsawFreak::H0x0156000d_PostRunAwayFromEnemy_01), DEBUGSTRING("CChainsawFreak::H0x0156000d_PostRunAwayFromEnemy_01")},
|
|
||||||
{0x0156000e, -1, CEntity::pEventHandler(&CChainsawFreak::H0x0156000e_PostRunAwayFromEnemy_02), DEBUGSTRING("CChainsawFreak::H0x0156000e_PostRunAwayFromEnemy_02")},
|
|
||||||
{0x0156000f, -1, CEntity::pEventHandler(&CChainsawFreak::H0x0156000f_PostRunAwayFromEnemy_03), DEBUGSTRING("CChainsawFreak::H0x0156000f_PostRunAwayFromEnemy_03")},
|
|
||||||
{0x01560010, -1, CEntity::pEventHandler(&CChainsawFreak::H0x01560010_PostRunAwayFromEnemy_04), DEBUGSTRING("CChainsawFreak::H0x01560010_PostRunAwayFromEnemy_04")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CChainsawFreak::
|
|
||||||
#line 350 "D:/SE1_GPL/Sources/EntitiesMP/ChainsawFreak.es"
|
|
||||||
Main),DEBUGSTRING("CChainsawFreak::Main")},
|
|
||||||
};
|
|
||||||
#define CChainsawFreak_handlersct ARRAYCOUNT(CChainsawFreak_handlers)
|
|
||||||
|
|
||||||
CEntity *CChainsawFreak_New(void) { return new CChainsawFreak; };
|
|
||||||
void CChainsawFreak_OnInitClass(void) {};
|
|
||||||
void CChainsawFreak_OnEndClass(void) {};
|
|
||||||
void CChainsawFreak_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CChainsawFreak_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CChainsawFreak_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CChainsawFreak_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CChainsawFreak_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CChainsawFreak, CEnemyRunInto, "ChainsawFreak", "Thumbnails\\ChainsawFreak.tbn", 0x00000156);
|
|
||||||
DECLARE_CTFILENAME(_fnmCChainsawFreak_tbn, "Thumbnails\\ChainsawFreak.tbn");
|
|
|
@ -1,162 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/Copier.h>
|
|
||||||
#include <EntitiesMP/Copier_tables.h>
|
|
||||||
void CCopier::SetDefaultProperties(void) {
|
|
||||||
m_strName = "Copier";
|
|
||||||
m_strDescription = "";
|
|
||||||
m_penTarget = NULL;
|
|
||||||
m_bSpawnEffect = TRUE ;
|
|
||||||
m_bTelefrag = TRUE ;
|
|
||||||
CRationalEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 33 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
const CTString & CCopier::GetDescription(void)const
|
|
||||||
#line 34 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
{
|
|
||||||
#line 35 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
((CTString &) m_strDescription ) . PrintF ("-><none>");
|
|
||||||
#line 36 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
if(m_penTarget != NULL ){
|
|
||||||
#line 37 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
((CTString &) m_strDescription ) . PrintF ("->%s" , m_penTarget -> GetName ());
|
|
||||||
#line 38 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}
|
|
||||||
#line 39 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
return m_strDescription ;
|
|
||||||
#line 40 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 42 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
void CCopier::TeleportEntity()
|
|
||||||
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
{
|
|
||||||
#line 45 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
if(m_penTarget == NULL || (m_penTarget -> GetFlags () & ENF_DELETED )){
|
|
||||||
#line 47 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
return ;
|
|
||||||
#line 48 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}
|
|
||||||
#line 50 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
CEntity * pen = GetWorld () -> CopyEntityInWorld (* m_penTarget ,
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
CPlacement3D (FLOAT3D (- 32000.0f + FRnd () * 200.0f , - 32000.0f + FRnd () * 200.0f , 0) , ANGLE3D (0 , 0 , 0)));
|
|
||||||
#line 54 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
CPlacement3D pl = GetPlacement ();
|
|
||||||
#line 55 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
pl . pl_PositionVector += GetRotationMatrix () . GetColumn (2) * 0.05f;
|
|
||||||
#line 56 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
pen -> Teleport (pl , m_bTelefrag );
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
if(m_bSpawnEffect ){
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
ESpawnEffect ese ;
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
ese . colMuliplier = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
ese . betType = BET_TELEPORT ;
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
ese . vNormal = FLOAT3D (0 , 1 , 0);
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
FLOATaabbox3D box ;
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
pen -> GetBoundingBox (box );
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
FLOAT fEntitySize = box . Size () . MaxNorm () * 2;
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
ese . vStretch = FLOAT3D (fEntitySize , fEntitySize , fEntitySize );
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
CEntityPointer penEffect = CreateEntity (GetPlacement () , CLASS_BASIC_EFFECT );
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
penEffect -> Initialize (ese );
|
|
||||||
#line 70 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
SLONG CCopier::GetUsedMemory(void)
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
{
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
SLONG slUsedMemory = sizeof (CCopier ) - sizeof (CRationalEntity ) + CRationalEntity :: GetUsedMemory ();
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
slUsedMemory += m_strDescription . Length ();
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
slUsedMemory += m_strName . Length ();
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
return slUsedMemory ;
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}
|
|
||||||
BOOL CCopier::
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCopier_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCopier::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
SetCollisionFlags (ECF_TOUCHMODEL );
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
SetModel (MODEL_TELEPORT );
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
SetModelMainTexture (TEXTURE_TELEPORT );
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
Jump(STATE_CURRENT,0x00e10004, FALSE, EInternal());return TRUE;}BOOL CCopier::H0x00e10004_Main_05(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e10004
|
|
||||||
if(!(TRUE )){ Jump(STATE_CURRENT,0x00e10005, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x00e10000, FALSE, EBegin());return TRUE;}BOOL CCopier::H0x00e10000_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e10000
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_ETrigger):{const ETrigger&eTrigger= (ETrigger&)__eeInput;
|
|
||||||
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
if(m_penTarget != NULL ){
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
TeleportEntity ();
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x00e10001, FALSE, EInternal());return TRUE;
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}ASSERT(FALSE);break;default:{
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}ASSERT(FALSE);break;
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}return TRUE;}BOOL CCopier::H0x00e10001_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e10001
|
|
||||||
;
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
SetTimerAfter(0.1f);
|
|
||||||
Jump(STATE_CURRENT, 0x00e10002, FALSE, EBegin());return TRUE;}BOOL CCopier::H0x00e10002_Main_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e10002
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x00e10003, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCopier::H0x00e10003_Main_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e10003
|
|
||||||
;Jump(STATE_CURRENT,0x00e10004, FALSE, EInternal());return TRUE;
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
}BOOL CCopier::H0x00e10005_Main_06(const CEntityEvent &__eeInput) {
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e10005
|
|
||||||
ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,40 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_Copier_INCLUDED
|
|
||||||
#define _EntitiesMP_Copier_INCLUDED 1
|
|
||||||
#include <EntitiesMP/BasicEffects.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CCopier_DLLClass;
|
|
||||||
class CCopier : public CRationalEntity {
|
|
||||||
public:
|
|
||||||
virtual const CTString &GetName(void) const { return m_strName; };
|
|
||||||
virtual CEntity *GetTarget(void) const { return m_penTarget; };
|
|
||||||
virtual BOOL IsTargetable(void) const { return TRUE; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
CTString m_strName;
|
|
||||||
CTString m_strDescription;
|
|
||||||
CEntityPointer m_penTarget;
|
|
||||||
BOOL m_bSpawnEffect;
|
|
||||||
BOOL m_bTelefrag;
|
|
||||||
|
|
||||||
#line 33 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
const CTString & GetDescription(void)const;
|
|
||||||
|
|
||||||
#line 42 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
void TeleportEntity();
|
|
||||||
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
SLONG GetUsedMemory(void);
|
|
||||||
#define STATE_CCopier_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e10000_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e10001_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e10002_Main_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e10003_Main_04(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e10004_Main_05(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e10005_Main_06(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_Copier_INCLUDED
|
|
|
@ -1,48 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CCopier
|
|
||||||
|
|
||||||
CEntityProperty CCopier_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000e1<<8)+1, offsetof(CCopier, m_strName), "Name", 'N', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000e1<<8)+3, offsetof(CCopier, m_strDescription), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e1<<8)+2, offsetof(CCopier, m_penTarget), "Target", 'T', C_BROWN | 0xFF, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000e1<<8)+4, offsetof(CCopier, m_bSpawnEffect), "Spawn Effect", 'X', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000e1<<8)+5, offsetof(CCopier, m_bTelefrag), "Telefrag", 'F', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CCopier_propertiesct ARRAYCOUNT(CCopier_properties)
|
|
||||||
|
|
||||||
CEntityComponent CCopier_components[] = {
|
|
||||||
#define MODEL_TELEPORT ((0x000000e1<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_TELEPORT, "EFNM" "Models\\Editor\\Copier.mdl"),
|
|
||||||
#define TEXTURE_TELEPORT ((0x000000e1<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_TELEPORT, "EFNM" "Models\\Editor\\Copier.tex"),
|
|
||||||
#define CLASS_BASIC_EFFECT ((0x000000e1<<8)+3)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASIC_EFFECT, "EFNM" "Classes\\BasicEffect.ecl"),
|
|
||||||
};
|
|
||||||
#define CCopier_componentsct ARRAYCOUNT(CCopier_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CCopier_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CCopier::
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/Copier.es"
|
|
||||||
Main),DEBUGSTRING("CCopier::Main")},
|
|
||||||
{0x00e10000, -1, CEntity::pEventHandler(&CCopier::H0x00e10000_Main_01), DEBUGSTRING("CCopier::H0x00e10000_Main_01")},
|
|
||||||
{0x00e10001, -1, CEntity::pEventHandler(&CCopier::H0x00e10001_Main_02), DEBUGSTRING("CCopier::H0x00e10001_Main_02")},
|
|
||||||
{0x00e10002, -1, CEntity::pEventHandler(&CCopier::H0x00e10002_Main_03), DEBUGSTRING("CCopier::H0x00e10002_Main_03")},
|
|
||||||
{0x00e10003, -1, CEntity::pEventHandler(&CCopier::H0x00e10003_Main_04), DEBUGSTRING("CCopier::H0x00e10003_Main_04")},
|
|
||||||
{0x00e10004, -1, CEntity::pEventHandler(&CCopier::H0x00e10004_Main_05), DEBUGSTRING("CCopier::H0x00e10004_Main_05")},
|
|
||||||
{0x00e10005, -1, CEntity::pEventHandler(&CCopier::H0x00e10005_Main_06), DEBUGSTRING("CCopier::H0x00e10005_Main_06")},
|
|
||||||
};
|
|
||||||
#define CCopier_handlersct ARRAYCOUNT(CCopier_handlers)
|
|
||||||
|
|
||||||
CEntity *CCopier_New(void) { return new CCopier; };
|
|
||||||
void CCopier_OnInitClass(void) {};
|
|
||||||
void CCopier_OnEndClass(void) {};
|
|
||||||
void CCopier_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CCopier_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CCopier_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CCopier_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CCopier_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CCopier, CRationalEntity, "Copier", "Thumbnails\\Copier.tbn", 0x000000e1);
|
|
||||||
DECLARE_CTFILENAME(_fnmCCopier_tbn, "Thumbnails\\Copier.tbn");
|
|
|
@ -1,207 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/Counter.h>
|
|
||||||
#include <EntitiesMP/Counter_tables.h>
|
|
||||||
void CCounter::SetDefaultProperties(void) {
|
|
||||||
m_fCountdownSpeed = 12.0f;
|
|
||||||
m_penTarget = NULL;
|
|
||||||
m_fNumber = 0.0f;
|
|
||||||
m_tmStart = -1.0f;
|
|
||||||
m_strName = "";
|
|
||||||
m_soSound.SetOwner(this);
|
|
||||||
m_soSound.Stop_internal();
|
|
||||||
m_iCountFrom = 1023;
|
|
||||||
m_pen0 = NULL;
|
|
||||||
m_pen1 = NULL;
|
|
||||||
m_pen2 = NULL;
|
|
||||||
m_pen3 = NULL;
|
|
||||||
m_pen4 = NULL;
|
|
||||||
m_pen5 = NULL;
|
|
||||||
m_pen6 = NULL;
|
|
||||||
m_pen7 = NULL;
|
|
||||||
m_pen8 = NULL;
|
|
||||||
m_pen9 = NULL;
|
|
||||||
CRationalEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 40 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
void CCounter::Precache(void)
|
|
||||||
#line 41 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
{
|
|
||||||
#line 42 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
PrecacheSound (SOUND_TICK );
|
|
||||||
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
CRationalEntity :: Precache ();
|
|
||||||
#line 44 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 46 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
void CCounter::DisplayNumber(void)
|
|
||||||
#line 47 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
{
|
|
||||||
#line 48 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
for(INDEX iDigit = 0;iDigit < 10;iDigit ++)
|
|
||||||
#line 49 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
{
|
|
||||||
#line 50 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
CModelHolder2 * pmh = (CModelHolder2 *) & * (& m_pen0 ) [ iDigit ];
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
if(pmh != NULL && pmh -> GetModelObject () != NULL &&
|
|
||||||
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
pmh -> GetModelObject () -> mo_toTexture . GetData () != NULL )
|
|
||||||
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
{
|
|
||||||
#line 55 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
INDEX iOldAnim = pmh -> GetModelObject () -> mo_toTexture . GetAnim ();
|
|
||||||
#line 56 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
INDEX iAnim = (INDEX (m_fNumber ) & (1 << iDigit )) >> iDigit ;
|
|
||||||
#line 57 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
pmh -> GetModelObject () -> mo_toTexture . PlayAnim (iAnim , 0);
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
m_soSound . Set3DParameters (200.0f , 100.0f , 1.0f ,
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
Clamp (1.0f + (m_iCountFrom - m_fNumber ) / m_iCountFrom * 2.0f , 1.0f , 3.0f));
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
if(iDigit == 0 && iOldAnim != iAnim && ! m_soSound . IsPlaying ())
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
{
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
PlaySound (m_soSound , SOUND_TICK , SOF_3D | SOF_VOLUMETRIC );
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}
|
|
||||||
BOOL CCounter::
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
CountDown(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCounter_CountDown
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCounter::CountDown expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
Jump(STATE_CURRENT,0x00e80003, FALSE, EInternal());return TRUE;}BOOL CCounter::H0x00e80003_CountDown_03(const CEntityEvent &__eeInput)
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
{
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e80003
|
|
||||||
if(!(TRUE )){ Jump(STATE_CURRENT,0x00e80004, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
SetTimerAfter(_pTimer -> TickQuantum );
|
|
||||||
Jump(STATE_CURRENT, 0x00e80001, FALSE, EBegin());return TRUE;}BOOL CCounter::H0x00e80001_CountDown_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e80001
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x00e80002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCounter::H0x00e80002_CountDown_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e80002
|
|
||||||
;
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
FLOAT tmNow = _pTimer -> CurrentTick ();
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
FLOAT tmDelta = tmNow - m_tmStart ;
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
FLOAT fSub = Clamp (tmDelta / m_fCountdownSpeed , 0.01f , 1.0f);
|
|
||||||
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
m_fNumber = Clamp (m_fNumber - fSub , 0.0f , FLOAT (m_iCountFrom ));
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
DisplayNumber ();
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
if(m_fNumber == 0)
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
{
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
Return(STATE_CURRENT,EReturn ());
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}Jump(STATE_CURRENT,0x00e80003, FALSE, EInternal());return TRUE;
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}BOOL CCounter::H0x00e80004_CountDown_04(const CEntityEvent &__eeInput) {
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e80004
|
|
||||||
ASSERT(FALSE); return TRUE;};BOOL CCounter::
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCounter_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCounter::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
SetModel (MODEL_MARKER );
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
SetModelMainTexture (TEXTURE_MARKER );
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
SetTimerAfter(0.1f);
|
|
||||||
Jump(STATE_CURRENT, 0x00e80005, FALSE, EBegin());return TRUE;}BOOL CCounter::H0x00e80005_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e80005
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x00e80006, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCounter::H0x00e80006_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e80006
|
|
||||||
;
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
m_fNumber = m_iCountFrom ;
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
DisplayNumber ();
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x00e80007, FALSE, EBegin());return TRUE;}BOOL CCounter::H0x00e80007_Main_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e80007
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
||||||
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_ETrigger):{const ETrigger&eTrigger= (ETrigger&)__eeInput;
|
|
||||||
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
m_fNumber = m_iCountFrom ;
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
DisplayNumber ();
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
m_tmStart = _pTimer -> CurrentTick ();
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
Call(STATE_CURRENT, STATE_CCounter_CountDown, TRUE, EVoid());return TRUE;
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EReturn):{const EReturn&e= (EReturn&)__eeInput;
|
|
||||||
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
if(m_penTarget != NULL )
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
{
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
SendToTarget (m_penTarget , EET_TRIGGER );
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x00e80008, FALSE, EInternal());return TRUE;
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}ASSERT(FALSE);break;default: return FALSE; break;
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
}return TRUE;}BOOL CCounter::H0x00e80008_Main_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e80008
|
|
||||||
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,55 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_Counter_INCLUDED
|
|
||||||
#define _EntitiesMP_Counter_INCLUDED 1
|
|
||||||
#include <EntitiesMP/ModelHolder2.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CCounter_DLLClass;
|
|
||||||
class CCounter : public CRationalEntity {
|
|
||||||
public:
|
|
||||||
virtual const CTString &GetName(void) const { return m_strName; };
|
|
||||||
virtual BOOL IsTargetable(void) const { return TRUE; };
|
|
||||||
virtual BOOL IsImportant(void) const { return TRUE; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
FLOAT m_fCountdownSpeed;
|
|
||||||
CEntityPointer m_penTarget;
|
|
||||||
FLOAT m_fNumber;
|
|
||||||
FLOAT m_tmStart;
|
|
||||||
CTString m_strName;
|
|
||||||
CSoundObject m_soSound;
|
|
||||||
INDEX m_iCountFrom;
|
|
||||||
CEntityPointer m_pen0;
|
|
||||||
CEntityPointer m_pen1;
|
|
||||||
CEntityPointer m_pen2;
|
|
||||||
CEntityPointer m_pen3;
|
|
||||||
CEntityPointer m_pen4;
|
|
||||||
CEntityPointer m_pen5;
|
|
||||||
CEntityPointer m_pen6;
|
|
||||||
CEntityPointer m_pen7;
|
|
||||||
CEntityPointer m_pen8;
|
|
||||||
CEntityPointer m_pen9;
|
|
||||||
|
|
||||||
#line 40 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 46 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
void DisplayNumber(void);
|
|
||||||
#define STATE_CCounter_CountDown 0x00e80000
|
|
||||||
BOOL
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
CountDown(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e80001_CountDown_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e80002_CountDown_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e80003_CountDown_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e80004_CountDown_04(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCounter_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e80005_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e80006_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e80007_Main_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00e80008_Main_04(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_Counter_INCLUDED
|
|
|
@ -1,65 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CCounter
|
|
||||||
|
|
||||||
CEntityProperty CCounter_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e8<<8)+1, offsetof(CCounter, m_fCountdownSpeed), "Countdown speed", 'S', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+2, offsetof(CCounter, m_penTarget), "Zero target", 'T', C_WHITE | 0x80, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e8<<8)+3, offsetof(CCounter, m_fNumber), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000e8<<8)+4, offsetof(CCounter, m_tmStart), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000e8<<8)+5, offsetof(CCounter, m_strName), "Name", 'N', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_SOUNDOBJECT, NULL, (0x000000e8<<8)+6, offsetof(CCounter, m_soSound), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x000000e8<<8)+7, offsetof(CCounter, m_iCountFrom), "Count start", 'A', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+10, offsetof(CCounter, m_pen0), "Bit 0", 0, C_RED | 0x30, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+11, offsetof(CCounter, m_pen1), "Bit 1", 0, C_RED | 0x30, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+12, offsetof(CCounter, m_pen2), "Bit 2", 0, C_RED | 0x30, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+13, offsetof(CCounter, m_pen3), "Bit 3", 0, C_RED | 0x30, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+14, offsetof(CCounter, m_pen4), "Bit 4", 0, C_RED | 0x30, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+15, offsetof(CCounter, m_pen5), "Bit 5", 0, C_RED | 0x30, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+16, offsetof(CCounter, m_pen6), "Bit 6", 0, C_RED | 0x30, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+17, offsetof(CCounter, m_pen7), "Bit 7", 0, C_RED | 0x30, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+18, offsetof(CCounter, m_pen8), "Bit 8", 0, C_RED | 0x30, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000e8<<8)+19, offsetof(CCounter, m_pen9), "Bit 9", 0, C_RED | 0x30, 0),
|
|
||||||
};
|
|
||||||
#define CCounter_propertiesct ARRAYCOUNT(CCounter_properties)
|
|
||||||
|
|
||||||
CEntityComponent CCounter_components[] = {
|
|
||||||
#define SOUND_TICK ((0x000000e8<<8)+0)
|
|
||||||
CEntityComponent(ECT_SOUND, SOUND_TICK, "EFNM" "Sounds\\Menu\\Select.wav"),
|
|
||||||
#define MODEL_MARKER ((0x000000e8<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_MARKER, "EFNM" "Models\\Editor\\Axis.mdl"),
|
|
||||||
#define TEXTURE_MARKER ((0x000000e8<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_MARKER, "EFNM" "Models\\Editor\\Vector.tex"),
|
|
||||||
};
|
|
||||||
#define CCounter_componentsct ARRAYCOUNT(CCounter_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CCounter_handlers[] = {
|
|
||||||
{0x00e80000, -1, CEntity::pEventHandler(&CCounter::
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
CountDown),DEBUGSTRING("CCounter::CountDown")},
|
|
||||||
{0x00e80001, -1, CEntity::pEventHandler(&CCounter::H0x00e80001_CountDown_01), DEBUGSTRING("CCounter::H0x00e80001_CountDown_01")},
|
|
||||||
{0x00e80002, -1, CEntity::pEventHandler(&CCounter::H0x00e80002_CountDown_02), DEBUGSTRING("CCounter::H0x00e80002_CountDown_02")},
|
|
||||||
{0x00e80003, -1, CEntity::pEventHandler(&CCounter::H0x00e80003_CountDown_03), DEBUGSTRING("CCounter::H0x00e80003_CountDown_03")},
|
|
||||||
{0x00e80004, -1, CEntity::pEventHandler(&CCounter::H0x00e80004_CountDown_04), DEBUGSTRING("CCounter::H0x00e80004_CountDown_04")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CCounter::
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/Counter.es"
|
|
||||||
Main),DEBUGSTRING("CCounter::Main")},
|
|
||||||
{0x00e80005, -1, CEntity::pEventHandler(&CCounter::H0x00e80005_Main_01), DEBUGSTRING("CCounter::H0x00e80005_Main_01")},
|
|
||||||
{0x00e80006, -1, CEntity::pEventHandler(&CCounter::H0x00e80006_Main_02), DEBUGSTRING("CCounter::H0x00e80006_Main_02")},
|
|
||||||
{0x00e80007, -1, CEntity::pEventHandler(&CCounter::H0x00e80007_Main_03), DEBUGSTRING("CCounter::H0x00e80007_Main_03")},
|
|
||||||
{0x00e80008, -1, CEntity::pEventHandler(&CCounter::H0x00e80008_Main_04), DEBUGSTRING("CCounter::H0x00e80008_Main_04")},
|
|
||||||
};
|
|
||||||
#define CCounter_handlersct ARRAYCOUNT(CCounter_handlers)
|
|
||||||
|
|
||||||
CEntity *CCounter_New(void) { return new CCounter; };
|
|
||||||
void CCounter_OnInitClass(void) {};
|
|
||||||
void CCounter_OnEndClass(void) {};
|
|
||||||
void CCounter_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CCounter_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CCounter_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CCounter_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CCounter_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CCounter, CRationalEntity, "Counter", "Thumbnails\\Counter.tbn", 0x000000e8);
|
|
||||||
DECLARE_CTFILENAME(_fnmCCounter_tbn, "Thumbnails\\Counter.tbn");
|
|
|
@ -1,468 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "ModelsMP/CutSequences/CrateBus/CrateBus.h"
|
|
||||||
#include "ModelsMP/Enemies/Mental/Mental.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/CrateBus.h>
|
|
||||||
#include <EntitiesMP/CrateBus_tables.h>
|
|
||||||
#line 14 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
|
|
||||||
INDEX _aiLeftAnimations[] = {
|
|
||||||
MENTAL_ANIM_LEFTWAVE01,
|
|
||||||
MENTAL_ANIM_LEFTWAVE02,
|
|
||||||
MENTAL_ANIM_LEFTWAVE03,
|
|
||||||
MENTAL_ANIM_LEFTWAVE04,
|
|
||||||
MENTAL_ANIM_LEFTWAVE05,
|
|
||||||
MENTAL_ANIM_LEFTWAVE06
|
|
||||||
};
|
|
||||||
|
|
||||||
INDEX _aiRightAnimations[] = {
|
|
||||||
MENTAL_ANIM_RIGHTWAVE01,
|
|
||||||
MENTAL_ANIM_RIGHTWAVE02,
|
|
||||||
MENTAL_ANIM_RIGHTWAVE03,
|
|
||||||
MENTAL_ANIM_RIGHTWAVE04,
|
|
||||||
MENTAL_ANIM_RIGHTWAVE05,
|
|
||||||
MENTAL_ANIM_RIGHTWAVE06,
|
|
||||||
MENTAL_ANIM_RIGHTWAVE07,
|
|
||||||
MENTAL_ANIM_RIGHTWAVE08
|
|
||||||
};
|
|
||||||
|
|
||||||
CAutoPrecacheSound m_aps;
|
|
||||||
CAutoPrecacheTexture m_apt;
|
|
||||||
|
|
||||||
#define CT_BIGHEADS 24
|
|
||||||
|
|
||||||
void CCrateBus::SetDefaultProperties(void) {
|
|
||||||
m_bActive = TRUE ;
|
|
||||||
m_fExplosionStretch = 1.0f;
|
|
||||||
m_tmDeath = 0.0f;
|
|
||||||
m_strName = "Crate bus";
|
|
||||||
m_ctMentals = 0;
|
|
||||||
m_bShowTrail = FALSE ;
|
|
||||||
m_fStretch = 1.0f;
|
|
||||||
m_fnmHeadTex01 = CTString("");
|
|
||||||
m_fnmHeadTex02 = CTString("");
|
|
||||||
m_fnmHeadTex03 = CTString("");
|
|
||||||
m_fnmHeadTex04 = CTString("");
|
|
||||||
m_fnmHeadTex05 = CTString("");
|
|
||||||
m_fnmHeadTex06 = CTString("");
|
|
||||||
m_fnmHeadTex07 = CTString("");
|
|
||||||
m_fnmHeadTex08 = CTString("");
|
|
||||||
m_fnmHeadTex09 = CTString("");
|
|
||||||
m_fnmHeadTex10 = CTString("");
|
|
||||||
m_fnmHeadTex11 = CTString("");
|
|
||||||
m_fnmHeadTex12 = CTString("");
|
|
||||||
m_fnmHeadTex13 = CTString("");
|
|
||||||
m_fnmHeadTex14 = CTString("");
|
|
||||||
m_fnmHeadTex15 = CTString("");
|
|
||||||
m_fnmHeadTex16 = CTString("");
|
|
||||||
m_fnmHeadTex17 = CTString("");
|
|
||||||
m_fnmHeadTex18 = CTString("");
|
|
||||||
m_fnmHeadTex19 = CTString("");
|
|
||||||
m_fnmHeadTex20 = CTString("");
|
|
||||||
m_fnmHeadTex21 = CTString("");
|
|
||||||
m_fnmHeadTex22 = CTString("");
|
|
||||||
m_fnmHeadTex23 = CTString("");
|
|
||||||
m_fnmHeadTex24 = CTString("");
|
|
||||||
CMovableModelEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
void CCrateBus::Precache(void)
|
|
||||||
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
PrecacheClass (CLASS_BASIC_EFFECT , BET_BOMB );
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
PrecacheTexture (TEXTURE_HEAD );
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
void CCrateBus::AddRiders()
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
GetModelObject () -> RemoveAllAttachmentModels ();
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
for(INDEX i = 0;i < CT_BIGHEADS ;i ++)
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
AddAttachment (CRATEBUS_ATTACHMENT_1 + i , MODEL_MENTAL , TEXTURE_MENTAL );
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CAttachmentModelObject * pamoMental = GetModelObject () -> GetAttachmentModel (CRATEBUS_ATTACHMENT_1 + i );
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
if(pamoMental == NULL ){continue ;}
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CModelObject & moMental = pamoMental -> amo_moModelObject ;
|
|
||||||
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
AddAttachmentToModel (this , moMental , MENTAL_ATTACHMENT_HEAD , MODEL_HEAD , TEXTURE_HEAD , 0 , 0 , 0);
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CAttachmentModelObject * pamoHead = moMental . GetAttachmentModel (MENTAL_ATTACHMENT_HEAD );
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
if(pamoHead == NULL ){continue ;}
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CTFileName fnm = (& m_fnmHeadTex01 ) [ i ];
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
if(fnm != "")
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
try
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
pamoHead -> amo_moModelObject . mo_toTexture . SetData_t (fnm );
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
catch (char * strError )
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CPrintF ("%s\n" , strError );
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
INDEX iRndLeft = IRnd () % (sizeof (_aiLeftAnimations ) / sizeof (INDEX));
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
INDEX iRndRight = IRnd () % (sizeof (_aiRightAnimations ) / sizeof (INDEX));
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
if(i & 1)
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
moMental . PlayAnim (_aiRightAnimations [ iRndRight ] , AOF_LOOPING );
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
else
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
moMental . PlayAnim (_aiLeftAnimations [ iRndLeft ] , AOF_LOOPING );
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
FLOAT tmOffsetPhase = - FRnd () * 10.0f;
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
moMental . OffsetPhase (tmOffsetPhase );
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
void CCrateBus::RenderParticles(void)
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CEntity * penParent = GetParent ();
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
if(m_bShowTrail && penParent != NULL )
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Particles_AfterBurner (penParent , 0.0f , 0.5f);
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
void CCrateBus::SpawnExplosion(INDEX iCharacter,FLOAT fAddY,FLOAT fSize)
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
FLOAT3D vOffset = FLOAT3D (0 , 0 , 0);
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
if(iCharacter >= 0)
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CAttachmentModelObject * pamo = GetModelObject () -> GetAttachmentModel (iCharacter );
|
|
||||||
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
if(pamo == NULL && fAddY >= 0){return ;}
|
|
||||||
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
GetModelObject () -> RemoveAttachmentModel (iCharacter );
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
m_ctMentals --;
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
INDEX iX = iCharacter % 2;
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
INDEX iZ = iCharacter / 2;
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
vOffset = FLOAT3D (- 1.0f + iX * 2.0f , 3.0f + (FRnd ()) * 1.0f + fAddY , - 14.5f + iZ * 2.8f) * m_fStretch ;
|
|
||||||
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
else
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
vOffset = FLOAT3D ((FRnd () - 0.5f) * 4.0f , 3.0f + (FRnd ()) * 1.0f + fAddY , (FRnd () - 0.5f) * 36.0f) * m_fStretch ;
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CPlacement3D plExplosion = GetPlacement ();
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
plExplosion . pl_PositionVector = plExplosion . pl_PositionVector + vOffset ;
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CEntityPointer penExplosion = CreateEntity (plExplosion , CLASS_BASIC_EFFECT );
|
|
||||||
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
ESpawnEffect eSpawnEffect ;
|
|
||||||
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawnEffect . colMuliplier = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawnEffect . betType = BET_BOMB ;
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawnEffect . vStretch = FLOAT3D (m_fExplosionStretch , m_fExplosionStretch , m_fExplosionStretch );
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
penExplosion -> Initialize (eSpawnEffect );
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawnEffect . betType = BET_EXPLOSION_DEBRIS ;
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CEntityPointer penExplosionDebris = CreateEntity (plExplosion , CLASS_BASIC_EFFECT );
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
penExplosionDebris -> Initialize (eSpawnEffect );
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawnEffect . betType = BET_EXPLOSION_SMOKE ;
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CEntityPointer penExplosionSmoke = CreateEntity (plExplosion , CLASS_BASIC_EFFECT );
|
|
||||||
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
penExplosionSmoke -> Initialize (eSpawnEffect );
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CPlacement3D CCrateBus::GetLerpedPlacement(void)const
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
return CEntity :: GetLerpedPlacement ();
|
|
||||||
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
BOOL CCrateBus::
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Die(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCrateBus_Die
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCrateBus::Die expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{FOREACHINLIST (CEntity , en_lnInParent , en_lhChildren , itenChild ){
|
|
||||||
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
itenChild -> SendEvent (ERangeModelDestruction ());
|
|
||||||
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}}
|
|
||||||
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
for(INDEX iChar = 0;iChar < CT_BIGHEADS ;iChar += 1)
|
|
||||||
#line 222 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 224 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
INDEX iX = iChar % 2;
|
|
||||||
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
INDEX iZ = iChar / 2;
|
|
||||||
#line 226 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
FLOAT fAddY = 1.0f * m_fStretch ;
|
|
||||||
#line 227 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
FLOAT3D vOffset = FLOAT3D (- 1.0f + iX * 2.0f , 3.0f + (FRnd ()) * 1.0f + fAddY , - 14.5f + iZ * 2.8f) * m_fStretch ;
|
|
||||||
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
FLOAT3D vPos = GetPlacement () . pl_PositionVector + vOffset ;
|
|
||||||
#line 229 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CEntityPointer penDebris = GetWorld () -> CreateEntity_t (CPlacement3D (vPos , ANGLE3D (0 , 0 , 0)) ,
|
|
||||||
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CTFILENAME ("Classes\\Debris.ecl"));
|
|
||||||
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
ESpawnDebris eSpawn ;
|
|
||||||
#line 233 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . bImmaterialASAP = FALSE ;
|
|
||||||
#line 234 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . fDustStretch = 4.0f;
|
|
||||||
#line 235 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . bCustomShading = FALSE ;
|
|
||||||
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . colDebris = C_WHITE | CT_OPAQUE ;
|
|
||||||
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . Eeibt = EIBT_FLESH ;
|
|
||||||
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . dptParticles = DPT_AFTERBURNER ;
|
|
||||||
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . betStain = BET_BLOODSTAINGROW ;
|
|
||||||
#line 240 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . pmd = GetModelDataForComponent (MODEL_HEAD );
|
|
||||||
#line 241 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . ptd = GetTextureDataForComponent (TEXTURE_HEAD );
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . ptdRefl = NULL ;
|
|
||||||
#line 243 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . ptdSpec = NULL ;
|
|
||||||
#line 244 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . ptdBump = NULL ;
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . iModelAnim = 0;
|
|
||||||
#line 246 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . fSize = m_fStretch ;
|
|
||||||
#line 247 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . vStretch = FLOAT3D (1 , 1 , 1);
|
|
||||||
#line 248 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
eSpawn . penFallFXPapa = NULL ;
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
penDebris -> Initialize (eSpawn );
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
FLOAT3D vSpeed = FLOAT3D (FRnd () - 0.5f , 0.25f + FRnd () * 0.75f , FRnd () - 0.5f) * 60.0f;
|
|
||||||
#line 254 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
FLOAT3D vRot = FLOAT3D (FRnd () - 0.5f , FRnd () - 0.5f , FRnd () - 0.5f) * 200.0f;
|
|
||||||
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
((CMovableEntity &) * penDebris ) . LaunchAsFreeProjectile (vSpeed , NULL );
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
((CMovableEntity &) * penDebris ) . SetDesiredRotation (vRot );
|
|
||||||
#line 258 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
GetModelObject () -> RemoveAttachmentModel (iChar );
|
|
||||||
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{for(INDEX iChar = 0;iChar < CT_BIGHEADS ;iChar += 3)
|
|
||||||
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SpawnExplosion (iChar , - 2.0f , 4.0f);
|
|
||||||
#line 264 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}}
|
|
||||||
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SwitchToEditorModel ();
|
|
||||||
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SetTimerAfter(2.0f);
|
|
||||||
Jump(STATE_CURRENT, 0x01600001, FALSE, EBegin());return TRUE;}BOOL CCrateBus::H0x01600001_Die_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01600001
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01600002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCrateBus::H0x01600002_Die_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01600002
|
|
||||||
;
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Destroy ();
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCrateBus::
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCrateBus_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCrateBus::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 278 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
if(m_bActive )
|
|
||||||
#line 279 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 280 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
InitAsModel ();
|
|
||||||
#line 281 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
else
|
|
||||||
#line 283 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 284 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 287 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 291 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SetModel (MODEL_CRATE_BUS );
|
|
||||||
#line 292 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SetModelMainTexture (TEXTURE_CRATE_BUS );
|
|
||||||
#line 294 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
m_bShowTrail = FALSE ;
|
|
||||||
#line 295 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
AddRiders ();
|
|
||||||
#line 296 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
GetModelObject () -> StretchModel (FLOAT3D (m_fStretch , m_fStretch , m_fStretch ));
|
|
||||||
#line 297 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
ModelChangeNotify ();
|
|
||||||
#line 299 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SetTimerAfter(0.1f);
|
|
||||||
Jump(STATE_CURRENT, 0x01600003, FALSE, EBegin());return TRUE;}BOOL CCrateBus::H0x01600003_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01600003
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01600004, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCrateBus::H0x01600004_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01600004
|
|
||||||
;
|
|
||||||
#line 301 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CEntity * penParent = GetParent ();
|
|
||||||
#line 302 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
if(penParent != NULL )
|
|
||||||
#line 303 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Particles_AfterBurner_Prepare (penParent );
|
|
||||||
#line 306 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}
|
|
||||||
#line 308 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x01600005, FALSE, EBegin());return TRUE;}BOOL CCrateBus::H0x01600005_Main_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01600005
|
|
||||||
switch(__eeInput.ee_slEvent)
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
{case(EVENTCODE_EBegin):{const EBegin&e= (EBegin&)__eeInput;
|
|
||||||
|
|
||||||
#line 312 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 313 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EActivate):{const EActivate&e= (EActivate&)__eeInput;
|
|
||||||
|
|
||||||
#line 316 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SwitchToModel ();
|
|
||||||
#line 317 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
m_bActive = TRUE ;
|
|
||||||
#line 318 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EDeactivate):{const EDeactivate&e= (EDeactivate&)__eeInput;
|
|
||||||
|
|
||||||
#line 321 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
SwitchToEditorModel ();
|
|
||||||
#line 322 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
m_bActive = FALSE ;
|
|
||||||
#line 323 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 324 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EEnvironmentStart):{const EEnvironmentStart&e= (EEnvironmentStart&)__eeInput;
|
|
||||||
|
|
||||||
#line 326 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
m_bShowTrail = TRUE ;
|
|
||||||
#line 327 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 328 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EStop):{const EStop&e= (EStop&)__eeInput;
|
|
||||||
|
|
||||||
#line 331 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CCrateBus_Die, TRUE, EVoid());return TRUE;
|
|
||||||
#line 332 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 333 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}ASSERT(FALSE);break;default:{
|
|
||||||
#line 335 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 336 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}ASSERT(FALSE);break;
|
|
||||||
#line 337 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
}return TRUE;}BOOL CCrateBus::H0x01600006_Main_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x01600006
|
|
||||||
; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,78 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_CrateBus_INCLUDED
|
|
||||||
#define _EntitiesMP_CrateBus_INCLUDED 1
|
|
||||||
#include <EntitiesMP/SpawnerProjectile.h>
|
|
||||||
#include <EntitiesMP/EnemyBase.h>
|
|
||||||
#include <EntitiesMP/BasicEffects.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CCrateBus_DLLClass;
|
|
||||||
class CCrateBus : public CMovableModelEntity {
|
|
||||||
public:
|
|
||||||
virtual BOOL IsTargetable(void) const { return TRUE; };
|
|
||||||
virtual const CTString &GetName(void) const { return m_strName; };
|
|
||||||
virtual BOOL IsImportant(void) const { return TRUE; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
BOOL m_bActive;
|
|
||||||
FLOAT m_fExplosionStretch;
|
|
||||||
FLOAT m_tmDeath;
|
|
||||||
CTString m_strName;
|
|
||||||
INDEX m_ctMentals;
|
|
||||||
BOOL m_bShowTrail;
|
|
||||||
FLOAT m_fStretch;
|
|
||||||
CTFileName m_fnmHeadTex01;
|
|
||||||
CTFileName m_fnmHeadTex02;
|
|
||||||
CTFileName m_fnmHeadTex03;
|
|
||||||
CTFileName m_fnmHeadTex04;
|
|
||||||
CTFileName m_fnmHeadTex05;
|
|
||||||
CTFileName m_fnmHeadTex06;
|
|
||||||
CTFileName m_fnmHeadTex07;
|
|
||||||
CTFileName m_fnmHeadTex08;
|
|
||||||
CTFileName m_fnmHeadTex09;
|
|
||||||
CTFileName m_fnmHeadTex10;
|
|
||||||
CTFileName m_fnmHeadTex11;
|
|
||||||
CTFileName m_fnmHeadTex12;
|
|
||||||
CTFileName m_fnmHeadTex13;
|
|
||||||
CTFileName m_fnmHeadTex14;
|
|
||||||
CTFileName m_fnmHeadTex15;
|
|
||||||
CTFileName m_fnmHeadTex16;
|
|
||||||
CTFileName m_fnmHeadTex17;
|
|
||||||
CTFileName m_fnmHeadTex18;
|
|
||||||
CTFileName m_fnmHeadTex19;
|
|
||||||
CTFileName m_fnmHeadTex20;
|
|
||||||
CTFileName m_fnmHeadTex21;
|
|
||||||
CTFileName m_fnmHeadTex22;
|
|
||||||
CTFileName m_fnmHeadTex23;
|
|
||||||
CTFileName m_fnmHeadTex24;
|
|
||||||
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
void AddRiders();
|
|
||||||
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
void RenderParticles(void);
|
|
||||||
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
void SpawnExplosion(INDEX iCharacter,FLOAT fAddY,FLOAT fSize);
|
|
||||||
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
CPlacement3D GetLerpedPlacement(void)const;
|
|
||||||
#define STATE_CCrateBus_Die 0x01600000
|
|
||||||
BOOL
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Die(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01600001_Die_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01600002_Die_02(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCrateBus_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01600003_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01600004_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01600005_Main_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x01600006_Main_04(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_CrateBus_INCLUDED
|
|
|
@ -1,89 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CCrateBus
|
|
||||||
|
|
||||||
CEntityProperty CCrateBus_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000160<<8)+1, offsetof(CCrateBus, m_bActive), "Active", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000160<<8)+2, offsetof(CCrateBus, m_fExplosionStretch), "Explosion Stretch", 'E', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000160<<8)+3, offsetof(CCrateBus, m_tmDeath), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x00000160<<8)+4, offsetof(CCrateBus, m_strName), "Name", 'N', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_INDEX, NULL, (0x00000160<<8)+5, offsetof(CCrateBus, m_ctMentals), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x00000160<<8)+6, offsetof(CCrateBus, m_bShowTrail), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x00000160<<8)+7, offsetof(CCrateBus, m_fStretch), "Stretch", 'S', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+11, offsetof(CCrateBus, m_fnmHeadTex01), "Head texture 01", 'H', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+12, offsetof(CCrateBus, m_fnmHeadTex02), "Head texture 02", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+13, offsetof(CCrateBus, m_fnmHeadTex03), "Head texture 03", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+14, offsetof(CCrateBus, m_fnmHeadTex04), "Head texture 04", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+15, offsetof(CCrateBus, m_fnmHeadTex05), "Head texture 05", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+16, offsetof(CCrateBus, m_fnmHeadTex06), "Head texture 06", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+17, offsetof(CCrateBus, m_fnmHeadTex07), "Head texture 07", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+18, offsetof(CCrateBus, m_fnmHeadTex08), "Head texture 08", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+19, offsetof(CCrateBus, m_fnmHeadTex09), "Head texture 09", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+20, offsetof(CCrateBus, m_fnmHeadTex10), "Head texture 10", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+21, offsetof(CCrateBus, m_fnmHeadTex11), "Head texture 11", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+22, offsetof(CCrateBus, m_fnmHeadTex12), "Head texture 12", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+23, offsetof(CCrateBus, m_fnmHeadTex13), "Head texture 13", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+24, offsetof(CCrateBus, m_fnmHeadTex14), "Head texture 14", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+25, offsetof(CCrateBus, m_fnmHeadTex15), "Head texture 15", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+26, offsetof(CCrateBus, m_fnmHeadTex16), "Head texture 16", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+27, offsetof(CCrateBus, m_fnmHeadTex17), "Head texture 17", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+28, offsetof(CCrateBus, m_fnmHeadTex18), "Head texture 18", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+29, offsetof(CCrateBus, m_fnmHeadTex19), "Head texture 19", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+30, offsetof(CCrateBus, m_fnmHeadTex20), "Head texture 20", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+31, offsetof(CCrateBus, m_fnmHeadTex21), "Head texture 21", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+32, offsetof(CCrateBus, m_fnmHeadTex22), "Head texture 22", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+33, offsetof(CCrateBus, m_fnmHeadTex23), "Head texture 23", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000160<<8)+34, offsetof(CCrateBus, m_fnmHeadTex24), "Head texture 24", 0, 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CCrateBus_propertiesct ARRAYCOUNT(CCrateBus_properties)
|
|
||||||
|
|
||||||
CEntityComponent CCrateBus_components[] = {
|
|
||||||
#define CLASS_BASIC_EFFECT ((0x00000160<<8)+1)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASIC_EFFECT, "EFNM" "Classes\\BasicEffect.ecl"),
|
|
||||||
#define CLASS_PROJECTILE ((0x00000160<<8)+2)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_PROJECTILE, "EFNM" "Classes\\Projectile.ecl"),
|
|
||||||
#define CLASS_SPAWNER_PROJECTILE ((0x00000160<<8)+3)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_SPAWNER_PROJECTILE, "EFNM" "Classes\\SpawnerProjectile.ecl"),
|
|
||||||
#define MODEL_MENTAL ((0x00000160<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_MENTAL, "EFNM" "ModelsMP\\Enemies\\Mental\\Mental.mdl"),
|
|
||||||
#define TEXTURE_MENTAL ((0x00000160<<8)+11)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_MENTAL, "EFNM" "ModelsMP\\Enemies\\Mental\\Mental.tex"),
|
|
||||||
#define MODEL_CRATE_BUS ((0x00000160<<8)+12)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CRATE_BUS, "EFNM" "ModelsMP\\CutSequences\\CrateBus\\CrateBus.mdl"),
|
|
||||||
#define TEXTURE_CRATE_BUS ((0x00000160<<8)+13)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_CRATE_BUS, "EFNM" "ModelsMP\\CutSequences\\CrateBus\\CrateBus.tex"),
|
|
||||||
#define MODEL_HEAD ((0x00000160<<8)+14)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_HEAD, "EFNM" "ModelsMP\\Enemies\\Mental\\Head.mdl"),
|
|
||||||
#define TEXTURE_HEAD ((0x00000160<<8)+15)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_HEAD, "EFNM" "ModelsMP\\Enemies\\Mental\\Head.tex"),
|
|
||||||
};
|
|
||||||
#define CCrateBus_componentsct ARRAYCOUNT(CCrateBus_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CCrateBus_handlers[] = {
|
|
||||||
{0x01600000, -1, CEntity::pEventHandler(&CCrateBus::
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Die),DEBUGSTRING("CCrateBus::Die")},
|
|
||||||
{0x01600001, -1, CEntity::pEventHandler(&CCrateBus::H0x01600001_Die_01), DEBUGSTRING("CCrateBus::H0x01600001_Die_01")},
|
|
||||||
{0x01600002, -1, CEntity::pEventHandler(&CCrateBus::H0x01600002_Die_02), DEBUGSTRING("CCrateBus::H0x01600002_Die_02")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CCrateBus::
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CrateBus.es"
|
|
||||||
Main),DEBUGSTRING("CCrateBus::Main")},
|
|
||||||
{0x01600003, -1, CEntity::pEventHandler(&CCrateBus::H0x01600003_Main_01), DEBUGSTRING("CCrateBus::H0x01600003_Main_01")},
|
|
||||||
{0x01600004, -1, CEntity::pEventHandler(&CCrateBus::H0x01600004_Main_02), DEBUGSTRING("CCrateBus::H0x01600004_Main_02")},
|
|
||||||
{0x01600005, -1, CEntity::pEventHandler(&CCrateBus::H0x01600005_Main_03), DEBUGSTRING("CCrateBus::H0x01600005_Main_03")},
|
|
||||||
{0x01600006, -1, CEntity::pEventHandler(&CCrateBus::H0x01600006_Main_04), DEBUGSTRING("CCrateBus::H0x01600006_Main_04")},
|
|
||||||
};
|
|
||||||
#define CCrateBus_handlersct ARRAYCOUNT(CCrateBus_handlers)
|
|
||||||
|
|
||||||
CEntity *CCrateBus_New(void) { return new CCrateBus; };
|
|
||||||
void CCrateBus_OnInitClass(void) {};
|
|
||||||
void CCrateBus_OnEndClass(void) {};
|
|
||||||
void CCrateBus_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CCrateBus_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CCrateBus_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CCrateBus_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CCrateBus_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CCrateBus, CMovableModelEntity, "CrateBus", "Thumbnails\\Mental.tbn", 0x00000160);
|
|
||||||
DECLARE_CTFILENAME(_fnmCCrateBus_tbn, "Thumbnails\\Mental.tbn");
|
|
|
@ -1,275 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "Models/Enemies/Mental/Mental.h"
|
|
||||||
#include "Models/CutSequences/CrateRider/Crate.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/CrateRider.h>
|
|
||||||
#include <EntitiesMP/CrateRider_tables.h>
|
|
||||||
#line 13 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
|
|
||||||
// info structure
|
|
||||||
static EntityInfo eiCrate = {
|
|
||||||
EIBT_FLESH, 500.0f,
|
|
||||||
0.0f, 1.5f, 0.0f, // source (eyes)
|
|
||||||
0.0f, 1.0f, 0.0f, // target (body)
|
|
||||||
};
|
|
||||||
|
|
||||||
#define GREET_SENSE_RANGE 10.0f
|
|
||||||
#define GREET_SENSE_DELAY 10.0f
|
|
||||||
|
|
||||||
|
|
||||||
void CCrateRider::SetDefaultProperties(void) {
|
|
||||||
m_fnmHeadTex1 = CTString("");
|
|
||||||
m_fnmHeadTex2 = CTString("");
|
|
||||||
m_fnmDriveSnd = CTString("");
|
|
||||||
CEnemyBase::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 58 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void * CCrateRider::GetEntityInfo(void)
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
{
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
return & eiCrate ;
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::Precache(void)
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
{
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
CEnemyBase :: Precache ();
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
PrecacheClass (CLASS_DEBRIS );
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_apt1 . Precache (m_fnmHeadTex1 );
|
|
||||||
#line 70 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_apt2 . Precache (m_fnmHeadTex2 );
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_aps . Precache (m_fnmDriveSnd );
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
INDEX CCrateRider::AnimForDamage(FLOAT fDamage) {
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
INDEX iAnim ;
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
iAnim = 0;
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
StartModelAnim (iAnim , 0);
|
|
||||||
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
return iAnim ;
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
INDEX CCrateRider::AnimForDeath(void) {
|
|
||||||
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
INDEX iAnim ;
|
|
||||||
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
iAnim = 0;
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
StartModelAnim (iAnim , 0);
|
|
||||||
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
return iAnim ;
|
|
||||||
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::DeathNotify(void) {
|
|
||||||
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
en_fDensity = 500.0f;
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::StandingAnim(void) {
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
StartModelAnim (CRATE_ANIM_DEFAULT , AOF_LOOPING | AOF_NORESTART | AOF_SMOOTHCHANGE );
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
CModelObject * pmo0 = & (GetModelObject () -> GetAttachmentModel (0) -> amo_moModelObject );
|
|
||||||
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
pmo0 -> PlayAnim (MENTAL_ANIM_CRATEANIMLEFTSEATING , AOF_LOOPING | AOF_NORESTART | AOF_SMOOTHCHANGE );
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
CModelObject * pmo1 = & (GetModelObject () -> GetAttachmentModel (1) -> amo_moModelObject );
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
pmo1 -> PlayAnim (MENTAL_ANIM_CRATEANIMRIGHTSEATING , AOF_LOOPING | AOF_NORESTART | AOF_SMOOTHCHANGE );
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_soSound . Stop ();
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::WalkingAnim(void) {
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
RunningAnim ();
|
|
||||||
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
StartModelAnim (CRATE_ANIM_DRIVE , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::RunningAnim(void)
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
{
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
if(m_fnmDriveSnd != ""){
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
PlaySound (m_soSound , m_fnmDriveSnd , SOF_3D );
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
CModelObject * pmo0 = & (GetModelObject () -> GetAttachmentModel (0) -> amo_moModelObject );
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
pmo0 -> PlayAnim (MENTAL_ANIM_CRATEANIMLEFT , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
CModelObject * pmo1 = & (GetModelObject () -> GetAttachmentModel (1) -> amo_moModelObject );
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
pmo1 -> PlayAnim (MENTAL_ANIM_CRATEANIMRIGHT , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
StartModelAnim (CRATE_ANIM_DRIVE , AOF_LOOPING | AOF_NORESTART );
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::RotatingAnim(void) {
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
RunningAnim ();
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::IdleSound(void) {
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::SightSound(void) {
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::WoundSound(void) {
|
|
||||||
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::DeathSound(void) {
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void CCrateRider::AddRider(INDEX i,const CTFileName & fnmHead)
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
{
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
AddAttachment (i , MODEL_MENTAL , TEXTURE_MENTAL );
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
CModelObject * pmoMain = & (GetModelObject () -> GetAttachmentModel (i ) -> amo_moModelObject );
|
|
||||||
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
pmoMain -> PlayAnim (i == 0 ? MENTAL_ANIM_CRATEANIMLEFT : MENTAL_ANIM_CRATEANIMRIGHT , AOF_LOOPING );
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
AddAttachmentToModel (this , * pmoMain , 0 , MODEL_HEAD , TEXTURE_MENTAL , 0 , 0 , 0);
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
CModelObject * pmoHead = & (pmoMain -> GetAttachmentModel (0) -> amo_moModelObject );
|
|
||||||
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
if(fnmHead != ""){
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
try {
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
pmoHead -> mo_toTexture . SetData_t (fnmHead );
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}catch (char * strError ){
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
CPrintF ("%s\n" , strError );
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
}
|
|
||||||
BOOL CCrateRider::
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCrateRider_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCrateRider::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
InitAsModel ();
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_WALKING | EPF_HASLUNGS );
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
SetCollisionFlags (ECF_MODEL );
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
SetFlags (GetFlags () | ENF_ALIVE );
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
SetHealth (1.0f);
|
|
||||||
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fMaxHealth = 1.0f;
|
|
||||||
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
en_tmMaxHoldBreath = 5.0f;
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
en_fDensity = 2000.0f;
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fBlowUpSize = 2.0f;
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
SetModel (MODEL_CRATE );
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
SetModelMainTexture (TEXTURE_CRATE );
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
AddRider (0 , m_fnmHeadTex1 );
|
|
||||||
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
AddRider (1 , m_fnmHeadTex2 );
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fWalkSpeed =
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fAttackRunSpeed =
|
|
||||||
#line 187 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fCloseRunSpeed = 1.0f;
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_aWalkRotateSpeed = AngleDeg (30.0f);
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_aAttackRotateSpeed = AngleDeg (30);
|
|
||||||
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_aCloseRotateSpeed = AngleDeg (30);
|
|
||||||
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fAttackDistance = 50.0f;
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fCloseDistance = 0.0f;
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fStopDistance = 5.0f;
|
|
||||||
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fAttackFireTime = 2.0f;
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fCloseFireTime = 1.0f;
|
|
||||||
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fIgnoreRange = 200.0f;
|
|
||||||
#line 199 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fBlowUpAmount = 0.0f;
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fBodyParts = 4;
|
|
||||||
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_fDamageWounded = 1.0f;
|
|
||||||
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_iScore = 0;
|
|
||||||
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_bBlind = TRUE ;
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
m_bRobotBlowup = TRUE ;
|
|
||||||
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
const FLOAT fSize = 0.6f;
|
|
||||||
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
GetModelObject () -> StretchModel (FLOAT3D (fSize , fSize , fSize ));
|
|
||||||
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
ModelChangeNotify ();
|
|
||||||
#line 211 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
StandingAnim ();
|
|
||||||
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
Jump(STATE_CURRENT, STATE_CEnemyBase_MainLoop, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,66 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_CrateRider_INCLUDED
|
|
||||||
#define _EntitiesMP_CrateRider_INCLUDED 1
|
|
||||||
#include <EntitiesMP/EnemyBase.h>
|
|
||||||
#include <EntitiesMP/BasicEffects.h>
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CCrateRider_DLLClass;
|
|
||||||
class CCrateRider : public CEnemyBase {
|
|
||||||
public:
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
CTFileName m_fnmHeadTex1;
|
|
||||||
CTFileName m_fnmHeadTex2;
|
|
||||||
CTFileName m_fnmDriveSnd;
|
|
||||||
CAutoPrecacheSound m_aps;
|
|
||||||
CAutoPrecacheTexture m_apt1;
|
|
||||||
CAutoPrecacheTexture m_apt2;
|
|
||||||
|
|
||||||
#line 58 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void * GetEntityInfo(void);
|
|
||||||
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void Precache(void);
|
|
||||||
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
INDEX AnimForDamage(FLOAT fDamage);
|
|
||||||
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
INDEX AnimForDeath(void);
|
|
||||||
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void DeathNotify(void);
|
|
||||||
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void StandingAnim(void);
|
|
||||||
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void WalkingAnim(void);
|
|
||||||
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void RunningAnim(void);
|
|
||||||
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void RotatingAnim(void);
|
|
||||||
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void IdleSound(void);
|
|
||||||
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void SightSound(void);
|
|
||||||
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void WoundSound(void);
|
|
||||||
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void DeathSound(void);
|
|
||||||
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
void AddRider(INDEX i,const CTFileName & fnmHead);
|
|
||||||
#define STATE_CCrateRider_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_CrateRider_INCLUDED
|
|
|
@ -1,54 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CCrateRider
|
|
||||||
|
|
||||||
CEntityProperty CCrateRider_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000155<<8)+1, offsetof(CCrateRider, m_fnmHeadTex1), "Head texture1", 'H', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000155<<8)+2, offsetof(CCrateRider, m_fnmHeadTex2), "Head texture2", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x00000155<<8)+3, offsetof(CCrateRider, m_fnmDriveSnd), "Drive sound", 'S', 0x7F0000FFUL, 0),
|
|
||||||
};
|
|
||||||
#define CCrateRider_propertiesct ARRAYCOUNT(CCrateRider_properties)
|
|
||||||
|
|
||||||
CEntityComponent CCrateRider_components[] = {
|
|
||||||
#define CLASS_BASE ((0x00000155<<8)+1)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASE, "EFNM" "Classes\\EnemyBase.ecl"),
|
|
||||||
#define CLASS_DEBRIS ((0x00000155<<8)+2)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_DEBRIS, "EFNM" "Classes\\Debris.ecl"),
|
|
||||||
#define CLASS_BLOOD_SPRAY ((0x00000155<<8)+3)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BLOOD_SPRAY, "EFNM" "Classes\\BloodSpray.ecl"),
|
|
||||||
#define CLASS_BASIC_EFFECT ((0x00000155<<8)+4)
|
|
||||||
CEntityComponent(ECT_CLASS, CLASS_BASIC_EFFECT, "EFNM" "Classes\\BasicEffect.ecl"),
|
|
||||||
#define MODEL_MENTAL ((0x00000155<<8)+10)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_MENTAL, "EFNM" "Models\\Enemies\\Mental\\Mental.mdl"),
|
|
||||||
#define TEXTURE_MENTAL ((0x00000155<<8)+11)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_MENTAL, "EFNM" "Models\\Enemies\\Mental\\Mental.tex"),
|
|
||||||
#define MODEL_HEAD ((0x00000155<<8)+12)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_HEAD, "EFNM" "Models\\Enemies\\Mental\\Head.mdl"),
|
|
||||||
#define MODEL_CRATE ((0x00000155<<8)+13)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_CRATE, "EFNM" "Models\\CutSequences\\CrateRider\\Crate.mdl"),
|
|
||||||
#define TEXTURE_CRATE ((0x00000155<<8)+14)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_CRATE, "EFNM" "Models\\CutSequences\\CrateRider\\Crate.tex"),
|
|
||||||
#define TEXTURE_BUMP ((0x00000155<<8)+15)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_BUMP, "EFNM" "Models\\CutSequences\\Bridge\\BridgeBump.tex"),
|
|
||||||
};
|
|
||||||
#define CCrateRider_componentsct ARRAYCOUNT(CCrateRider_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CCrateRider_handlers[] = {
|
|
||||||
{1, -1, CEntity::pEventHandler(&CCrateRider::
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/CrateRider.es"
|
|
||||||
Main),DEBUGSTRING("CCrateRider::Main")},
|
|
||||||
};
|
|
||||||
#define CCrateRider_handlersct ARRAYCOUNT(CCrateRider_handlers)
|
|
||||||
|
|
||||||
CEntity *CCrateRider_New(void) { return new CCrateRider; };
|
|
||||||
void CCrateRider_OnInitClass(void) {};
|
|
||||||
void CCrateRider_OnEndClass(void) {};
|
|
||||||
void CCrateRider_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CCrateRider_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CCrateRider_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CCrateRider_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CCrateRider_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CCrateRider, CEnemyBase, "CrateRider", "Thumbnails\\Mental.tbn", 0x00000155);
|
|
||||||
DECLARE_CTFILENAME(_fnmCCrateRider_tbn, "Thumbnails\\Mental.tbn");
|
|
|
@ -1,640 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
#include "EntitiesMP/WorldSettingsController.h"
|
|
||||||
#include "EntitiesMP/BackgroundViewer.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/CreditsHolder.h>
|
|
||||||
#include <EntitiesMP/CreditsHolder_tables.h>
|
|
||||||
#line 10 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
|
|
||||||
|
|
||||||
#define CTA_LEFT 1
|
|
||||||
#define CTA_RIGHT 2
|
|
||||||
#define CTA_CENTER 3
|
|
||||||
|
|
||||||
class CCreditEntry {
|
|
||||||
public:
|
|
||||||
CTString strTitle;
|
|
||||||
CTString strName;
|
|
||||||
CTString strQuote;
|
|
||||||
INDEX iAlign;
|
|
||||||
INDEX iX, iY;
|
|
||||||
FLOAT fRelSize;
|
|
||||||
FLOAT fWait;
|
|
||||||
};
|
|
||||||
|
|
||||||
static CStaticStackArray<CCreditEntry> _acceEntries;
|
|
||||||
#define BLANK_TIME 1.0f
|
|
||||||
|
|
||||||
void CCreditsHolder::SetDefaultProperties(void) {
|
|
||||||
m_strName = "Credits holder";
|
|
||||||
m_strDescription = "";
|
|
||||||
m_fnmMessage = CTString("");
|
|
||||||
m_fMyTimer = 0.0f;
|
|
||||||
m_fMyTimerLast = 0.0f;
|
|
||||||
m_iTotalEntries = 0;
|
|
||||||
m_bEnd = FALSE ;
|
|
||||||
m_penEndCreditsTrigger = NULL;
|
|
||||||
m_bDataError = FALSE ;
|
|
||||||
CRationalEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
const CTString & CCreditsHolder::GetDescription(void)const {
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
((CTString &) m_strDescription ) . PrintF ("%s" , m_fnmMessage . FileName ());
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return m_strDescription ;
|
|
||||||
#line 62 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
CCreditsHolder::CCreditsHolder(void)
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
bDataLoaded = FALSE ;
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
BOOL CCreditsHolder::ReloadData(void)
|
|
||||||
#line 70 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
m_bDataError = FALSE ;
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(! Credits_On (m_fnmMessage ))
|
|
||||||
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 74 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Credits_Off ();
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(! LoadFont ())
|
|
||||||
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Credits_Off ();
|
|
||||||
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
BOOL CCreditsHolder::LoadOneFile(const CTFileName & fnm)
|
|
||||||
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(fnm == ""){return FALSE ;}
|
|
||||||
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
try
|
|
||||||
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CTFileStream strm ;
|
|
||||||
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . Open_t (fnm );
|
|
||||||
#line 96 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CTString strCheck ;
|
|
||||||
#line 97 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . GetLine_t (strCheck );
|
|
||||||
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strCheck . TrimSpacesRight ();
|
|
||||||
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(strCheck != "CREDITS"){return FALSE ;};
|
|
||||||
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
m_iTotalEntries = 0;
|
|
||||||
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
while(! strm . AtEOF ())
|
|
||||||
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CTString strLine ;
|
|
||||||
#line 105 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CTString strArgs ;
|
|
||||||
#line 106 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CTString strTmp ;
|
|
||||||
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CCreditEntry cceEntry ;
|
|
||||||
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . GetLine_t (strLine );
|
|
||||||
#line 110 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . GetLine_t (strLine );
|
|
||||||
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strLine . TrimSpacesRight ();
|
|
||||||
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(strLine == "END"){
|
|
||||||
#line 113 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . Close ();
|
|
||||||
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 115 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}else if(strLine != "ENTRY"){
|
|
||||||
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries . PopAll ();
|
|
||||||
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . GetLine_t (strArgs );
|
|
||||||
#line 120 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strArgs . ScanF ("%d,%d" , & cceEntry . iX , & cceEntry . iY );
|
|
||||||
#line 121 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . GetLine_t (strArgs );
|
|
||||||
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strArgs . ScanF ("%f" , & cceEntry . fRelSize );
|
|
||||||
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . GetLine_t (strArgs );
|
|
||||||
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strArgs . TrimSpacesRight ();
|
|
||||||
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(strArgs == "CENTER"){cceEntry . iAlign = CTA_CENTER ;}
|
|
||||||
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
else if(strArgs == "RIGHT"){cceEntry . iAlign = CTA_RIGHT ;}
|
|
||||||
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
else if(TRUE ){cceEntry . iAlign = CTA_LEFT ;}
|
|
||||||
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . GetLine_t (cceEntry . strTitle );
|
|
||||||
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . GetLine_t (cceEntry . strName );
|
|
||||||
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . GetLine_t (cceEntry . strQuote );
|
|
||||||
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . GetLine_t (strArgs );
|
|
||||||
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strArgs . ScanF ("%f" , & cceEntry . fWait );
|
|
||||||
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries . Push () = cceEntry ;
|
|
||||||
#line 134 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
m_iTotalEntries ++;
|
|
||||||
#line 135 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
strm . Close ();
|
|
||||||
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
catch (char * strError )
|
|
||||||
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CPrintF ("%s\n" , strError );
|
|
||||||
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 144 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
BOOL CCreditsHolder::LoadFont()
|
|
||||||
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
try
|
|
||||||
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_fdMedium . Load_t (CTFILENAME ("Fonts\\Display3-normal.fnt"));
|
|
||||||
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
catch (char * strError )
|
|
||||||
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 155 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CPrintF ("%s\n" , strError );
|
|
||||||
#line 156 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return FALSE ;
|
|
||||||
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return TRUE ;
|
|
||||||
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
BOOL CCreditsHolder::Credits_On(CTFileName fnCreditsText)
|
|
||||||
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries . PopAll ();
|
|
||||||
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return LoadOneFile (fnCreditsText );
|
|
||||||
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
void CCreditsHolder::Credits_Off(void)
|
|
||||||
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries . Clear ();
|
|
||||||
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT CCreditsHolder::Credits_Render(CCreditsHolder * penThis,CDrawPort * pdp)
|
|
||||||
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(m_bDataError ){return 0;}
|
|
||||||
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(! bDataLoaded ){
|
|
||||||
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(! ReloadData ()){
|
|
||||||
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
m_bDataError = TRUE ;
|
|
||||||
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return 0;
|
|
||||||
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
bDataLoaded = TRUE ;
|
|
||||||
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return 1;
|
|
||||||
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 188 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
PIX pixW = 0;
|
|
||||||
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
PIX pixH = 0;
|
|
||||||
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CTString strEmpty ;
|
|
||||||
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fTime = Lerp (m_fMyTimerLast , m_fMyTimer , _pTimer -> GetLerpFactor ());
|
|
||||||
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CDrawPort * pdpCurr = pdp ;
|
|
||||||
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> Unlock ();
|
|
||||||
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdpCurr -> Lock ();
|
|
||||||
#line 199 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pixW = pdpCurr -> GetWidth ();
|
|
||||||
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pixH = pdpCurr -> GetHeight ();
|
|
||||||
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fResFactor = pixH / 480.0f;
|
|
||||||
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdpCurr -> SetFont (_pfdDisplayFont );
|
|
||||||
#line 207 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
BOOL bOver = FALSE ;
|
|
||||||
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fPassed = 0.0f;
|
|
||||||
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fStart = 0.0f;
|
|
||||||
#line 211 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
INDEX iNextItem = 0;
|
|
||||||
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
for(INDEX i = 0;i < _acceEntries . Count ();i ++){
|
|
||||||
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(_acceEntries [ i ] . fWait != 0.0f){
|
|
||||||
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
fPassed += _acceEntries [ i ] . fWait ;
|
|
||||||
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(fPassed > fTime ){
|
|
||||||
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
break ;
|
|
||||||
#line 218 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}else {
|
|
||||||
#line 219 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
iNextItem = i + 1;
|
|
||||||
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
fStart = fPassed ;
|
|
||||||
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(iNextItem >= _acceEntries . Count ())
|
|
||||||
#line 222 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
bOver = TRUE ;
|
|
||||||
#line 224 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 226 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 227 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 229 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(! bOver ){
|
|
||||||
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
while(TRUE ){
|
|
||||||
#line 231 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
BOOL bLast = FALSE ;
|
|
||||||
#line 232 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(_acceEntries [ iNextItem ] . fWait != 0.0f){bLast = TRUE ;};
|
|
||||||
#line 233 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fFade = CalculateRatio (fTime , fStart , fPassed - BLANK_TIME , 0.2f , 0.2f);
|
|
||||||
#line 234 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetFont (_pfdDisplayFont );
|
|
||||||
#line 235 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetTextAspect (1.0f);
|
|
||||||
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fTextSize01 = 1.2f * _acceEntries [ iNextItem ] . fRelSize ;
|
|
||||||
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fTextSize02 = 2.0f * _acceEntries [ iNextItem ] . fRelSize ;
|
|
||||||
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fTextSize03 = 0.75f * _acceEntries [ iNextItem ] . fRelSize ;
|
|
||||||
#line 240 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fTextHeight = 15.0f;
|
|
||||||
#line 241 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fSpacing01 = 1.2f;
|
|
||||||
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fSpacing02 = 1.1f;
|
|
||||||
#line 244 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(_acceEntries [ iNextItem ] . iAlign == CTA_CENTER ){
|
|
||||||
#line 245 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fYY = _acceEntries [ iNextItem ] . iY * fResFactor ;
|
|
||||||
#line 247 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetTextScaling (fTextSize01 * fResFactor );
|
|
||||||
#line 248 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> PutTextC (_acceEntries [ iNextItem ] . strTitle ,
|
|
||||||
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries [ iNextItem ] . iX * fResFactor , fYY ,
|
|
||||||
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
C_WHITE | (INDEX) (fFade * 255));
|
|
||||||
#line 251 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
fYY += fTextSize01 * fResFactor * fTextHeight * fSpacing01 ;
|
|
||||||
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetFont (& _fdMedium );
|
|
||||||
#line 254 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetTextScaling (fTextSize02 * fResFactor );
|
|
||||||
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> PutTextC (_acceEntries [ iNextItem ] . strName ,
|
|
||||||
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries [ iNextItem ] . iX * fResFactor , fYY ,
|
|
||||||
#line 257 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
C_WHITE | (INDEX) (fFade * 255));
|
|
||||||
#line 258 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
fYY += fTextSize02 * fResFactor * fTextHeight * fSpacing02 ;
|
|
||||||
#line 260 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetTextScaling (fTextSize03 * fResFactor );
|
|
||||||
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> PutTextC (_acceEntries [ iNextItem ] . strQuote ,
|
|
||||||
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries [ iNextItem ] . iX * fResFactor , fYY ,
|
|
||||||
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
C_WHITE | (INDEX) (fFade * 255));
|
|
||||||
#line 265 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}else if(_acceEntries [ iNextItem ] . iAlign == CTA_RIGHT ){
|
|
||||||
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fYY = _acceEntries [ iNextItem ] . iY * fResFactor ;
|
|
||||||
#line 268 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetTextScaling (fTextSize01 * fResFactor );
|
|
||||||
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> PutTextR (_acceEntries [ iNextItem ] . strTitle ,
|
|
||||||
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries [ iNextItem ] . iX * fResFactor , fYY ,
|
|
||||||
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
C_WHITE | (INDEX) (fFade * 255));
|
|
||||||
#line 272 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
fYY += fTextSize01 * fResFactor * fTextHeight * fSpacing01 ;
|
|
||||||
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetTextScaling (fTextSize02 * fResFactor );
|
|
||||||
#line 275 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> PutTextR (_acceEntries [ iNextItem ] . strName ,
|
|
||||||
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries [ iNextItem ] . iX * fResFactor , fYY ,
|
|
||||||
#line 277 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
C_WHITE | (INDEX) (fFade * 255));
|
|
||||||
#line 278 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
fYY += fTextSize02 * fResFactor * fTextHeight * fSpacing02 ;
|
|
||||||
#line 280 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetTextScaling (fTextSize03 * fResFactor );
|
|
||||||
#line 281 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> PutTextR (_acceEntries [ iNextItem ] . strQuote ,
|
|
||||||
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries [ iNextItem ] . iX * fResFactor , fYY ,
|
|
||||||
#line 283 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
C_WHITE | (INDEX) (fFade * 255));
|
|
||||||
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}else if(TRUE ){
|
|
||||||
#line 286 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT fYY = _acceEntries [ iNextItem ] . iY * fResFactor ;
|
|
||||||
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetTextScaling (fTextSize01 * fResFactor );
|
|
||||||
#line 289 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> PutText (_acceEntries [ iNextItem ] . strTitle ,
|
|
||||||
#line 290 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries [ iNextItem ] . iX * fResFactor , fYY ,
|
|
||||||
#line 291 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
C_WHITE | (INDEX) (fFade * 255));
|
|
||||||
#line 292 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
fYY += fTextSize01 * fResFactor * fTextHeight * fSpacing01 ;
|
|
||||||
#line 294 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetTextScaling (fTextSize02 * fResFactor );
|
|
||||||
#line 295 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> PutText (_acceEntries [ iNextItem ] . strName ,
|
|
||||||
#line 296 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries [ iNextItem ] . iX * fResFactor , fYY ,
|
|
||||||
#line 297 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
C_WHITE | (INDEX) (fFade * 255));
|
|
||||||
#line 298 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
fYY += fTextSize02 * fResFactor * fTextHeight * fSpacing02 ;
|
|
||||||
#line 300 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> SetTextScaling (fTextSize03 * fResFactor );
|
|
||||||
#line 301 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> PutText (_acceEntries [ iNextItem ] . strQuote ,
|
|
||||||
#line 302 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
_acceEntries [ iNextItem ] . iX * fResFactor , fYY ,
|
|
||||||
#line 303 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
C_WHITE | (INDEX) (fFade * 255));
|
|
||||||
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 307 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
iNextItem ++;
|
|
||||||
#line 308 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(iNextItem >= _acceEntries . Count () || bLast ){
|
|
||||||
#line 309 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
bOver = TRUE ;
|
|
||||||
#line 310 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
break ;
|
|
||||||
#line 311 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 312 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 313 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 315 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdpCurr -> Unlock ();
|
|
||||||
#line 316 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pdp -> Lock ();
|
|
||||||
#line 318 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(bOver ){
|
|
||||||
#line 319 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return 0;
|
|
||||||
#line 320 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}else {
|
|
||||||
#line 321 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return 1;
|
|
||||||
#line 322 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 323 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
BOOL CCreditsHolder::
|
|
||||||
#line 327 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
WaitScrollingToEnd(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCreditsHolder_WaitScrollingToEnd
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCreditsHolder::WaitScrollingToEnd expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 329 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Jump(STATE_CURRENT,0x00f00003, FALSE, EInternal());return TRUE;}BOOL CCreditsHolder::H0x00f00003_WaitScrollingToEnd_03(const CEntityEvent &__eeInput)
|
|
||||||
#line 330 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00f00003
|
|
||||||
if(!(! m_bEnd )){ Jump(STATE_CURRENT,0x00f00004, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 331 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
SetTimerAfter(_pTimer -> TickQuantum );
|
|
||||||
Jump(STATE_CURRENT, 0x00f00001, FALSE, EBegin());return TRUE;}BOOL CCreditsHolder::H0x00f00001_WaitScrollingToEnd_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00f00001
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x00f00002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCreditsHolder::H0x00f00002_WaitScrollingToEnd_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00f00002
|
|
||||||
;
|
|
||||||
#line 332 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
m_fMyTimerLast = m_fMyTimer ;
|
|
||||||
#line 333 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
m_fMyTimer += _pTimer -> TickQuantum / _pNetwork -> GetRealTimeFactor ();Jump(STATE_CURRENT,0x00f00003, FALSE, EInternal());return TRUE;
|
|
||||||
#line 334 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}BOOL CCreditsHolder::H0x00f00004_WaitScrollingToEnd_04(const CEntityEvent &__eeInput) {
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00f00004
|
|
||||||
|
|
||||||
#line 335 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Return(STATE_CURRENT,EStop ());
|
|
||||||
#line 335 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CCreditsHolder::
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CCreditsHolder_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CCreditsHolder::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 340 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 341 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 342 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 345 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
SetModel (MODEL_HOLDER );
|
|
||||||
#line 346 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
SetModelMainTexture (TEXTURE_HOLDER );
|
|
||||||
#line 348 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
SetTimerAfter(0.05f);
|
|
||||||
Jump(STATE_CURRENT, 0x00f00005, FALSE, EBegin());return TRUE;}BOOL CCreditsHolder::H0x00f00005_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00f00005
|
|
||||||
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x00f00006, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CCreditsHolder::H0x00f00006_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00f00006
|
|
||||||
;
|
|
||||||
#line 350 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(! Credits_On (m_fnmMessage ))
|
|
||||||
#line 351 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 352 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CPrintF ("Error loading credits file '%s'!\n" , m_fnmMessage );
|
|
||||||
#line 353 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Credits_Off ();
|
|
||||||
#line 354 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 354 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
m_bDataError = FALSE ;
|
|
||||||
#line 358 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x00f00007, FALSE, EBegin());return TRUE;}BOOL CCreditsHolder::H0x00f00007_Main_03(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00f00007
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_EStart):
|
|
||||||
#line 360 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{const EStart&eStart= (EStart&)__eeInput;
|
|
||||||
|
|
||||||
#line 361 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CWorldSettingsController * pwsc = GetWSC (this );
|
|
||||||
#line 362 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(pwsc != NULL )
|
|
||||||
#line 363 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 364 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
m_fMyTimer = 0;
|
|
||||||
#line 365 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
m_fMyTimerLast = 0;
|
|
||||||
#line 366 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
ECredits ecr ;
|
|
||||||
#line 367 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
ecr . bStart = TRUE ;
|
|
||||||
#line 368 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
ecr . penSender = this ;
|
|
||||||
#line 369 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pwsc -> SendEvent (ecr );
|
|
||||||
#line 370 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 371 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Call(STATE_CURRENT, STATE_CCreditsHolder_WaitScrollingToEnd, TRUE, EVoid());return TRUE;
|
|
||||||
#line 372 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}ASSERT(FALSE);break;case(EVENTCODE_EStop):
|
|
||||||
#line 374 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{const EStop&eStop= (EStop&)__eeInput;
|
|
||||||
|
|
||||||
#line 375 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
CWorldSettingsController * pwsc = GetWSC (this );
|
|
||||||
#line 376 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(pwsc != NULL )
|
|
||||||
#line 377 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
{
|
|
||||||
#line 378 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
ECredits ecr ;
|
|
||||||
#line 379 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
ecr . bStart = FALSE ;
|
|
||||||
#line 380 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
ecr . penSender = this ;
|
|
||||||
#line 381 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
pwsc -> SendEvent (ecr );
|
|
||||||
#line 382 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 383 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x00f00008, FALSE, EInternal());return TRUE;
|
|
||||||
#line 384 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}ASSERT(FALSE);break;default: return FALSE; break;
|
|
||||||
#line 385 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}return TRUE;}BOOL CCreditsHolder::H0x00f00008_Main_04(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00f00008
|
|
||||||
|
|
||||||
#line 386 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Credits_Off ();
|
|
||||||
#line 387 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
if(m_penEndCreditsTrigger ){
|
|
||||||
#line 388 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
SendToTarget (m_penEndCreditsTrigger , EET_TRIGGER , FixupCausedToPlayer (this , NULL , FALSE ));
|
|
||||||
#line 389 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
}
|
|
||||||
#line 390 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Return(STATE_CURRENT,EVoid());
|
|
||||||
#line 390 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
return TRUE; ASSERT(FALSE); return TRUE;};
|
|
|
@ -1,64 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _EntitiesMP_CreditsHolder_INCLUDED
|
|
||||||
#define _EntitiesMP_CreditsHolder_INCLUDED 1
|
|
||||||
extern "C" DECL_DLL CDLLEntityClass CCreditsHolder_DLLClass;
|
|
||||||
class CCreditsHolder : public CRationalEntity {
|
|
||||||
public:
|
|
||||||
virtual BOOL IsTargetable(void) const { return TRUE; };
|
|
||||||
virtual const CTString &GetName(void) const { return m_strName; };
|
|
||||||
virtual BOOL IsImportant(void) const { return TRUE; };
|
|
||||||
DECL_DLL virtual void SetDefaultProperties(void);
|
|
||||||
CTString m_strName;
|
|
||||||
CTString m_strDescription;
|
|
||||||
CTFileName m_fnmMessage;
|
|
||||||
FLOAT m_fMyTimer;
|
|
||||||
FLOAT m_fMyTimerLast;
|
|
||||||
FLOAT m_iTotalEntries;
|
|
||||||
BOOL m_bEnd;
|
|
||||||
CEntityPointer m_penEndCreditsTrigger;
|
|
||||||
BOOL m_bDataError;
|
|
||||||
BOOL bDataLoaded;
|
|
||||||
CFontData _fdMedium;
|
|
||||||
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
const CTString & GetDescription(void)const;
|
|
||||||
CCreditsHolder(void);
|
|
||||||
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
BOOL ReloadData(void);
|
|
||||||
|
|
||||||
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
BOOL LoadOneFile(const CTFileName & fnm);
|
|
||||||
|
|
||||||
#line 147 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
BOOL LoadFont();
|
|
||||||
|
|
||||||
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
BOOL Credits_On(CTFileName fnCreditsText);
|
|
||||||
|
|
||||||
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
void Credits_Off(void);
|
|
||||||
|
|
||||||
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
FLOAT Credits_Render(CCreditsHolder * penThis,CDrawPort * pdp);
|
|
||||||
#define STATE_CCreditsHolder_WaitScrollingToEnd 0x00f00000
|
|
||||||
BOOL
|
|
||||||
#line 327 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
WaitScrollingToEnd(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00f00001_WaitScrollingToEnd_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00f00002_WaitScrollingToEnd_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00f00003_WaitScrollingToEnd_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00f00004_WaitScrollingToEnd_04(const CEntityEvent &__eeInput);
|
|
||||||
#define STATE_CCreditsHolder_Main 1
|
|
||||||
BOOL
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Main(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00f00005_Main_01(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00f00006_Main_02(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00f00007_Main_03(const CEntityEvent &__eeInput);
|
|
||||||
BOOL H0x00f00008_Main_04(const CEntityEvent &__eeInput);
|
|
||||||
};
|
|
||||||
#endif // _EntitiesMP_CreditsHolder_INCLUDED
|
|
|
@ -1,55 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ENTITYCLASS CCreditsHolder
|
|
||||||
|
|
||||||
CEntityProperty CCreditsHolder_properties[] = {
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000f0<<8)+1, offsetof(CCreditsHolder, m_strName), "Name", 'N', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_STRING, NULL, (0x000000f0<<8)+2, offsetof(CCreditsHolder, m_strDescription), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FILENAME, NULL, (0x000000f0<<8)+3, offsetof(CCreditsHolder, m_fnmMessage), "Scroll Text", 'T', 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000f0<<8)+4, offsetof(CCreditsHolder, m_fMyTimer), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000f0<<8)+6, offsetof(CCreditsHolder, m_fMyTimerLast), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_FLOAT, NULL, (0x000000f0<<8)+5, offsetof(CCreditsHolder, m_iTotalEntries), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000f0<<8)+10, offsetof(CCreditsHolder, m_bEnd), "", 0, 0, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_ENTITYPTR, NULL, (0x000000f0<<8)+15, offsetof(CCreditsHolder, m_penEndCreditsTrigger), "EndCredits trigger", 0, 0x7F0000FFUL, 0),
|
|
||||||
CEntityProperty(CEntityProperty::EPT_BOOL, NULL, (0x000000f0<<8)+20, offsetof(CCreditsHolder, m_bDataError), "", 0, 0, 0),
|
|
||||||
};
|
|
||||||
#define CCreditsHolder_propertiesct ARRAYCOUNT(CCreditsHolder_properties)
|
|
||||||
|
|
||||||
CEntityComponent CCreditsHolder_components[] = {
|
|
||||||
#define MODEL_HOLDER ((0x000000f0<<8)+1)
|
|
||||||
CEntityComponent(ECT_MODEL, MODEL_HOLDER, "EFNM" "Models\\Editor\\MessageHolder.mdl"),
|
|
||||||
#define TEXTURE_HOLDER ((0x000000f0<<8)+2)
|
|
||||||
CEntityComponent(ECT_TEXTURE, TEXTURE_HOLDER, "EFNM" "Models\\Editor\\MessageHolder.tex"),
|
|
||||||
};
|
|
||||||
#define CCreditsHolder_componentsct ARRAYCOUNT(CCreditsHolder_components)
|
|
||||||
|
|
||||||
CEventHandlerEntry CCreditsHolder_handlers[] = {
|
|
||||||
{0x00f00000, -1, CEntity::pEventHandler(&CCreditsHolder::
|
|
||||||
#line 327 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
WaitScrollingToEnd),DEBUGSTRING("CCreditsHolder::WaitScrollingToEnd")},
|
|
||||||
{0x00f00001, -1, CEntity::pEventHandler(&CCreditsHolder::H0x00f00001_WaitScrollingToEnd_01), DEBUGSTRING("CCreditsHolder::H0x00f00001_WaitScrollingToEnd_01")},
|
|
||||||
{0x00f00002, -1, CEntity::pEventHandler(&CCreditsHolder::H0x00f00002_WaitScrollingToEnd_02), DEBUGSTRING("CCreditsHolder::H0x00f00002_WaitScrollingToEnd_02")},
|
|
||||||
{0x00f00003, -1, CEntity::pEventHandler(&CCreditsHolder::H0x00f00003_WaitScrollingToEnd_03), DEBUGSTRING("CCreditsHolder::H0x00f00003_WaitScrollingToEnd_03")},
|
|
||||||
{0x00f00004, -1, CEntity::pEventHandler(&CCreditsHolder::H0x00f00004_WaitScrollingToEnd_04), DEBUGSTRING("CCreditsHolder::H0x00f00004_WaitScrollingToEnd_04")},
|
|
||||||
{1, -1, CEntity::pEventHandler(&CCreditsHolder::
|
|
||||||
#line 338 "D:/SE1_GPL/Sources/EntitiesMP/CreditsHolder.es"
|
|
||||||
Main),DEBUGSTRING("CCreditsHolder::Main")},
|
|
||||||
{0x00f00005, -1, CEntity::pEventHandler(&CCreditsHolder::H0x00f00005_Main_01), DEBUGSTRING("CCreditsHolder::H0x00f00005_Main_01")},
|
|
||||||
{0x00f00006, -1, CEntity::pEventHandler(&CCreditsHolder::H0x00f00006_Main_02), DEBUGSTRING("CCreditsHolder::H0x00f00006_Main_02")},
|
|
||||||
{0x00f00007, -1, CEntity::pEventHandler(&CCreditsHolder::H0x00f00007_Main_03), DEBUGSTRING("CCreditsHolder::H0x00f00007_Main_03")},
|
|
||||||
{0x00f00008, -1, CEntity::pEventHandler(&CCreditsHolder::H0x00f00008_Main_04), DEBUGSTRING("CCreditsHolder::H0x00f00008_Main_04")},
|
|
||||||
};
|
|
||||||
#define CCreditsHolder_handlersct ARRAYCOUNT(CCreditsHolder_handlers)
|
|
||||||
|
|
||||||
CEntity *CCreditsHolder_New(void) { return new CCreditsHolder; };
|
|
||||||
void CCreditsHolder_OnInitClass(void) {};
|
|
||||||
void CCreditsHolder_OnEndClass(void) {};
|
|
||||||
void CCreditsHolder_OnPrecache(CDLLEntityClass *pdec, INDEX iUser) {};
|
|
||||||
void CCreditsHolder_OnWorldEnd(CWorld *pwo) {};
|
|
||||||
void CCreditsHolder_OnWorldInit(CWorld *pwo) {};
|
|
||||||
void CCreditsHolder_OnWorldTick(CWorld *pwo) {};
|
|
||||||
void CCreditsHolder_OnWorldRender(CWorld *pwo) {};
|
|
||||||
ENTITY_CLASSDEFINITION(CCreditsHolder, CRationalEntity, "CreditsHolder", "Thumbnails\\ScrollHolder.tbn", 0x000000f0);
|
|
||||||
DECLARE_CTFILENAME(_fnmCCreditsHolder_tbn, "Thumbnails\\ScrollHolder.tbn");
|
|
|
@ -1,119 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
||||||
*/
|
|
||||||
|
|
||||||
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
|
|
||||||
#include "StdH.h"
|
|
||||||
|
|
||||||
#include <EntitiesMP/Damager.h>
|
|
||||||
#include <EntitiesMP/Damager_tables.h>
|
|
||||||
void CDamager::SetDefaultProperties(void) {
|
|
||||||
m_strName = "Damager";
|
|
||||||
m_strDescription = "";
|
|
||||||
m_dmtType = DMT_ABYSS ;
|
|
||||||
m_fAmmount = 1000.0f;
|
|
||||||
m_penToDamage = NULL;
|
|
||||||
m_bDamageFromTriggerer = FALSE ;
|
|
||||||
m_penLastDamaged = NULL;
|
|
||||||
m_tmLastDamage = 0.0f;
|
|
||||||
CRationalEntity::SetDefaultProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
#line 28 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
const CTString & CDamager::GetDescription(void)const {
|
|
||||||
#line 29 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
return m_strDescription ;
|
|
||||||
#line 30 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
}
|
|
||||||
BOOL CDamager::
|
|
||||||
#line 33 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
Main(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT STATE_CDamager_Main
|
|
||||||
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CDamager::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
||||||
#line 35 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
InitAsEditorModel ();
|
|
||||||
#line 36 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
SetPhysicsFlags (EPF_MODEL_IMMATERIAL );
|
|
||||||
#line 37 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
SetCollisionFlags (ECF_IMMATERIAL );
|
|
||||||
#line 40 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
SetModel (MODEL_TELEPORT );
|
|
||||||
#line 41 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
SetModelMainTexture (TEXTURE_TELEPORT );
|
|
||||||
#line 43 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
((CTString &) m_strDescription ) . PrintF ("%s:%g" ,
|
|
||||||
#line 44 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
DamageType_enum . NameForValue (INDEX (m_dmtType )) , m_fAmmount );
|
|
||||||
#line 46 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
Jump(STATE_CURRENT,0x00e50002, FALSE, EInternal());return TRUE;}BOOL CDamager::H0x00e50002_Main_03(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e50002
|
|
||||||
if(!(TRUE )){ Jump(STATE_CURRENT,0x00e50003, FALSE, EInternal());return TRUE;}
|
|
||||||
#line 48 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
SetTimerAt(THINKTIME_NEVER);
|
|
||||||
Jump(STATE_CURRENT, 0x00e50000, FALSE, EBegin());return TRUE;}BOOL CDamager::H0x00e50000_Main_01(const CEntityEvent &__eeInput) {
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e50000
|
|
||||||
switch(__eeInput.ee_slEvent){case(EVENTCODE_ETrigger):{const ETrigger&eTrigger= (ETrigger&)__eeInput;
|
|
||||||
|
|
||||||
#line 51 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
CEntity * penInflictor = this ;
|
|
||||||
#line 52 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
if(m_bDamageFromTriggerer ){
|
|
||||||
#line 53 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
penInflictor = eTrigger . penCaused ;
|
|
||||||
#line 54 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
}
|
|
||||||
#line 56 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
CEntity * penVictim = NULL ;
|
|
||||||
#line 57 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
if(m_penToDamage != NULL ){
|
|
||||||
#line 58 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
penVictim = m_penToDamage ;
|
|
||||||
#line 59 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
}else if(eTrigger . penCaused != NULL ){
|
|
||||||
#line 60 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
penVictim = eTrigger . penCaused ;
|
|
||||||
#line 61 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
}
|
|
||||||
#line 63 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
if(penVictim != NULL ){
|
|
||||||
#line 64 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
if(! (penVictim == m_penLastDamaged && _pTimer -> CurrentTick () < m_tmLastDamage + 0.1f))
|
|
||||||
#line 65 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
{
|
|
||||||
#line 66 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
InflictDirectDamage (penVictim , penInflictor , m_dmtType , m_fAmmount ,
|
|
||||||
#line 67 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
penVictim -> GetPlacement () . pl_PositionVector , FLOAT3D (0 , 1 , 0));
|
|
||||||
#line 68 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
m_penLastDamaged = penVictim ;
|
|
||||||
#line 69 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
m_tmLastDamage = _pTimer -> CurrentTick ();
|
|
||||||
#line 70 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
}
|
|
||||||
#line 71 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
}
|
|
||||||
#line 72 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
UnsetTimer();Jump(STATE_CURRENT,0x00e50001, FALSE, EInternal());return TRUE;
|
|
||||||
#line 73 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
}ASSERT(FALSE);break;default:{
|
|
||||||
#line 75 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
return TRUE;
|
|
||||||
#line 76 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
}ASSERT(FALSE);break;
|
|
||||||
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
}return TRUE;}BOOL CDamager::H0x00e50001_Main_02(const CEntityEvent &__eeInput){
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e50001
|
|
||||||
;Jump(STATE_CURRENT,0x00e50002, FALSE, EInternal());return TRUE;
|
|
||||||
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/Damager.es"
|
|
||||||
}BOOL CDamager::H0x00e50003_Main_04(const CEntityEvent &__eeInput) {
|
|
||||||
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
||||||
#undef STATE_CURRENT
|
|
||||||
#define STATE_CURRENT 0x00e50003
|
|
||||||
ASSERT(FALSE); return TRUE;};
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user