A_ZThrust

Status
Not open for further replies.

Klinx the Weasel

a.k.a Luna
Has the A_ZThrust action changed at all? Like maybe the way the variables are used? Because I'm getting a notable lack of thrusting trying to use it.

FRAME S_MAC_THRUST
SPRITENUMBER = 115
SPRITESUBNUMBER = 327680
DURATION = 900
NEXT = 0
ACTION A_ZThrust
VAR1 = -25
VAR2 = 65537

This is from 742mph's stomp ability originally and it's supposed to make you thok downward. I know the frame is being called because I found out with that sprite number it apparently spawns a picture of coral. (I'll worry about that later.)
 
All that's really changed with A_ZThrust at all is that the bug causing var2 lower bits to always be on even when only upper bits should be set is fixed. But that's not going to affect this state I see.
 
Last edited:
Ok well can you see any other reason why this might not be working?
Code:
FREESLOT
MT_MSTOMP
S_MREMOTE
S_MTHRUST

FRAME S_MREMOTE
SPRITENUMBER = 115
SPRITESUBNUMBER = 327680
DURATION = 8
NEXT = 0
ACTION A_RemoteAction
VAR1 = 0
VAR2 = S_MTHRUST

FRAME S_MTHRUST
SPRITENUMBER = 115
SPRITESUBNUMBER = 327680
DURATION = 900
NEXT = S_MTHRUST
ACTION A_ZThrust
VAR1 = -25
VAR2 = 65537

Thing MT_MSTOMP
MAPTHINGNUM = -1
SPAWNSTATE = S_MREMOTE
SPAWNHEALTH = 1000
SEESTATE = 0
SEESOUND = 0
REACTIONTIME = 0
ATTACKSOUND = 0
PAINSTATE = 0
PAINCHANCE = 0
PAINSOUND = 0
MELEESTATE = 0
MISSILESTATE = 0
DEATHSTATE = 0
DEATHSOUND = 0
XDEATHSTATE = 0
SPEED = 0
RADIUS = 65536
HEIGHT = 65536
MASS = 100
DAMAGE = 0
ACTIVESOUND = 0
RAISESTATE = 0
FLAGS = MF_RUNSPAWNFUNC|MF_NOGRAVITY|MF_NOBLOCKMAP
 
Aha, A_RemoteAction isn't targeting the right object type anymore, since MT_PLAYER isn't object #0. Set var1 = MT_PLAYER, and your problems should be fixed.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top