SRB2 Message Board  

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

Reply
 
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!

Quote:
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?
PERHAPS YOU WANT TO PICK UP EACH OTHER?

USES
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 VL_MobjPickup-v3.zip (2.7 KB, 317 views)

Screenshots

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.

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

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
Kiylo
Just a dope on the net :V
 
Kiylo's Avatar
Default

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

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
__________________
Quote:
<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
Miguel8888
Default

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

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
Flame
"It's ok, I like you too!"
 
Flame's Avatar
Default

Hey, all!

A new update is available!

Changes:
  • 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
CowboyJoseph64
Sonic Boll alpha tester
 
CowboyJoseph64's Avatar
Default

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
Frostiikin
Insert funny hahas here
 
Frostiikin's Avatar
Default

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
Reply

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.