SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 04-25-2014   #1
"Lat'"
Stop it
 
"Lat'"'s Avatar
Default A_RingExplode for abilities?

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.
__________________
Quote:
Originally Posted by Bronydude2k5 View Post
If you make me a Sash Lilac wad, I'll make you a sonic sprite hack of any choice.
"Lat'" is offline   Reply With Quote
Old 04-25-2014   #2
MascaraSnake
aka SpiritCrusher
Moderator
 
MascaraSnake's Avatar
Default

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.
MascaraSnake is offline   Reply With Quote
Old 04-25-2014   #3
"Lat'"
Stop it
 
"Lat'"'s Avatar
Default

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
__________________
Quote:
Originally Posted by Bronydude2k5 View Post
If you make me a Sash Lilac wad, I'll make you a sonic sprite hack of any choice.
"Lat'" is offline   Reply With Quote
Old 04-28-2014   #4
MotdSpork
Mafia? Zombies? Gold spork?
 
MotdSpork's Avatar
Default

use jasper the fox's lua as an example, im sure something there can help you.
__________________
Quote:
Originally Posted by EvilEnternity3000
a giant turtle with hot flames shooting from its crotch descends upon you
MotdSpork is offline   Reply With Quote
Old 04-28-2014   #5
StarmakerJasper
Hey, that's my pudding!
 
StarmakerJasper's Avatar
Default

I most certainly didn't make the Lua, though A_RingExplode was used in Great Divide Zone for Jasper's ability.
__________________
Quote:
Originally Posted by Speedwagon
>proceeds to throw book on floor and run around the library screaming "THE PINK IS REAL."
StarmakerJasper is offline   Reply With Quote
Old 04-28-2014   #6
"Lat'"
Stop it
 
"Lat'"'s Avatar
Default

Quote:
Originally Posted by Jasper the Fox View Post
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!
__________________
Quote:
Originally Posted by Bronydude2k5 View Post
If you make me a Sash Lilac wad, I'll make you a sonic sprite hack of any choice.
"Lat'" is offline   Reply With Quote
Old 04-28-2014   #7
D00D64
A "rather brash" indivisual
Judge
 
D00D64's Avatar
Default

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
__________________
Quote:
<Nekoishi> HOW DO YOU JUST NOT NOTICE GIGANTIC BREASTS
<RedEnchilada> I remained ignorant to a set of titanic breasts for 17 years!
D00D64 is offline   Reply With Quote
Old 04-28-2014   #8
"Lat'"
Stop it
 
"Lat'"'s Avatar
Default

Quote:
Originally Posted by D00D64 View Post
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.
__________________
Quote:
Originally Posted by Bronydude2k5 View Post
If you make me a Sash Lilac wad, I'll make you a sonic sprite hack of any choice.
"Lat'" is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.