SRB2 Message Board  

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

Reply
 
Thread Tools Search this Thread
Old 04-09-2017   #1
Chaotic Chao
horns Horns HORNS
 
Chaotic Chao's Avatar
Default An SP Ringslinger Gametype?

This seems like it should be really easy, but despite that it looks like there's no way to do this, not that I would really know since I can't lua for shit beyond editing one line of other people's code.

What I want is really simple - just a way to let the player fire rings in certain maps in my mod without forcing the game to be modified. Basically a gametype that's literally the same as SP, but firing rings is allowed. I tried doing it with this:

Code:
addHook("MobjThinker", function(mo)
      if (maptol != 143) return end
      COM_BufInsertText(mo.player, 'ringslinger on')
end, MT_PLAYER)
Which, as expected, just prints "You haven't earned this yet." in the console infinitely on maps with the "Custom" gametype. Before this I tried doing it with a console script which had the same result. Is there a way around this without modifying the game? Every option I DO come up with does that and it's like there's nothing I can do...
Chaotic Chao is online now   Reply With Quote
Old 04-09-2017   #2
Sapheros
That guy that ports
 
Sapheros's Avatar
Default

Why not consider having the player shoot an object with BT_ATTACK (Ring Toss) in your custom level/gametype without the need to enable ringslinger instead of using that. I can make a quick script to help you out... once I get some damn rest ~_~
__________________
Hiyo all! Underground Website
Sapheros is online now   Reply With Quote
Old 04-09-2017   #3
Chaotic Chao
horns Horns HORNS
 
Chaotic Chao's Avatar
Default

That's exactly what I did and thanks to the rest of the Kart Krew my problem's been solved, but thanks a lot for the offer.
You can look forward to seeing some cool stuff in Chaotic Earth's next version though!
Chaotic Chao is online now   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 11:39 PM.


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