Something that works offline, but not online

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Erma
Forum Regular
Posts: 418
Joined: Wed Nov 07, 2012 11:39 pm

Something that works offline, but not online

#1

Post by Erma » Thu Jul 14, 2016 12:41 am

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
}
}
Image

User avatar
SwordGrunt
Forum Regular
Posts: 377
Joined: Thu Jun 07, 2012 8:43 pm

Re: Something that works offline, but not online

#2

Post by SwordGrunt » Thu Jul 14, 2016 1:35 am

Your A_SpawnItemEx calls have the SXF_CLIENTSIDE (128) flag. This should only be used for purely decorative actors, which isn't your case.

User avatar
Erma
Forum Regular
Posts: 418
Joined: Wed Nov 07, 2012 11:39 pm

Re: Something that works offline, but not online

#3

Post by Erma » Thu Jul 14, 2016 1:41 am

Swordgrunt, you Will Smith loving genius.

I thank you. If there's anything I can do to repay you, feel free to ask :)
Image

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

Re: Something that works offline, but not online

#4

Post by Ænima » Thu Jul 14, 2016 1:48 am

Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
Erma
Forum Regular
Posts: 418
Joined: Wed Nov 07, 2012 11:39 pm

Re: Something that works offline, but not online

#5

Post by Erma » Sat Jul 16, 2016 12:56 am

Was something I completely overlooked. Still thank you as well for last time. But atleast it worked... half 'n half :v:
Image

User avatar
NachtIntellect
Forum Regular
Posts: 480
Joined: Mon Jun 11, 2012 9:20 am
Location: Bienenstock, Germany

Re: Something that works offline, but not online

#6

Post by NachtIntellect » Sat Jul 16, 2016 5:51 am

Well, I still make a ton of mistakes nowadays and when I am doing stuff I don't exactly know what I am doing yet somehow still manage to get it done, it's like I am smart but I am dumb at the same time, anyway it's natural to make mistakes and you shouldn't let it get to you.

Post Reply