Guts not visible in Zandronum

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Guts not visible in Zandronum

Postby CPLJigsore » Wed Jan 06, 2021 7:06 pm

I'm using elements from Beautiful Doom in my mod, and one of these elements is the XDeath animation. In GZDoom it works perfectly fine, when I "kill" myself it shows all the guts I put in the mod. But in my Zandronum version of the mod no guts are shown at all. I'm wondering if this is maybe just a Zandronum thing, I'm not a very experienced programmer so I'm not really sure what does and does not work in Zandronum. Here's a snip of my code. I'm pretty certain I've created all the items in both versions of my mod and both versions have the sprites for the guts, but if you can't seem to find any problem with my code then maybe something is hiding from me and I'll go back and take a look. As of right everything I did seems to be identical in both of my mods.

Code: Select allExpand view
XDeath:
      PLAY O 0
   XDeath1:
      TNT1 A 0 A_PlaySound("gibs/gibbed")

      TNT1 A 0 A_SpawnItemEx("Heart",         random(-4,4),random(-4,4),random(-4,4),   velx*random(1,2),vely*random(1,2),random(1,3),   0,               SXF_ABSOLUTEMOMENTUM | SXF_TRANSFERTRANSLATION, 220)
      TNT1 A 0 A_SpawnItemEx("DoomguyTorso1",   random(-4,4),random(-4,4),random(5,48),   velx*random(1,2),vely*random(1,2),random(1,2),   random(-45,-135),   SXF_ABSOLUTEMOMENTUM | SXF_TRANSFERTRANSLATION)
      TNT1 A 0 A_SpawnItemEx("DoomguyTorso2",   random(-4,4),random(-4,4),random(5,48),   velx*random(1,2),vely*random(1,2),random(1,2),   random(45,135),      SXF_ABSOLUTEMOMENTUM | SXF_TRANSFERTRANSLATION)

   TNT1 AAAAAAAAAA 0 A_SpawnItemEx("MeatPiece",random(-4,4),random(-4,4),random(5,48),   velx*random(1,2),vely*random(1,2),random(5,10),   random(-10,10),   SXF_ABSOLUTEMOMENTUM | SXF_TRANSFERTRANSLATION,   80)
      TNT1 A 0 A_SpawnItemEx("DoomguyHand",      random(-4,4),random(-4,4),random(5,48),   velx*random(1,2),vely*random(1,2),random(5,10),   random(-10,10),   SXF_ABSOLUTEMOMENTUM | SXF_TRANSFERTRANSLATION, 48)
      TNT1 A 0 A_SpawnItemEx("DoomguyHand",      random(-4,4),random(-4,4),random(5,48),   velx*random(1,2),vely*random(1,2),random(5,10),   random(-10,10),   SXF_ABSOLUTEMOMENTUM | SXF_TRANSFERTRANSLATION, 48)
      TNT1 A 0 A_SpawnItemEx("DoomguyLeg1",      random(-4,4),random(-4,4),random(5,48),   velx*random(1,2),vely*random(1,2),random(5,10),   random(-10,10),   SXF_ABSOLUTEMOMENTUM | SXF_TRANSFERTRANSLATION, 48)
      TNT1 A 0 A_SpawnItemEx("DoomguyLeg2",      random(-4,4),random(-4,4),random(5,48),   velx*random(1,2),vely*random(1,2),random(5,10),   random(-10,10),   SXF_ABSOLUTEMOMENTUM | SXF_TRANSFERTRANSLATION, 48)
      TNT1 A 0 A_SpawnItemEx("DoomguyHead",      random(-4,4),random(-4,4),random(5,48),   velx*random(1,2),vely*random(1,2),random(5,10),   random(-10,10),   SXF_ABSOLUTEMOMENTUM | SXF_TRANSFERTRANSLATION, 48)

      POSX M 4
      POSX N 4 A_XScream
      POSX O 4 A_NoBlocking
      POSX PQRST 4
      POSX U -1
      stop


EDIT: So really my question is this: is "A_SpawnItemEx" or "SXF_ABSOLUTEMOMENTUM" somehow preventing my guts from showing up due to these being GZDoom-only functions? Or am I most likely missing something somewhere?
CPLJigsore
 
Joined: 26 Dec 2020
Operating System: Windows 10/8.1/8/201x 64-bit

Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests