|
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
- You do not need to copy that actor, since it is already defined.
- In fact, it's not just useless, it's actually harmful as it can cause problems.
- If you want to modify it, or use a modified version, using inheritance is the way to go.
- The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
- There is only one exception: if what you want is changing Ammo capacity, you need to create a new type from Ammo.
|
Heavy Weapon Dude
|
Actor type
|
Monster
|
Game
|
(Doom2)
|
DoomEd Number
|
65
|
Class Name
|
ChaingunGuy
|
Spawn ID
|
2
|
Identifier
|
T_CHAINGUY
|
Classes: ChaingunGuy
→StealthChaingunGuy
The Chaingun Zombie, aka "Former Human Commando", totes a huge chaingun and can whittle a player's health down in seconds. Luckily, they can't take much damage and can be easily dispatched. They drop their chaingun when they die. They will even mow through their own ranks if you can get around them.
|
Note: The ZScript definition below is for reference and may be different in the current version of GZDoom.The most up-to-date version of this code can be found on GZDoom GitHub.
|
class ChaingunGuy : Actor
{
Default
{
Health 70;
Radius 20;
Height 56;
Mass 100;
Speed 8;
PainChance 170;
Monster;
+FLOORCLIP
SeeSound "chainguy/sight";
PainSound "chainguy/pain";
DeathSound "chainguy/death";
ActiveSound "chainguy/active";
AttackSound "chainguy/attack";
Obituary "$OB_CHAINGUY";
Tag "$FN_HEAVY";
Dropitem "Chaingun";
}
States
{
Spawn:
CPOS AB 10 A_Look;
Loop;
See:
CPOS AABBCCDD 3 A_Chase;
Loop;
Missile:
CPOS E 10 A_FaceTarget;
CPOS FE 4 BRIGHT A_CPosAttack;
CPOS F 1 A_CPosRefire;
Goto Missile+1;
Pain:
CPOS G 3;
CPOS G 3 A_Pain;
Goto See;
Death:
CPOS H 5;
CPOS I 5 A_Scream;
CPOS J 5 A_NoBlocking;
CPOS KLM 5;
CPOS N -1;
Stop;
XDeath:
CPOS O 5;
CPOS P 5 A_XScream;
CPOS Q 5 A_NoBlocking;
CPOS RS 5;
CPOS T -1;
Stop;
Raise:
CPOS N 5;
CPOS MLKJIH 5;
Goto See;
}
}
|
Note: This is legacy code, kept here for reference only. DECORATE is still supported but no longer used by GZDoom. GZDoom internally uses the ZScript definition above.
|
ACTOR ChaingunGuy
{
Health 70
Radius 20
Height 56
Mass 100
Speed 8
PainChance 170
Monster
+FLOORCLIP
SeeSound "chainguy/sight"
PainSound "chainguy/pain"
DeathSound "chainguy/death"
ActiveSound "chainguy/active"
AttackSound "chainguy/attack"
Obituary "$OB_CHAINGUY"
Dropitem "Chaingun"
States
{
Spawn:
CPOS AB 10 A_Look
Loop
See:
CPOS AABBCCDD 3 A_Chase
Loop
Missile:
CPOS E 10 A_FaceTarget
CPOS FE 4 Bright A_CPosAttack
CPOS F 1 A_CPosRefire
Goto Missile+1
Pain:
CPOS G 3
CPOS G 3 A_Pain
Goto See
Death:
CPOS H 5
CPOS I 5 A_Scream
CPOS J 5 A_NoBlocking
CPOS KLM 5
CPOS N -1
Stop
XDeath:
CPOS O 5
CPOS P 5 A_XScream
CPOS Q 5 A_NoBlocking
CPOS RS 5
CPOS T -1
Stop
Raise:
CPOS N 5
CPOS MLKJIH 5
Goto See
}
}