Gamemode help?
Posted: Wed Mar 22, 2017 3:24 am
Trying to work on a gamemode for Zandronum, but I'm having some issues. First off, the Fire thing is spawned by the InfectedPlayer, and in ZDoom, the fire teleports to the player every frame, giving the illusion that the fire is following the player. However, in Zandronum, the fire just sits in place when spawned. Next, when a player touches the fire, they're supposed to transform into an InfectedPlayer, but going up tot he fire as a normal player does nothing. Anyone know what's wrong?
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
}
}