mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
843 lines
34 KiB
C++
843 lines
34 KiB
C++
/*
|
|
* This file is generated by Entity Class Compiler, (c) CroTeam 1997-98
|
|
*/
|
|
|
|
#line 4 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
|
|
#include "StdH.h"
|
|
#include "Models/Enemies/Eyeman/Eyeman.h"
|
|
|
|
#include <EntitiesMP/Eyeman.h>
|
|
#include <EntitiesMP/Eyeman_tables.h>
|
|
#line 21 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
|
|
// info structure
|
|
static EntityInfo eiEyemanBig = {
|
|
EIBT_FLESH, 140.0f,
|
|
0.0f, 1.4f, 0.0f,
|
|
0.0f, 1.0f, 0.0f,
|
|
};
|
|
static EntityInfo eiEyemanSmall = {
|
|
EIBT_FLESH, 120.0f,
|
|
0.0f, 1.4f, 0.0f,
|
|
0.0f, 1.0f, 0.0f,
|
|
};
|
|
|
|
#define BITE_AIR 3.0f
|
|
#define HIT_GROUND 2.0f
|
|
#define FIRE_GROUND FLOAT3D(0.75f, 1.5f, -1.25f)
|
|
|
|
void CEyeman::SetDefaultProperties(void) {
|
|
m_EecChar = EYC_SOLDIER ;
|
|
m_bInvisible = FALSE ;
|
|
m_eeEnv = EYE_NORMAL ;
|
|
m_bMumbleSoundPlaying = FALSE ;
|
|
m_soMumble.SetOwner(this);
|
|
m_soMumble.Stop_internal();
|
|
CEnemyFly::SetDefaultProperties();
|
|
}
|
|
CTString CEyeman::GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath)
|
|
#line 77 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
{
|
|
#line 78 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
CTString str ;
|
|
#line 79 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInAir ){
|
|
#line 80 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
str . PrintF (TRANS ("A Gnaar bit %s to death") , strPlayerName );
|
|
#line 81 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 82 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
str . PrintF (TRANS ("%s was beaten up by a Gnaar") , strPlayerName );
|
|
#line 83 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 84 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return str ;
|
|
#line 85 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 86 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::Precache(void) {
|
|
#line 87 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
CEnemyBase :: Precache ();
|
|
#line 88 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PrecacheSound (SOUND_IDLE );
|
|
#line 89 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PrecacheSound (SOUND_SIGHT );
|
|
#line 90 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PrecacheSound (SOUND_WOUND );
|
|
#line 91 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PrecacheSound (SOUND_BITE );
|
|
#line 92 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PrecacheSound (SOUND_PUNCH );
|
|
#line 93 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PrecacheSound (SOUND_DEATH );
|
|
#line 94 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PrecacheSound (SOUND_MUMBLE );
|
|
#line 95 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 98 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void * CEyeman::GetEntityInfo(void) {
|
|
#line 99 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_EecChar == EYC_SERGEANT ){
|
|
#line 100 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return & eiEyemanBig ;
|
|
#line 101 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 102 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return & eiEyemanSmall ;
|
|
#line 103 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 104 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 107 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType,
|
|
#line 108 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection)
|
|
#line 109 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
{
|
|
#line 111 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(! IsOfClass (penInflictor , "Eyeman")){
|
|
#line 112 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
CEnemyFly :: ReceiveDamage (penInflictor , dmtType , fDamageAmmount , vHitPoint , vDirection );
|
|
#line 114 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(dmtType == DMT_CHAINSAW && GetHealth () <= 0){
|
|
#line 116 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fBlowUpAmount = 0;
|
|
#line 117 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 118 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 119 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 122 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
BOOL CEyeman::FillEntityStatistics(EntityStats * pes)
|
|
#line 123 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
{
|
|
#line 124 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
CEnemyBase :: FillEntityStatistics (pes );
|
|
#line 125 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
switch(m_EecChar ){
|
|
#line 126 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
case EYC_SERGEANT : {pes -> es_strName += " Sergeant";}break ;
|
|
#line 127 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
case EYC_SOLDIER : {pes -> es_strName += " Soldier";}break ;
|
|
#line 128 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 129 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInvisible ){
|
|
#line 130 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
pes -> es_strName += " Invisible";
|
|
#line 131 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 132 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return TRUE ;
|
|
#line 133 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
const CTFileName & CEyeman::GetComputerMessageName(void)const {
|
|
#line 136 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
static DECLARE_CTFILENAME (fnmSergeant , "Data\\Messages\\Enemies\\EyemanGreen.txt");
|
|
#line 137 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
static DECLARE_CTFILENAME (fnmSoldier , "Data\\Messages\\Enemies\\EyemanPurple.txt");
|
|
#line 138 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
switch(m_EecChar ){
|
|
#line 139 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
default : ASSERT (FALSE );
|
|
#line 140 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
case EYC_SERGEANT : return fnmSergeant ;
|
|
#line 141 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
case EYC_SOLDIER : return fnmSoldier ;
|
|
#line 142 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 143 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 145 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
BOOL CEyeman::AdjustShadingParameters(FLOAT3D & vLightDirection,COLOR & colLight,COLOR & colAmbient)
|
|
#line 146 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
{
|
|
#line 148 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInvisible ){
|
|
#line 149 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
colAmbient = C_WHITE ;
|
|
#line 150 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return FALSE ;
|
|
#line 151 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 152 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return CEnemyBase :: AdjustShadingParameters (vLightDirection , colLight , colAmbient );
|
|
#line 153 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 154 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 157 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
INDEX CEyeman::AnimForDamage(FLOAT fDamage) {
|
|
#line 158 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
DeactivateMumblingSound ();
|
|
#line 159 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
INDEX iAnim ;
|
|
#line 160 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInAir ){
|
|
#line 161 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
switch(IRnd () % 2){
|
|
#line 162 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
case 0: iAnim = EYEMAN_ANIM_MORPHWOUND01 ;break ;
|
|
#line 163 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
case 1: iAnim = EYEMAN_ANIM_MORPHWOUND02 ;break ;
|
|
#line 164 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
default : ASSERTALWAYS ("Eyeman unknown fly damage");
|
|
#line 165 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 166 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 167 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT3D vFront ;
|
|
#line 168 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
GetHeadingDirection (0 , vFront );
|
|
#line 169 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT fDamageDir = m_vDamage % vFront ;
|
|
#line 170 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(Abs (fDamageDir ) <= 10){
|
|
#line 171 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
switch(IRnd () % 3){
|
|
#line 172 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
case 0: iAnim = EYEMAN_ANIM_WOUND03 ;break ;
|
|
#line 173 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
case 1: iAnim = EYEMAN_ANIM_WOUND06 ;break ;
|
|
#line 174 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
case 2: iAnim = EYEMAN_ANIM_WOUND07 ;break ;
|
|
#line 175 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 176 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 177 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(fDamageDir < 0){
|
|
#line 178 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
iAnim = EYEMAN_ANIM_FALL01 ;
|
|
#line 179 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 180 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
iAnim = EYEMAN_ANIM_FALL02 ;
|
|
#line 181 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 182 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 183 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 184 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (iAnim , 0);
|
|
#line 185 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return iAnim ;
|
|
#line 186 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 189 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
INDEX CEyeman::AnimForDeath(void) {
|
|
#line 190 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
DeactivateMumblingSound ();
|
|
#line 191 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
INDEX iAnim ;
|
|
#line 192 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInAir ){
|
|
#line 193 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
iAnim = EYEMAN_ANIM_MORPHDEATH ;
|
|
#line 194 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 195 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT3D vFront ;
|
|
#line 196 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
GetHeadingDirection (0 , vFront );
|
|
#line 197 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT fDamageDir = m_vDamage % vFront ;
|
|
#line 198 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(fDamageDir < 0){
|
|
#line 199 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
iAnim = EYEMAN_ANIM_DEATH02 ;
|
|
#line 200 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 201 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
iAnim = EYEMAN_ANIM_DEATH01 ;
|
|
#line 202 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 203 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 204 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (iAnim , 0);
|
|
#line 205 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return iAnim ;
|
|
#line 206 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 208 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT CEyeman::WaitForDust(FLOAT3D & vStretch) {
|
|
#line 209 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(GetModelObject () -> GetAnim () == EYEMAN_ANIM_DEATH01 )
|
|
#line 210 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
{
|
|
#line 211 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
vStretch = FLOAT3D (1 , 1 , 1) * 0.75f;
|
|
#line 212 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return 0.5f;
|
|
#line 213 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 214 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
else if(GetModelObject () -> GetAnim () == EYEMAN_ANIM_DEATH02 )
|
|
#line 215 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
{
|
|
#line 216 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
vStretch = FLOAT3D (1 , 1 , 1) * 0.75f;
|
|
#line 217 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return 0.5f;
|
|
#line 218 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 219 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
else if(GetModelObject () -> GetAnim () == EYEMAN_ANIM_MORPHDEATH )
|
|
#line 220 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
{
|
|
#line 221 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
vStretch = FLOAT3D (1 , 1 , 1) * 1.0f;
|
|
#line 222 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return 0.5f;
|
|
#line 223 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 224 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return - 1.0f;
|
|
#line 225 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 227 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::DeathNotify(void) {
|
|
#line 228 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
ChangeCollisionBoxIndexWhenPossible (EYEMAN_COLLISION_BOX_DEATH );
|
|
#line 229 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
en_fDensity = 500.0f;
|
|
#line 230 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 233 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::ActivateMumblingSound(void)
|
|
#line 234 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
{
|
|
#line 235 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(! m_bMumbleSoundPlaying ){
|
|
#line 236 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PlaySound (m_soMumble , SOUND_MUMBLE , SOF_3D | SOF_LOOP );
|
|
#line 237 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_bMumbleSoundPlaying = TRUE ;
|
|
#line 238 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 239 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 240 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::DeactivateMumblingSound(void)
|
|
#line 241 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
{
|
|
#line 242 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_soMumble . Stop ();
|
|
#line 243 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_bMumbleSoundPlaying = FALSE ;
|
|
#line 244 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 247 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::StandingAnim(void) {
|
|
#line 248 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
DeactivateMumblingSound ();
|
|
#line 249 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInAir ){
|
|
#line 250 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_MORPHATTACKFLY , AOF_LOOPING | AOF_NORESTART );
|
|
#line 251 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 252 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_STAND , AOF_LOOPING | AOF_NORESTART );
|
|
#line 253 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 254 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 255 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::WalkingAnim(void) {
|
|
#line 256 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
ActivateMumblingSound ();
|
|
#line 257 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInAir ){
|
|
#line 258 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_MORPHATTACKFLY , AOF_LOOPING | AOF_NORESTART );
|
|
#line 259 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 260 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_WALK , AOF_LOOPING | AOF_NORESTART );
|
|
#line 261 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 262 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 263 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::RunningAnim(void) {
|
|
#line 264 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
ActivateMumblingSound ();
|
|
#line 265 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInAir ){
|
|
#line 266 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_MORPHATTACKFLY , AOF_LOOPING | AOF_NORESTART );
|
|
#line 267 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 268 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_RUN , AOF_LOOPING | AOF_NORESTART );
|
|
#line 269 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 270 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 271 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::RotatingAnim(void) {
|
|
#line 272 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInAir ){
|
|
#line 273 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_MORPHATTACKFLY , AOF_LOOPING | AOF_NORESTART );
|
|
#line 274 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 275 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_RUN , AOF_LOOPING | AOF_NORESTART );
|
|
#line 276 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 277 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 278 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT CEyeman::AirToGroundAnim(void) {
|
|
#line 279 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_MORPHUP , 0);
|
|
#line 280 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return (GetModelObject () -> GetAnimLength (EYEMAN_ANIM_MORPHUP ));
|
|
#line 281 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 282 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT CEyeman::GroundToAirAnim(void) {
|
|
#line 283 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_MORPHDOWN , 0);
|
|
#line 284 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return (GetModelObject () -> GetAnimLength (EYEMAN_ANIM_MORPHDOWN ));
|
|
#line 285 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 286 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::ChangeCollisionToAir() {
|
|
#line 287 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
ChangeCollisionBoxIndexWhenPossible (EYEMAN_COLLISION_BOX_AIR );
|
|
#line 288 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 289 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::ChangeCollisionToGround() {
|
|
#line 290 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
ChangeCollisionBoxIndexWhenPossible (EYEMAN_COLLISION_BOX_GROUND );
|
|
#line 291 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 294 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::IdleSound(void) {
|
|
#line 295 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PlaySound (m_soSound , SOUND_IDLE , SOF_3D );
|
|
#line 296 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 297 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::SightSound(void) {
|
|
#line 298 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PlaySound (m_soSound , SOUND_SIGHT , SOF_3D );
|
|
#line 299 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 300 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::WoundSound(void) {
|
|
#line 301 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PlaySound (m_soSound , SOUND_WOUND , SOF_3D );
|
|
#line 302 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 303 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
void CEyeman::DeathSound(void) {
|
|
#line 304 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PlaySound (m_soSound , SOUND_DEATH , SOF_3D );
|
|
#line 305 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 353 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
BOOL CEyeman::MayMoveToAttack(void)
|
|
#line 354 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
{
|
|
#line 355 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInAir ){
|
|
#line 356 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return WouldNotLeaveAttackRadius ();
|
|
#line 357 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 358 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return CEnemyBase :: MayMoveToAttack ();
|
|
#line 359 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 360 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
|
|
#line 363 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
BOOL CEyeman::CanHitEnemy(CEntity * penTarget,FLOAT fCosAngle) {
|
|
#line 364 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(IsInPlaneFrustum (penTarget , fCosAngle )){
|
|
#line 365 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return IsVisibleCheckAll (penTarget );
|
|
#line 366 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 367 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return FALSE ;
|
|
#line 368 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
BOOL CEyeman::
|
|
#line 374 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FlyHit(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT STATE_CEyeman_FlyHit
|
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CEyeman::FlyHit expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
#line 375 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(CalcDist (m_penEnemy ) > BITE_AIR ){
|
|
#line 376 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fShootTime = _pTimer -> CurrentTick () + 0.25f;
|
|
#line 377 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
Return(STATE_CURRENT,EReturn ());
|
|
#line 377 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return TRUE;
|
|
#line 378 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 379 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_MORPHATTACK , 0);
|
|
#line 380 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StopMoving ();
|
|
#line 381 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PlaySound (m_soSound , SOUND_BITE , SOF_3D );
|
|
#line 383 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetTimerAfter(0.4f);
|
|
Jump(STATE_CURRENT, 0x01430001, FALSE, EBegin());return TRUE;}BOOL CEyeman::H0x01430001_FlyHit_01(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x01430001
|
|
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01430002, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CEyeman::H0x01430002_FlyHit_02(const CEntityEvent &__eeInput){
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x01430002
|
|
;
|
|
#line 385 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(CalcDist (m_penEnemy ) < BITE_AIR ){
|
|
#line 386 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT3D vDirection = m_penEnemy -> GetPlacement () . pl_PositionVector - GetPlacement () . pl_PositionVector ;
|
|
#line 387 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
vDirection . SafeNormalize ();
|
|
#line 388 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
InflictDirectDamage (m_penEnemy , this , DMT_CLOSERANGE , 3.5f , FLOAT3D (0 , 0 , 0) , vDirection );
|
|
#line 390 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
ESpawnEffect eSpawnEffect ;
|
|
#line 391 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
eSpawnEffect . colMuliplier = C_WHITE | CT_OPAQUE ;
|
|
#line 392 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
eSpawnEffect . betType = BET_BLOODEXPLODE ;
|
|
#line 393 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
eSpawnEffect . vStretch = FLOAT3D (1 , 1 , 1);
|
|
#line 394 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
CPlacement3D plOne = GetPlacement ();
|
|
#line 395 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
GetEntityPointRatio (
|
|
#line 396 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT3D (Lerp (- 0.2f , + 0.2f , FRnd ()) , Lerp (- 0.2f , + 0.2f , FRnd ()) , - 1.0f) ,
|
|
#line 397 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
plOne . pl_PositionVector );
|
|
#line 398 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
CEntityPointer penBloodCloud = CreateEntity (plOne , CLASS_BASIC_EFFECT );
|
|
#line 399 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
penBloodCloud -> Initialize (eSpawnEffect );
|
|
#line 400 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 401 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetTimerAfter(0.24f);
|
|
Jump(STATE_CURRENT, 0x01430003, FALSE, EBegin());return TRUE;}BOOL CEyeman::H0x01430003_FlyHit_03(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x01430003
|
|
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01430004, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CEyeman::H0x01430004_FlyHit_04(const CEntityEvent &__eeInput){
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x01430004
|
|
;
|
|
#line 403 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StandingAnim ();
|
|
#line 404 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
Return(STATE_CURRENT,EReturn ());
|
|
#line 404 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CEyeman::
|
|
#line 407 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
GroundHit(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT STATE_CEyeman_GroundHit
|
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CEyeman::GroundHit expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
#line 408 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(CalcDist (m_penEnemy ) > HIT_GROUND ){
|
|
#line 409 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fShootTime = _pTimer -> CurrentTick () + 0.25f;
|
|
#line 410 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
Return(STATE_CURRENT,EReturn ());
|
|
#line 410 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return TRUE;
|
|
#line 411 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 412 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StartModelAnim (EYEMAN_ANIM_ATTACK02 , 0);
|
|
#line 413 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StopMoving ();
|
|
#line 415 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetTimerAfter(0.2f);
|
|
Jump(STATE_CURRENT, 0x01430006, FALSE, EBegin());return TRUE;}BOOL CEyeman::H0x01430006_GroundHit_01(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x01430006
|
|
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01430007, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CEyeman::H0x01430007_GroundHit_02(const CEntityEvent &__eeInput){
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x01430007
|
|
;
|
|
#line 417 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(CalcDist (m_penEnemy ) < HIT_GROUND ){
|
|
#line 418 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT3D vDirection = m_penEnemy -> GetPlacement () . pl_PositionVector - GetPlacement () . pl_PositionVector ;
|
|
#line 419 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
vDirection . SafeNormalize ();
|
|
#line 420 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
InflictDirectDamage (m_penEnemy , this , DMT_CLOSERANGE , 3.5f , FLOAT3D (0 , 0 , 0) , vDirection );
|
|
#line 421 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PlaySound (m_soSound , SOUND_PUNCH , SOF_3D );
|
|
#line 422 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 423 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetTimerAfter(0.3f);
|
|
Jump(STATE_CURRENT, 0x01430008, FALSE, EBegin());return TRUE;}BOOL CEyeman::H0x01430008_GroundHit_03(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x01430008
|
|
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01430009, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CEyeman::H0x01430009_GroundHit_04(const CEntityEvent &__eeInput){
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x01430009
|
|
;
|
|
#line 425 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(CalcDist (m_penEnemy ) < HIT_GROUND ){
|
|
#line 426 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
FLOAT3D vDirection = m_penEnemy -> GetPlacement () . pl_PositionVector - GetPlacement () . pl_PositionVector ;
|
|
#line 427 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
vDirection . SafeNormalize ();
|
|
#line 428 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
InflictDirectDamage (m_penEnemy , this , DMT_CLOSERANGE , 3.5f , FLOAT3D (0 , 0 , 0) , vDirection );
|
|
#line 429 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
PlaySound (m_soSound , SOUND_PUNCH , SOF_3D );
|
|
#line 430 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 431 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetTimerAfter(0.4f);
|
|
Jump(STATE_CURRENT, 0x0143000a, FALSE, EBegin());return TRUE;}BOOL CEyeman::H0x0143000a_GroundHit_05(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x0143000a
|
|
switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x0143000b, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CEyeman::H0x0143000b_GroundHit_06(const CEntityEvent &__eeInput){
|
|
ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal);
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT 0x0143000b
|
|
;
|
|
#line 433 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
StandingAnim ();
|
|
#line 434 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
Return(STATE_CURRENT,EReturn ());
|
|
#line 434 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
return TRUE; ASSERT(FALSE); return TRUE;};BOOL CEyeman::
|
|
#line 440 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
Main(const CEntityEvent &__eeInput) {
|
|
#undef STATE_CURRENT
|
|
#define STATE_CURRENT STATE_CEyeman_Main
|
|
ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CEyeman::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput;
|
|
#line 442 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
InitAsModel ();
|
|
#line 443 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetPhysicsFlags (EPF_MODEL_WALKING | EPF_HASLUNGS );
|
|
#line 444 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetCollisionFlags (ECF_MODEL );
|
|
#line 445 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetFlags (GetFlags () | ENF_ALIVE );
|
|
#line 446 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_EecChar == EYC_SERGEANT ){
|
|
#line 447 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetHealth (90.0f);
|
|
#line 448 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fMaxHealth = 90.0f;
|
|
#line 450 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fBlowUpAmount = 130.0f;
|
|
#line 451 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fBodyParts = 5;
|
|
#line 452 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fBlowUpSize = 2.5f;
|
|
#line 453 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fDamageWounded = 40.0f;
|
|
#line 454 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 455 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetHealth (60.0f);
|
|
#line 456 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fMaxHealth = 60.0f;
|
|
#line 458 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fBlowUpAmount = 100.0f;
|
|
#line 459 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fBodyParts = 5;
|
|
#line 460 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fBlowUpSize = 2.0f;
|
|
#line 461 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fDamageWounded = 25.0f;
|
|
#line 462 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 463 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
en_fDensity = 2000.0f;
|
|
#line 464 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_EeftType == EFT_GROUND_ONLY ){
|
|
#line 465 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
en_tmMaxHoldBreath = 5.0f;
|
|
#line 466 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 467 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
en_tmMaxHoldBreath = 30.0f;
|
|
#line 468 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 471 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetModel (MODEL_EYEMAN );
|
|
#line 472 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_EecChar == EYC_SERGEANT ){
|
|
#line 473 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetModelMainTexture (TEXTURE_EYEMAN_SERGEANT );
|
|
#line 474 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
GetModelObject () -> StretchModel (FLOAT3D (1.3f , 1.3f , 1.3f));
|
|
#line 475 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
ModelChangeNotify ();
|
|
#line 476 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_iScore = 1000;
|
|
#line 477 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 478 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_iScore = 500;
|
|
#line 479 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_eeEnv == EYE_LAVA ){
|
|
#line 480 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetModelMainTexture (TEXTURE_EYEMAN_LAVA );
|
|
#line 481 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 482 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
SetModelMainTexture (TEXTURE_EYEMAN_SOLDIER );
|
|
#line 483 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 484 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
GetModelObject () -> StretchModel (FLOAT3D (1.0f , 1.0f , 1.0f));
|
|
#line 485 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
ModelChangeNotify ();
|
|
#line 486 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 487 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_bInvisible ){
|
|
#line 488 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
GetModelObject () -> mo_colBlendColor = C_WHITE | 0x25;
|
|
#line 489 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_iScore *= 2;
|
|
#line 490 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 492 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fWalkSpeed = FRnd () + 1.5f;
|
|
#line 493 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_aWalkRotateSpeed = FRnd () * 10.0f + 500.0f;
|
|
#line 494 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_EecChar == EYC_SERGEANT ){
|
|
#line 495 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fAttackRunSpeed = FRnd () * 2.0f + 10.0f;
|
|
#line 496 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_aAttackRotateSpeed = AngleDeg (FRnd () * 100 + 600.0f);
|
|
#line 497 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fCloseRunSpeed = FRnd () * 2.0f + 10.0f;
|
|
#line 498 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_aCloseRotateSpeed = AngleDeg (FRnd () * 100 + 600.0f);
|
|
#line 499 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 500 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fAttackRunSpeed = FRnd () * 2.0f + 9.0f;
|
|
#line 501 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_aAttackRotateSpeed = AngleDeg (FRnd () * 100 + 600.0f);
|
|
#line 502 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fCloseRunSpeed = FRnd () * 2.0f + 9.0f;
|
|
#line 503 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_aCloseRotateSpeed = AngleDeg (FRnd () * 100 + 600.0f);
|
|
#line 504 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 506 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fAttackDistance = 100.0f;
|
|
#line 507 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fCloseDistance = 3.5f;
|
|
#line 508 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fStopDistance = 1.5f;
|
|
#line 509 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fAttackFireTime = 2.0f;
|
|
#line 510 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fCloseFireTime = 0.5f;
|
|
#line 511 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fIgnoreRange = 200.0f;
|
|
#line 513 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyWalkSpeed = FRnd () * 2.0f + 3.0f;
|
|
#line 514 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_aFlyWalkRotateSpeed = FRnd () * 20.0f + 600.0f;
|
|
#line 515 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
if(m_EecChar == EYC_SERGEANT ){
|
|
#line 516 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyAttackRunSpeed = FRnd () * 2.0f + 9.5f;
|
|
#line 517 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_aFlyAttackRotateSpeed = FRnd () * 25 + 350.0f;
|
|
#line 518 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyCloseRunSpeed = FRnd () * 2.0f + 9.5f;
|
|
#line 519 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_aFlyCloseRotateSpeed = FRnd () * 50 + 400.0f;
|
|
#line 520 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}else {
|
|
#line 521 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyAttackRunSpeed = FRnd () * 2.0f + 9.5f;
|
|
#line 522 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_aFlyAttackRotateSpeed = FRnd () * 25 + 300.0f;
|
|
#line 523 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyCloseRunSpeed = FRnd () * 2.0f + 9.5f;
|
|
#line 524 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_aFlyCloseRotateSpeed = FRnd () * 50 + 300.0f;
|
|
#line 525 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
}
|
|
#line 526 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fGroundToAirSpeed = 2.5f;
|
|
#line 527 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fAirToGroundSpeed = 2.5f;
|
|
#line 528 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fAirToGroundMin = 0.1f;
|
|
#line 529 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fAirToGroundMax = 0.1f;
|
|
#line 530 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyHeight = 1.0f;
|
|
#line 532 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyAttackDistance = 100.0f;
|
|
#line 533 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyCloseDistance = 10.0f;
|
|
#line 534 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyStopDistance = 1.5f;
|
|
#line 535 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyAttackFireTime = 2.0f;
|
|
#line 536 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyCloseFireTime = 0.5f;
|
|
#line 537 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_fFlyIgnoreRange = 200.0f;
|
|
#line 538 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
m_soMumble . Set3DParameters (25.0f , 0.0f , 1.0f , 1.0f);
|
|
#line 541 "D:/SE1_GPL/Sources/EntitiesMP/Eyeman.es"
|
|
Jump(STATE_CURRENT, STATE_CEnemyFly_MainLoop, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;}; |