SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Lua

Thread Tools
Map Object Pickup (Updated for v2.2) (v3) Details »»
Map Object Pickup (Updated for v2.2) (v3)
Version: v3, by Flame ("It's ok, I like you too!") Flame is offline
Developer Last Online: Aug 2020

Version: SRB2 Rating: (1 votes - 3.20 average)
Released: 12-20-2019 Last Update: Never Favourites: 3
Scripts Re-Useable Content

Second Verse, same as the first!

Originally Posted by Flame
Oh hey, look who's back from the grave!
Here's a small tidbit of code that I made from a bigger project some time ago. Originally programmed in C and now updated to Lua.

Interact with Map Objects (Mobjs) in a totally different way!
Maybe mess with your friends?

Use the Custom Action Button (2) to pick up and toss an object with the same button press!
Issues, problems or bugs?
  • In small scale, the only problem I've encountered was with Map objects that disappear, such as the rising pop-out spike object. I've created a workaround such that if the object is no longer valid, it allows you to pickup another object without error. (It doesn't produce an error in Lua at least!)
  • I am aware from the other thread that if you pick up a player and force them through a wall, the picked up player dies. I've attempted a workaround, however this has been left out as it produced odd behavior.

Other than that, the code hasn't been tested in large scale and I would be interested in knowing if there are any issues with the code. Please let me know of any issues that come up and what you may have been doing at the time of error, and I can make appropriate updates!

Download Now

File Type: zip (2.7 KB, 317 views)


Click image for larger version

Name:	srb20002.gif
Views:	377
Size:	2.11 MB
ID:	23916   Click image for larger version

Name:	srb20003.gif
Views:	292
Size:	2.67 MB
ID:	23917   Click image for larger version

Name:	srb20004.gif
Views:	235
Size:	6.86 MB
ID:	23918  

Supporters / CoAuthors

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Old 12-20-2019   #2
Probably Responsible
D00D64's Avatar

Welcome to releases!
Attached Thumbnails
Click image for larger version

Name:	srb20181.gif
Views:	200
Size:	2.77 MB
ID:	23971  
D00D64 is offline   Reply With Quote
Old 12-20-2019   #3
Just a dope on the net :V
Kiylo's Avatar

finally i can screw around and pick up the sign post
Yeetus mah dude
Kiylo is offline   Reply With Quote
Old 12-21-2019   #4
Oh, THAT Youtuber...
SSG3's Avatar

Regarding your code, let me remind you that MF_NOCLIPHEIGHT also exists, allowing objects to ignore floors and ceilings. Perhaps that could be a fix you could look into?

Regardless, Nice to see this ported. Now if you don't mind, Imma see if I can move the minecart in Arid Canyon Zone... :D
<Lat'> people thought moonjump and chaos control were OP
<Lat'> screw jump is the new meta
SSG3 is offline   Reply With Quote
Old 12-21-2019   #5

When you take a horizontal spring and you drop it, it flies away
Miguel8888 is offline   Reply With Quote
Old 12-22-2019   #6
"It's ok, I like you too!"
Flame's Avatar

Ah yes.Some of those Map objects can be a little weird with what flags they have associated with them. That one naturally has a No Gravity Flag. I'll fix it up and possibly give the springs a universal gravity flag when dropped.

I'm also understanding that in ACZ and DSZ, there is an issue with the object pickup as it'll just grab an object from anywhere in the map. I assume this is due to the calculation of P_AproxDistance in the code. I'll fix this up soon.
Consider giving me a follow on Twitter!
  〃 ∩ ∧_∧
  ⊂⌒( ・ω・)
  `ヽ_っ_/ ̄ ̄ ̄/
Flame is offline   Reply With Quote
Old 12-23-2019   #7
"It's ok, I like you too!"
Flame's Avatar

Hey, all!

A new update is available!

  • Modified the actual pickup code so it should no longer pick up objects that are "out of reach". This includes very big maps such as Arid Canyon Zone and Deep Sea Zone.
  • As noted in Miguel8888's comment, MF_SPRING flag behavior has been adjusted:
    1. When picking up a spring it is now not possible to accidentally collide with your held spring until thrown.
    2. When tossing a spring, IF it's a spring, it should universally remove the MF_NOGRAVITY flag for that given object. It should no longer fly into the sky.

Consider giving me a follow on Twitter!
  〃 ∩ ∧_∧
  ⊂⌒( ・ω・)
  `ヽ_っ_/ ̄ ̄ ̄/

Last edited by Flame; 12-23-2019 at 02:38 AM. Reason: Link to gif. Unable to upload gif to SRB2 MB.
Flame is offline   Reply With Quote
Old 12-23-2019   #8
Sonic Boll alpha tester
CowboyJoseph64's Avatar

Some bosses also fly up into the great beyond if you try to toss them.
CowboyJoseph64 is offline   Reply With Quote
Old 12-23-2019   #9
Insert funny hahas here
Frostiikin's Avatar

I've played on a couple servers with this mod, and it is both fun and horrible at the same time. Trolls always end up shoving you in a wall or doing something weird to crash the server, and if used in the nights specialstages it completely breaks them, and if a troll gets ahold of the boss it's impossible for everyone else to finish. It's fun, but not something i'd recommend for particularly serious servers (Also first post woo)
Frostiikin is offline   Reply With Quote

Thread Tools

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 05:44 PM.

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