|
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.
|
Lost Soul
|
Actor type
|
Monster
|
Game
|
|
DoomEd Number
|
3006
|
Class Name
|
LostSoul
|
Spawn ID
|
110
|
Identifier
|
T_LOSTSOUL
|
Classes: Actor → LostSoul
→BetaSkull
→DeadLostSoul
Lost souls have nearly twice as much health as an imp, but they don't shoot fireballs. They fly around and then charge at you for a big bite. These can really be a pain if there are lots of them flying around. In Doom 2, they are spat out by pain elementals as a form of offense.
|
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 LostSoul : Actor
{
Default
{
Health 100;
Radius 16;
Height 56;
Mass 50;
Speed 8;
Damage 3;
PainChance 256;
Monster;
+FLOAT +NOGRAVITY +MISSILEMORE +DONTFALL +NOICEDEATH +ZDOOMTRANS +RETARGETAFTERSLAM
AttackSound "skull/melee";
PainSound "skull/pain";
DeathSound "skull/death";
ActiveSound "skull/active";
RenderStyle "SoulTrans";
Obituary "$OB_SKULL";
Tag "$FN_LOST";
}
States
{
Spawn:
SKUL AB 10 BRIGHT A_Look;
Loop;
See:
SKUL AB 6 BRIGHT A_Chase;
Loop;
Missile:
SKUL C 10 BRIGHT A_FaceTarget;
SKUL D 4 BRIGHT A_SkullAttack;
SKUL CD 4 BRIGHT;
Goto Missile+2;
Pain:
SKUL E 3 BRIGHT;
SKUL E 3 BRIGHT A_Pain;
Goto See;
Death:
SKUL F 6 BRIGHT;
SKUL G 6 BRIGHT A_Scream;
SKUL H 6 BRIGHT;
SKUL I 6 BRIGHT A_NoBlocking;
SKUL J 6;
SKUL K 6;
Stop;
}
}
|
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 LostSoul
{
Health 100
Radius 16
Height 56
Mass 50
Speed 8
Damage 3
PainChance 256
Monster
+FLOAT
+NOGRAVITY
+MISSILEMORE
+DONTFALL
+NOICEDEATH
AttackSound "skull/melee"
PainSound "skull/pain"
DeathSound "skull/death"
ActiveSound "skull/active"
RenderStyle SoulTrans
Obituary "$OB_SKULL" // "%o was spooked by a lost soul."
States
{
Spawn:
SKUL AB 10 Bright A_Look
Loop
See:
SKUL AB 6 Bright A_Chase
Loop
Missile:
SKUL C 10 Bright A_FaceTarget
SKUL D 4 Bright A_SkullAttack
SKUL CD 4 Bright
Goto Missile+2
Pain:
SKUL E 3 Bright
SKUL E 3 Bright A_Pain
Goto See
Death:
SKUL F 6 Bright
SKUL G 6 Bright A_Scream
SKUL H 6 Bright
SKUL I 6 Bright A_NoBlocking
SKUL J 6
SKUL K 6
Stop
}
}