A_RingExplode for abilities?

Status
Not open for further replies.

Lat'

Absolute territory where
Kart Krew™️
So I started a Lua script based of various things I have see in other script, everything works except the A_RingExplode it just spawn the sprite of the ability, even with a big painchance.I tried to use the state S_Ringexplode but same, it doesn't spawn explosions.
 
You need to show us the script, otherwise we can't help you.

Also, threads like this belong in Editing Help. I moved it for you.
 
So, since I scrapped this script, I fastly re did it:
Here are the two components:

Lua script (based on gargoyle, tough)

Code:
addHook("ThinkFrame", function()
        for player in players.iterate do
                if player.mo.skin ~= "sonic" then
                        continue
                end

                
                if (player.pflags & PF_JUMPED)
                and(player.cmd.buttons & BT_CUSTOM1) then
                player.jumping = true   
				   
                if player.jumping then
                P_SpawnMobj(player.mo.x+FixedMul(40*FRACUNIT, cos(player.mo.angle)), player.mo.y+FixedMul(40*FRACUNIT, sin(player.mo.angle)), player.mo.z, MT_KAMIKAZEBURST)
                end
        end
end)

NOTE: Since I had to redo it, it has an error that tells me there is an unexpected symbol near to ')' at the end of the file.

And here is the MAINCFG (for MT_KAMIKAZEBURST)

Code:
FREESLOT
MT_KAMIKAZEBURST


Object MT_KAMIKAZEBURST
MAPTHINGNUM = -1
SPAWNSTATE = S_RINGEXPLODE
SPAWNHEALTH = 1000
REACTIONTIME = 0
PAINCHANCE = 26214400
RADIUS = 0
HEIGHT = 0
MASS = 100
FLAGS = MF_SPECIAL|MF_NOGRAVITY|MF_NOCLIP
 
I most certainly didn't make the Lua, though A_RingExplode was used in Great Divide Zone for Jasper's ability.

Yes and the problem is that Jasper doesn't hurt by itself, which is the goal of this ability but... My ability is supposed to hurt the player and spawn an explosion that also destroy the enemies in a certain range, it worked perfectly in 2.0!
 
Crawla Honcho's Rocket Jump uses A_RingExplode and it doesn't hurt him at all and gives him points. Might wanna take a look at him to find out. I'm pretty sure its just edited RoboHood code anyways :P
 
Crawla Honcho's Rocket Jump uses A_RingExplode and it doesn't hurt him at all and gives him points. Might wanna take a look at him to find out. I'm pretty sure its just edited RoboHood code anyways :P

If this ability hurt him, it will be less cheated and will look more like TF2.

So now, the only thing I want to know is how am I supposed to get him hurt?
Even with Lua, since I have some really basic knowledges.
 
Status
Not open for further replies.

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

Back
Top