Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack overflow #1293

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 21 additions & 24 deletions actors/Monsters/T1-Grunts/SergeantVariant.dec
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ Actor PB_PyroSergeant: PB_HelmetSergeant //Replaces ShotgunGuy
PainChance "Flames", 12
PainChance "Burn", 12
+SLIDESONWALLS
+AVOIDMELEE
States
{

Expand Down Expand Up @@ -330,8 +331,7 @@ Actor PB_PyroSergeant: PB_HelmetSergeant //Replaces ShotgunGuy

SearchForPlayer:
Idle:
TNT1 A 0 A_JumpIfHealthLower(1, "Death")
TNT1 A 0 A_ClearTarget
TNT1 A 0 A_ClearTarget
TNT1 A 0 A_TakeInventory("EnemyMemory", 30)

SFV1 EEEEE 10 A_Look
Expand Down Expand Up @@ -374,56 +374,52 @@ Actor PB_PyroSergeant: PB_HelmetSergeant //Replaces ShotgunGuy

Reload:
See:
TNT1 A 0 A_JumpIfHealthLower(1, "Death")
TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
TNT1 A 0 A_TakeInventory("EnemyMemory", 1)
TNT1 A 0 A_CheckSight("SeeNeverSeen")
Goto SeeContinue

SeeContinue:
TNT1 A 0 A_JumpIfHealthLower(1, "Death")
TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
//Advance:
TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
TNT1 A 0 A_JumpIfInventory("EnemyMemory", 30, "SearchForPlayer")
TNT1 A 0 A_GiveInventory("EnemyMemory", 1)

SFV1 AA 2 A_SmartChase
TNT1 A 0 A_Recoil(-1)
SFV1 AA 2 A_SmartChase

SFV1 BB 2 A_SmartChase
SFV1 A 2 A_SmartChase("Missile", "Melee", 0)
SFV1 AA 2 A_SmartChase("", "", CHF_DONTTURN)
SFV1 B 2 A_SmartChase("Missile", "Melee", 0)
SFV1 BB 2 A_SmartChase("", "", CHF_DONTTURN)
TNT1 A 0 A_PlaySound("humans/step",3)
SFV1 BB 2 A_SmartChase

SFV1 CC 2 A_SmartChase
TNT1 A 0 A_Recoil(-1)
SFV1 CC 2 A_SmartChase

SFV1 DD 2 A_SmartChase
SFV1 C 2 A_SmartChase("Missile", "Melee", 0)
SFV1 CC 2 A_SmartChase("", "", CHF_DONTTURN)
SFV1 D 2 A_SmartChase("Missile", "Melee", 0)
SFV1 DD 2 A_SmartChase("", "", CHF_DONTTURN)
TNT1 A 0 A_PlaySound("humans/step",3)
SFV1 DD 2 A_SmartChase
Loop

SeeNeverSeen:
TNT1 A 0 A_JumpIfCloser(200, "Missile")
Advance:
Advance:
TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)

TNT1 A 0

SFV1 AA 2 A_SmartChase
TNT1 A 0 A_Recoil(-1)
SFV1 A 2 A_SmartChase("Missile", "Melee", 0)
SFV1 AA 2 A_SmartChase("", "", CHF_DONTTURN)
TNT1 A 0

SFV1 BB 2 A_SmartChase
SFV1 B 2 A_SmartChase("Missile", "Melee", 0)
SFV1 BB 2 A_SmartChase("", "", CHF_DONTTURN)
TNT1 A 0 A_PlaySound("humans/step",3)
TNT1 A 0

SFV1 CC 2 A_SmartChase
SFV1 C 2 A_SmartChase("Missile", "Melee", 0)
SFV1 CC 2 A_SmartChase("", "", CHF_DONTTURN)
TNT1 A 0

SFV1 DD 2 A_SmartChase
SFV1 D 2 A_SmartChase("Missile", "Melee", 0)
SFV1 DD 2 A_SmartChase("", "", CHF_DONTTURN)
TNT1 A 0 A_PlaySound("humans/step",3)
Loop

Expand Down Expand Up @@ -457,6 +453,7 @@ Actor PB_PyroSergeant: PB_HelmetSergeant //Replaces ShotgunGuy

///////////////////////////////////////
Melee:
TNT1 AAA 0
Missile:
TNT1 A 0 A_TakeInventory("EnemyMemory", 30)
TNT1 A 0 A_Jump(150, 2)
Expand Down