Code: Select all
ACTOR Fire : MorphProjectile
{
Radius 18
Height 80
+Bright
+IsMonster
+Invulnerable
-NoTeleport
-NoBlockMap
-Missile
Damage 1
MorphProjectile.PlayerClass "InfectedPlayer"
RenderStyle Add
States
{
Spawn:
FIRE A 0 A_PlaySound (Crackle, 0, 92, 1)
FIRE A 0 A_ChangeFlag (IsMonster, 0)
FIRE AABBCCDDEEFFGGHHIIJJKKLLMMNN 1 A_Warp (AAPTR_MASTER, 0, 0, 0, 0, WARPF_NOCHECKPOSITION)
Loop
}
}
ACTOR InfectedPlayer : PlayerPawn
{
Speed 1
Health 100
Radius 16
Height 38
Mass 100
PainChance 255
Player.DisplayName "Infected"
Player.Face VIR
-Pickup
States
{
Spawn:
TNT1 A 0 A_Jump(256, "See")
PLAY A -1 A_SpawnItemEx ("Fire", 0, 0, 0, 0, 0, 0, 0, SXF_SetMaster)
SpawnLoop:
PLAY A -1
Loop
See:
PLAY A 4
PLAY B 4
PLAY C 4
PLAY D 4 A_Jump (30, "Scream")
Loop
Scream:
TNT1 A 0 A_PlaySound (SCREAM)
Goto See
Pain:
PLAY G 4
PLAY G 4 A_Pain
Goto Spawn
Death:
PLAY H 5
PLAY I 5 A_PlayerScream
PLAY J 5 A_NoBlocking
PLAY N -1
Stop
}
}