Hello there!
I've been trying to get a specific attack going for an existing character, but the thing is:
It works perfectly offline, but not online.
It's supposed to deal damage whenever you're touching the actors and deal poison damage.
This attack (poisoncloudattack1) is spawned using a A_SpawnItemEx command.
Thanks in advance!
Spoiler: Code (Open)actor PoisonCloudAttack1
{
Projectile
Speed 0
Radius 1
Height 1
Damagetype "ZombiePoison"
obituary "%o couldn't find the antidote for %k's poison."
ReactionTime 224
States
{
Spawn:
TNT1 A 0
TNT1 A 0 A_PlaySound("POICLOUD")
TNT1 A 0 A_Playsound("KEOVHEAT")
Goto Poisonloop
Poisonloop:
TNT1 A 0 A_PlaySoundEx("AmorbisWind", "SoundSlot7", 1)
TNT1 AAAAAAAAA 0 A_SpawnItemEx("BrightLeaf", Random(-156, 156), Random(-156, 156), Random(-156, 156), Random(-2,2), Random(-2,2), Random(-2,2), 0, 128, 0)
TNT1 AAAAAAAAAAAA 1 A_SpawnItemEx("AmorbisMist", Random(-156, 156), Random(-156, 156), Random(-156, 156), 0, 0, Random(-3, 3), 0, 128, 0)
TNT1 AAAAAAAAAA 1 A_SpawnItemEx("AmorbisMist", Random(-156, 156), Random(-156, 156), Random(-156, 156), 0, 0, Random(-3, 3), 0, 128, 0)
TNT1 A 0 A_CountDown
loop
Death:
TNT1 A 0
Stop
XDeath:
TNT1 A 0
Stop
}
}
actor BrightLeaf
{
Projectile
Radius 10
Height 10
Speed 0
Damage 0
RenderStyle Add
Alpha 0.9
Gravity 0.06
-NOGRAVITY
+FORCEXYBILLBOARD
States
{
Spawn:
PEAF ABCDEFG 4 BRIGHT A_FadeOut(0.05)
loop
Death:
TNT1 A 1
stop
}
}
actor AmorbisMist
{
Radius 11
Height 7
poisondamage 80
Damage (6)
Scale 0.6
RenderStyle Add
Alpha 0.5
Translation "176:191=112:127", "32:47=112:127"
PROJECTILE
Obituary "%o couldn't find the antidote for %k's poison."
+NOGRAVITY
+ADDITIVEPOISONDAMAGE
+ADDITIVEPOISONDURATION
States
{
Spawn:
EPF4 ABCDEFGHIJKLMNOPQRSTUVWXYZ 1 BRIGHT
EPF5 AB 1 BRIGHT
Stop
Death:
TNT1 A 0
Stop
}
}