/* * This file is generated by Entity Class Compiler, (c) CroTeam 1997-98 */ #line 4 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" #include "StdH.h" #include "Models/Enemies/Walker/Walker.h" #include #include #line 17 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" // info structure static EntityInfo eiWalker = { EIBT_FLESH, 1000.0f, 0.0f, 5.4f, 0.0f, 0.0f, 4.5f, 0.0f, }; #define SIZE_SOLDIER (0.5f) #define SIZE_SERGEANT (1.0f) #define FIRE_LEFT_ARM FLOAT3D(-2.5f, 5.0f, 0.0f) #define FIRE_RIGHT_ARM FLOAT3D(+2.5f, 5.0f, 0.0f) #define FIRE_DEATH_LEFT FLOAT3D( 0.0f, 7.0f, -2.0f) #define FIRE_DEATH_RIGHT FLOAT3D(3.75f, 4.2f, -2.5f) #define WALKERSOUND(soundname) ((m_EwcChar==WLC_SOLDIER)? (SOUND_SOLDIER_##soundname) : (SOUND_SERGEANT_##soundname)) void CWalker::SetDefaultProperties(void) { m_EwcChar = WLC_SOLDIER ; m_iLoopCounter = 0; m_fSize = 1.0f; m_bWalkSoundPlaying = FALSE ; m_fThreatDistance = 5.0f; m_soFeet.SetOwner(this); m_soFeet.Stop_internal(); m_soFire1.SetOwner(this); m_soFire1.Stop_internal(); m_soFire2.SetOwner(this); m_soFire2.Stop_internal(); m_soFire3.SetOwner(this); m_soFire3.Stop_internal(); m_soFire4.SetOwner(this); m_soFire4.Stop_internal(); CEnemyBase::SetDefaultProperties(); } CTString CWalker::GetPlayerKillDescription(const CTString & strPlayerName,const EDeath & eDeath) #line 88 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 89 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CTString str ; #line 90 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" str . PrintF (TRANS ("A Biomech blew %s away") , strPlayerName ); #line 91 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" return str ; #line 92 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } const CTFileName & CWalker::GetComputerMessageName(void)const { #line 95 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" static DECLARE_CTFILENAME (fnmSoldier , "Data\\Messages\\Enemies\\WalkerSmall.txt"); #line 96 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" static DECLARE_CTFILENAME (fnmSergeant , "Data\\Messages\\Enemies\\WalkerBig.txt"); #line 97 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" switch(m_EwcChar ){ #line 98 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" default : ASSERT (FALSE ); #line 99 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" case WLC_SOLDIER : return fnmSoldier ; #line 100 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" case WLC_SERGEANT : return fnmSergeant ; #line 101 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 102 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 104 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" FLOAT CWalker::GetThreatDistance(void) #line 105 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 106 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" return m_fThreatDistance ; #line 107 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 109 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" BOOL CWalker::ForcesCannonballToExplode(void) #line 110 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 111 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_EwcChar == WLC_SERGEANT ){ #line 112 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" return TRUE ; #line 113 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 114 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" return CEnemyBase :: ForcesCannonballToExplode (); #line 115 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 117 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::Precache(void) { #line 118 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CEnemyBase :: Precache (); #line 120 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheModel (MODEL_WALKER ); #line 122 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_EwcChar == WLC_SOLDIER ) #line 123 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 125 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheSound (SOUND_SOLDIER_IDLE ); #line 126 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheSound (SOUND_SOLDIER_SIGHT ); #line 127 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheSound (SOUND_SOLDIER_DEATH ); #line 128 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheSound (SOUND_SOLDIER_FIRE_LASER ); #line 129 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheSound (SOUND_SOLDIER_WALK ); #line 131 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheTexture (TEXTURE_WALKER_SOLDIER ); #line 133 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheModel (MODEL_LASER ); #line 134 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheTexture (TEXTURE_LASER ); #line 136 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheClass (CLASS_PROJECTILE , PRT_CYBORG_LASER ); #line 137 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 138 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" else #line 139 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 141 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheSound (SOUND_SERGEANT_IDLE ); #line 142 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheSound (SOUND_SERGEANT_SIGHT ); #line 143 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheSound (SOUND_SERGEANT_DEATH ); #line 144 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheSound (SOUND_SERGEANT_FIRE_ROCKET ); #line 145 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheSound (SOUND_SERGEANT_WALK ); #line 147 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheTexture (TEXTURE_WALKER_SERGEANT ); #line 149 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheModel (MODEL_ROCKETLAUNCHER ); #line 150 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheTexture (TEXTURE_ROCKETLAUNCHER ); #line 152 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PrecacheClass (CLASS_PROJECTILE , PRT_WALKER_ROCKET ); #line 153 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 154 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 156 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void * CWalker::GetEntityInfo(void) { #line 157 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" return & eiWalker ; #line 158 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 160 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" FLOAT CWalker::GetCrushHealth(void) #line 161 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 162 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_EwcChar == WLC_SERGEANT ){ #line 163 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" return 100.0f; #line 164 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 165 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" return 0.0f; #line 166 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 169 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::ReceiveDamage(CEntity * penInflictor,enum DamageType dmtType, #line 170 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" FLOAT fDamageAmmount,const FLOAT3D & vHitPoint,const FLOAT3D & vDirection) #line 171 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 174 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(dmtType == DMT_BULLET && fDamageAmmount > 100.0f) #line 175 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 176 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" fDamageAmmount *= 0.666f; #line 177 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 180 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(! IsOfClass (penInflictor , "Walker") || #line 181 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ((CWalker *) penInflictor ) -> m_EwcChar != m_EwcChar ){ #line 182 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CEnemyBase :: ReceiveDamage (penInflictor , dmtType , fDamageAmmount , vHitPoint , vDirection ); #line 183 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 184 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 188 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::StandingAnim(void) { #line 189 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" DeactivateWalkingSound (); #line 190 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_STAND01 , AOF_LOOPING | AOF_NORESTART ); #line 191 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 192 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::StandingAnimFight(void) #line 193 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 194 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" DeactivateWalkingSound (); #line 195 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_IDLEFIGHT , AOF_LOOPING | AOF_NORESTART ); #line 196 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 197 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::WalkingAnim(void) { #line 198 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ActivateWalkingSound (); #line 199 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_EwcChar == WLC_SERGEANT ){ #line 200 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_WALKBIG , AOF_LOOPING | AOF_NORESTART ); #line 201 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else { #line 202 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_WALK , AOF_LOOPING | AOF_NORESTART ); #line 203 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 204 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 205 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::RunningAnim(void) { #line 206 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" WalkingAnim (); #line 207 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 208 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::RotatingAnim(void) { #line 209 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" WalkingAnim (); #line 210 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 213 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::IdleSound(void) { #line 214 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soSound , WALKERSOUND (IDLE ) , SOF_3D ); #line 215 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 216 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::SightSound(void) { #line 217 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soSound , WALKERSOUND (SIGHT ) , SOF_3D ); #line 218 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 219 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::DeathSound(void) { #line 220 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soSound , WALKERSOUND (DEATH ) , SOF_3D ); #line 221 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 224 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::ActivateWalkingSound(void) #line 225 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 226 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(! m_bWalkSoundPlaying ){ #line 227 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soFeet , WALKERSOUND (WALK ) , SOF_3D | SOF_LOOP ); #line 228 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_bWalkSoundPlaying = TRUE ; #line 229 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 230 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 231 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::DeactivateWalkingSound(void) #line 232 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 233 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_soFeet . Stop (); #line 234 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_bWalkSoundPlaying = FALSE ; #line 235 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 238 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::FireDeathRocket(FLOAT3D & vPos) { #line 239 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CPlacement3D plRocket ; #line 240 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" plRocket . pl_PositionVector = vPos ; #line 241 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" plRocket . pl_OrientationAngle = ANGLE3D (0 , - 5.0f - FRnd () * 10.0f , 0); #line 242 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" plRocket . RelativeToAbsolute (GetPlacement ()); #line 243 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CEntityPointer penProjectile = CreateEntity (plRocket , CLASS_PROJECTILE ); #line 244 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ELaunchProjectile eLaunch ; #line 245 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" eLaunch . penLauncher = this ; #line 246 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" eLaunch . prtType = PRT_WALKER_ROCKET ; #line 247 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" penProjectile -> Initialize (eLaunch ); #line 248 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 250 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::FireDeathLaser(FLOAT3D & vPos) { #line 251 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CPlacement3D plLaser ; #line 252 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" plLaser . pl_PositionVector = vPos ; #line 253 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" plLaser . pl_OrientationAngle = ANGLE3D (0 , - 5.0f - FRnd () * 10.0f , 0); #line 254 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" plLaser . RelativeToAbsolute (GetPlacement ()); #line 255 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CEntityPointer penProjectile = CreateEntity (plLaser , CLASS_PROJECTILE ); #line 256 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ELaunchProjectile eLaunch ; #line 257 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" eLaunch . penLauncher = this ; #line 258 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" eLaunch . prtType = PRT_CYBORG_LASER ; #line 259 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" penProjectile -> Initialize (eLaunch ); #line 260 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 265 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" void CWalker::EnemyPostInit(void) #line 266 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 268 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_soSound . Set3DParameters (160.0f , 50.0f , 1.0f , 1.0f); #line 269 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_soFeet . Set3DParameters (160.0f , 50.0f , 1.0f , 1.0f); #line 270 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_soFire1 . Set3DParameters (160.0f , 50.0f , 1.0f , 1.0f); #line 271 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_soFire2 . Set3DParameters (160.0f , 50.0f , 1.0f , 1.0f); #line 272 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_soFire3 . Set3DParameters (160.0f , 50.0f , 1.0f , 1.0f); #line 273 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_soFire4 . Set3DParameters (160.0f , 50.0f , 1.0f , 1.0f); #line 274 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } BOOL CWalker:: #line 314 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" Fire(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT STATE_CWalker_Fire ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CWalker::Fire expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; #line 315 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" DeactivateWalkingSound (); #line 317 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_TOFIRE , 0); #line 318 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fLockOnEnemyTime = GetModelObject () -> GetAnimLength (WALKER_ANIM_TOFIRE ); #line 319 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" STATE_CEnemyBase_LockOnEnemy, FALSE; Jump(STATE_CURRENT, 0x01440001, FALSE, EBegin());return TRUE;}BOOL CWalker::H0x01440001_Fire_01(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x01440001 switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: Call(STATE_CURRENT, STATE_CEnemyBase_LockOnEnemy, FALSE, EVoid());return TRUE;case EVENTCODE_EReturn: Jump(STATE_CURRENT,0x01440002, FALSE, __eeInput); return TRUE;default: return FALSE; }}BOOL CWalker::H0x01440002_Fire_02(const CEntityEvent &__eeInput){ #undef STATE_CURRENT #define STATE_CURRENT 0x01440002 const EReturn&__e= (EReturn&)__eeInput; ; #line 322 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(!(m_EwcChar == WLC_SERGEANT )){ Jump(STATE_CURRENT,0x01440005, FALSE, EInternal());return TRUE;} #line 323 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_FIRERIGHT , AOF_LOOPING ); #line 324 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ShootProjectile (PRT_WALKER_ROCKET , FIRE_RIGHT_ARM * m_fSize , ANGLE3D (0 , 0 , 0)); #line 325 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soFire1 , SOUND_SERGEANT_FIRE_ROCKET , SOF_3D ); #line 326 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(GetSP () -> sp_gdGameDifficulty <= CSessionProperties :: GD_EASY ){ #line 327 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fLockOnEnemyTime = 1.0f; #line 328 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else { #line 329 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fLockOnEnemyTime = 0.5f; #line 330 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 331 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" STATE_CEnemyBase_LockOnEnemy, FALSE; Jump(STATE_CURRENT, 0x01440003, FALSE, EBegin());return TRUE;}BOOL CWalker::H0x01440003_Fire_03(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x01440003 switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: Call(STATE_CURRENT, STATE_CEnemyBase_LockOnEnemy, FALSE, EVoid());return TRUE;case EVENTCODE_EReturn: Jump(STATE_CURRENT,0x01440004, FALSE, __eeInput); return TRUE;default: return FALSE; }}BOOL CWalker::H0x01440004_Fire_04(const CEntityEvent &__eeInput){ #undef STATE_CURRENT #define STATE_CURRENT 0x01440004 const EReturn&__e= (EReturn&)__eeInput; ; #line 332 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_FIRELEFT , AOF_LOOPING ); #line 333 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ShootProjectile (PRT_WALKER_ROCKET , FIRE_LEFT_ARM * m_fSize , ANGLE3D (0 , 0 , 0)); #line 334 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soFire2 , SOUND_SERGEANT_FIRE_ROCKET , SOF_3D );Jump(STATE_CURRENT,0x01440005, FALSE, EInternal());return TRUE;}BOOL CWalker::H0x01440005_Fire_05(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x01440005 #line 339 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(!(m_EwcChar == WLC_SOLDIER )){ Jump(STATE_CURRENT,0x0144000b, FALSE, EInternal());return TRUE;} #line 340 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(GetSP () -> sp_gdGameDifficulty <= CSessionProperties :: GD_EASY ){ #line 341 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_iLoopCounter = 4; #line 342 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else { #line 343 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_iLoopCounter = 8; #line 344 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 345 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" Jump(STATE_CURRENT,0x01440009, FALSE, EInternal());return TRUE;}BOOL CWalker::H0x01440009_Fire_09(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x01440009 if(!(m_iLoopCounter > 0)){ Jump(STATE_CURRENT,0x0144000a, FALSE, EInternal());return TRUE;} #line 346 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_iLoopCounter % 2){ #line 347 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_FIRELEFT , AOF_LOOPING ); #line 348 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ShootProjectile (PRT_CYBORG_LASER , FIRE_LEFT_ARM * m_fSize , ANGLE3D (0 , 0 , 0)); #line 349 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else { #line 350 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_FIRERIGHT , AOF_LOOPING ); #line 351 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ShootProjectile (PRT_CYBORG_LASER , FIRE_RIGHT_ARM * m_fSize , ANGLE3D (0 , 0 , 0)); #line 352 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 353 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" INDEX iChannel = m_iLoopCounter % 4; #line 354 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(iChannel == 0){ #line 355 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soFire1 , SOUND_SOLDIER_FIRE_LASER , SOF_3D ); #line 356 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else if(iChannel == 1){ #line 357 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soFire2 , SOUND_SOLDIER_FIRE_LASER , SOF_3D ); #line 358 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else if(iChannel == 2){ #line 359 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soFire3 , SOUND_SOLDIER_FIRE_LASER , SOF_3D ); #line 360 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else if(iChannel == 3){ #line 361 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soFire4 , SOUND_SOLDIER_FIRE_LASER , SOF_3D ); #line 362 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 363 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(!(m_iLoopCounter > 1)){ Jump(STATE_CURRENT,0x01440008, FALSE, EInternal());return TRUE;} #line 364 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(GetSP () -> sp_gdGameDifficulty <= CSessionProperties :: GD_EASY ){ #line 365 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fLockOnEnemyTime = 0.4f; #line 366 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else { #line 367 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fLockOnEnemyTime = 0.1f; #line 368 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 369 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" STATE_CEnemyBase_LockOnEnemy, FALSE; Jump(STATE_CURRENT, 0x01440006, FALSE, EBegin());return TRUE;}BOOL CWalker::H0x01440006_Fire_06(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x01440006 switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: Call(STATE_CURRENT, STATE_CEnemyBase_LockOnEnemy, FALSE, EVoid());return TRUE;case EVENTCODE_EReturn: Jump(STATE_CURRENT,0x01440007, FALSE, __eeInput); return TRUE;default: return FALSE; }}BOOL CWalker::H0x01440007_Fire_07(const CEntityEvent &__eeInput){ #undef STATE_CURRENT #define STATE_CURRENT 0x01440007 const EReturn&__e= (EReturn&)__eeInput; ;Jump(STATE_CURRENT,0x01440008, FALSE, EInternal());return TRUE;}BOOL CWalker::H0x01440008_Fire_08(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x01440008 #line 371 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_iLoopCounter --;Jump(STATE_CURRENT,0x01440009, FALSE, EInternal());return TRUE; #line 372 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }BOOL CWalker::H0x0144000a_Fire_10(const CEntityEvent &__eeInput) { ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x0144000a Jump(STATE_CURRENT,0x0144000b, FALSE, EInternal());return TRUE;}BOOL CWalker::H0x0144000b_Fire_11(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x0144000b #line 374 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StopMoving (); #line 376 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" MaybeSwitchToAnotherPlayer (); #line 379 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_FROMFIRE , 0); #line 380 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetTimerAfter(GetModelObject () -> GetAnimLength (WALKER_ANIM_FROMFIRE )); Jump(STATE_CURRENT, 0x0144000c, FALSE, EBegin());return TRUE;}BOOL CWalker::H0x0144000c_Fire_12(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x0144000c switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x0144000d, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CWalker::H0x0144000d_Fire_13(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x0144000d ; #line 383 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StandingAnimFight (); #line 384 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetTimerAfter(FRnd () * 0.1f + 0.1f); Jump(STATE_CURRENT, 0x0144000e, FALSE, EBegin());return TRUE;}BOOL CWalker::H0x0144000e_Fire_14(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x0144000e switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x0144000f, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CWalker::H0x0144000f_Fire_15(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x0144000f ; #line 386 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" Return(STATE_CURRENT,EReturn ()); #line 386 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" return TRUE; ASSERT(FALSE); return TRUE;};BOOL CWalker:: #line 394 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" Death(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT STATE_CWalker_Death ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CWalker::Death expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; #line 396 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StopMoving (); #line 397 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" DeathSound (); #line 398 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" DeactivateWalkingSound (); #line 401 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetCollisionFlags (ECF_MODEL ); #line 402 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetFlags (GetFlags () | ENF_SEETHROUGH ); #line 405 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ChangeCollisionBoxIndexWhenPossible (WALKER_COLLISION_BOX_DEATH ); #line 408 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StartModelAnim (WALKER_ANIM_DEATH , 0); #line 409 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetTimerAfter(0.9f); Jump(STATE_CURRENT, 0x01440011, FALSE, EBegin());return TRUE;}BOOL CWalker::H0x01440011_Death_01(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x01440011 switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01440012, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CWalker::H0x01440012_Death_02(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x01440012 ; #line 412 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_EwcChar == WLC_SERGEANT ){ #line 413 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(IRnd () & 1){ #line 414 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" FireDeathRocket (FIRE_DEATH_RIGHT * m_fSize ); #line 415 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else { #line 416 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" FireDeathRocket (FIRE_DEATH_LEFT * m_fSize ); #line 417 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 418 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soSound , SOUND_SERGEANT_FIRE_ROCKET , SOF_3D ); #line 419 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 420 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_EwcChar == WLC_SOLDIER ){ #line 421 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(IRnd () & 1){ #line 422 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" FireDeathLaser (FIRE_DEATH_RIGHT * m_fSize ); #line 423 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else { #line 424 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" FireDeathLaser (FIRE_DEATH_LEFT * m_fSize ); #line 425 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 426 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" PlaySound (m_soFire2 , SOUND_SOLDIER_FIRE_LASER , SOF_3D ); #line 427 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 428 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetTimerAfter(0.25f); Jump(STATE_CURRENT, 0x01440013, FALSE, EBegin());return TRUE;}BOOL CWalker::H0x01440013_Death_03(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x01440013 switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01440014, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CWalker::H0x01440014_Death_04(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x01440014 ; #line 430 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" FLOAT fStretch = 2.0f; #line 431 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_EwcChar == WLC_SERGEANT ) #line 432 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" { #line 433 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" fStretch = 4.0f; #line 434 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 436 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CPlacement3D plFX = GetPlacement (); #line 437 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ESpawnEffect ese ; #line 438 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ese . colMuliplier = C_WHITE | CT_OPAQUE ; #line 439 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ese . vStretch = FLOAT3D (1.5 , 1 , 1) * fStretch ; #line 440 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ese . vNormal = FLOAT3D (0 , 1 , 0); #line 441 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ese . betType = BET_DUST_FALL ; #line 442 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CPlacement3D plSmoke = plFX ; #line 443 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" plSmoke . pl_PositionVector += FLOAT3D (0 , 0.35f * ese . vStretch (2) , 0); #line 444 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CEntityPointer penFX = CreateEntity (plSmoke , CLASS_BASIC_EFFECT ); #line 445 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" penFX -> Initialize (ese ); #line 447 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetTimerAfter(0.35f); Jump(STATE_CURRENT, 0x01440015, FALSE, EBegin());return TRUE;}BOOL CWalker::H0x01440015_Death_05(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT 0x01440015 switch(__eeInput.ee_slEvent) {case EVENTCODE_EBegin: return TRUE;case EVENTCODE_ETimer: Jump(STATE_CURRENT,0x01440016, FALSE, EInternal()); return TRUE;default: return FALSE; }}BOOL CWalker::H0x01440016_Death_06(const CEntityEvent &__eeInput){ ASSERT(__eeInput.ee_slEvent==EVENTCODE_EInternal); #undef STATE_CURRENT #define STATE_CURRENT 0x01440016 ; #line 449 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" Return(STATE_CURRENT,EEnd ()); #line 449 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" return TRUE; ASSERT(FALSE); return TRUE;};BOOL CWalker:: #line 455 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" Main(const CEntityEvent &__eeInput) { #undef STATE_CURRENT #define STATE_CURRENT STATE_CWalker_Main ASSERTMSG(__eeInput.ee_slEvent==EVENTCODE_EVoid, "CWalker::Main expects 'EVoid' as input!"); const EVoid &e = (const EVoid &)__eeInput; #line 457 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" InitAsModel (); #line 458 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetPhysicsFlags (EPF_MODEL_WALKING ); #line 459 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetCollisionFlags (ECF_MODEL ); #line 460 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetFlags (GetFlags () | ENF_ALIVE ); #line 461 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_EwcChar == WLC_SERGEANT ){ #line 462 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetHealth (750.0f); #line 463 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fMaxHealth = 750.0f; #line 464 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else { #line 465 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetHealth (150.0f); #line 466 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fMaxHealth = 150.0f; #line 467 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 468 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" en_fDensity = 3000.0f; #line 470 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_sptType = SPT_ELECTRICITY_SPARKS ; #line 473 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetModel (MODEL_WALKER ); #line 474 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_EwcChar == WLC_SERGEANT ){ #line 475 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fSize = 1.0f; #line 476 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetModelMainTexture (TEXTURE_WALKER_SERGEANT ); #line 477 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" AddAttachment (WALKER_ATTACHMENT_ROCKETLAUNCHER_LT , MODEL_ROCKETLAUNCHER , TEXTURE_ROCKETLAUNCHER ); #line 478 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" AddAttachment (WALKER_ATTACHMENT_ROCKETLAUNCHER_RT , MODEL_ROCKETLAUNCHER , TEXTURE_ROCKETLAUNCHER ); #line 479 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" GetModelObject () -> StretchModel (FLOAT3D (1 , 1 , 1)); #line 480 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ModelChangeNotify (); #line 481 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CModelObject * pmoRight = & GetModelObject () -> GetAttachmentModel (WALKER_ATTACHMENT_ROCKETLAUNCHER_RT ) -> amo_moModelObject ; #line 482 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" pmoRight -> StretchModel (FLOAT3D (- 1 , 1 , 1)); #line 483 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fBlowUpAmount = 1E10f; #line 484 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_iScore = 7500; #line 485 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fThreatDistance = 15; #line 486 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" }else { #line 487 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fSize = 0.5f; #line 488 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" SetModelMainTexture (TEXTURE_WALKER_SOLDIER ); #line 489 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" AddAttachment (WALKER_ATTACHMENT_LASER_LT , MODEL_LASER , TEXTURE_LASER ); #line 490 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" AddAttachment (WALKER_ATTACHMENT_LASER_RT , MODEL_LASER , TEXTURE_LASER ); #line 491 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" GetModelObject () -> StretchModel (FLOAT3D (0.5f , 0.5f , 0.5f)); #line 492 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" ModelChangeNotify (); #line 493 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" CModelObject * pmoRight = & GetModelObject () -> GetAttachmentModel (WALKER_ATTACHMENT_LASER_RT ) -> amo_moModelObject ; #line 494 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" pmoRight -> StretchModel (FLOAT3D (- 0.5f , 0.5f , 0.5f)); #line 495 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fBlowUpAmount = 1E10f; #line 498 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_iScore = 2000; #line 499 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fThreatDistance = 5; #line 500 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 501 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" if(m_fStepHeight == - 1){ #line 502 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fStepHeight = 4.0f; #line 503 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" } #line 505 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" StandingAnim (); #line 507 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fWalkSpeed = FRnd () * 1.5f + 9.0f; #line 508 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_aWalkRotateSpeed = AngleDeg (FRnd () * 50.0f + 500.0f); #line 509 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fAttackRunSpeed = m_fWalkSpeed ; #line 510 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_aAttackRotateSpeed = m_aWalkRotateSpeed / 2; #line 511 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fCloseRunSpeed = m_fWalkSpeed ; #line 512 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_aCloseRotateSpeed = m_aWalkRotateSpeed / 2; #line 513 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fWalkSpeed /= 2.0f; #line 515 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fAttackDistance = 150.0f; #line 516 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fCloseDistance = 0.0f; #line 517 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fStopDistance = 15.0f; #line 518 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fAttackFireTime = 3.0f; #line 519 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fCloseFireTime = 1.0f; #line 520 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fIgnoreRange = 300.0f; #line 522 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fBodyParts = 8; #line 523 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" m_fDamageWounded = 100000.0f; #line 526 "D:/SE1_GPL/Sources/EntitiesMP/Walker.es" Jump(STATE_CURRENT, STATE_CEnemyBase_MainLoop, FALSE, EVoid());return TRUE; ASSERT(FALSE); return TRUE;};