SRB2 Message Board  

Go Back   SRB2 Message Board > Archived > Outdated Releases (2.1.X) > Lua (2.1.X)

 
 
Thread Tools
[Lua] Mobj Pickup! Details »»
[Lua] Mobj Pickup!
Version: 1, by Flame ("It's ok, I like you too!") Flame is offline
Developer Last Online: Jul 2020

Category: Version: SRB2 Rating:
Released: 06-27-2019 Last Update: Never Installs: 1
Scripts Re-Useable Content

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 code doesn't appear to cause problems. 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 LuaMobjPickup.zip (2.4 KB, 301 views)

Screenshots

Click image for larger version

Name:	srb20004.gif
Views:	333
Size:	5.44 MB
ID:	20429   Click image for larger version

Name:	srb20002.gif
Views:	226
Size:	1.22 MB
ID:	20430   Click image for larger version

Name:	srb20005.gif
Views:	283
Size:	4.71 MB
ID:	20431  

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 06-27-2019   #2
D00D64
Probably Responsible
Moderator
 
D00D64's Avatar
Default

Welcome to releases!
Attached Thumbnails
Click image for larger version

Name:	srb20008.gif
Views:	179
Size:	6.68 MB
ID:	20435  
D00D64 is offline  
Old 06-27-2019   #3
GreenKnight9000
 
GreenKnight9000's Avatar
Default

Quote:
Originally Posted by D00D64 View Post
Welcome to releases!
This was practically MADE to have the YEET sound effect
__________________
Certified Emerald Hunter for online matches
-Known as ThomasTheHedgehog888 in matches-
GreenKnight9000 is offline  
Old 07-03-2019   #4
Pedro The Plumper
It's-a me! Pedro!
 
Pedro The Plumper's Avatar
Default

*insert SMB2 reference here*
Pedro The Plumper is offline  
Old 07-03-2019   #5
-CG7244-
Sometimes I sprite "things"
 
-CG7244-'s Avatar
Default First time trying Mobj Carry

You can suffocate / kill players when carrying them to a wall.



Maybe this should be fixed.
__________________
"The more detail that I put in the sprite, means the effort that I put into it."

Last edited by -CG7244-; 07-03-2019 at 05:48 PM. Reason: fix notice
-CG7244- is offline  
Old 07-03-2019   #6
Raze C
Too much free time.
 
Raze C's Avatar
Default

Quote:
Originally Posted by -CG7244- View Post
You can suffocate / kill players when carrying them to a wall.
I'll also add to this that you can actually do that with pretty much anything "alive"


but I don't think it should be fixed honestly, it's pretty much fun
__________________
My SoundCloud:https://soundcloud.com/razesc
Raze C is offline  
Old 07-04-2019   #7
Flame
"It's ok, I like you too!"
 
Flame's Avatar
Default

Quote:
Originally Posted by -CG7244- View Post
You can suffocate / kill players when carrying them to a wall.

Maybe this should be fixed.
I actually had this come up in testing too. I did try fixing this at one point using P_TryMove instead of P_TeleportMove, although some weird stuff happened with objects picked up.


The object picked up wouldn't stay in front of you.

Trying to remediate this with P_SlideMove didn't seem to change much either.

Although if there's something that I missed, I'm open for suggestions on making the code better!

Quote:
Originally Posted by Raze C View Post
I'll also add to this that you can actually do that with pretty much anything "alive"

but I don't think it should be fixed honestly, it's pretty much fun




If the object is shoved into a wall and the ceiling height is greater than that of the floor height of that sector, the object actually ends up on the floor height of that specified sector.

Although if the ceiling height of that sector is equal to that of the floor height, then yes, the object does die.
__________________
Consider giving me a follow on Twitter!
  〃 ∩ ∧_∧
  ⊂⌒( ・ω・)
  `ヽ_っ_/ ̄ ̄ ̄/
       \/___/
Flame is offline  
Old 07-04-2019   #8
Lach
nanananananananananananan a
Moderator
 
Lach's Avatar
Default

If you want to solve the issue, try messing with giving the held object's flags MF_NOCLIP and/or MF_NOCLIPHEIGHT, which are both capable of administering intangibility to sectors.
Lach is offline  
Old 07-07-2019   #9
Flame
"It's ok, I like you too!"
 
Flame's Avatar
Default

Quote:
Originally Posted by Lach View Post
If you want to solve the issue, try messing with giving the held object's flags MF_NOCLIP and/or MF_NOCLIPHEIGHT, which are both capable of administering intangibility to sectors.
Actually, The held object is given a MF_NOCLIP flag, but is taken away when you toss or drop the object. For some reason this applies differently to players. Even though the player gets the MF_NOCLIP (Or even MF_NOCLIPHEIGHT) flag, I think the game, by default, calculates if a ceiling height equals that of a floor height for that player in a sector. And, if it does, it kills the player -- I could be wrong however.

I actually just tested this too with a regular Crawla just for fun. If held, the Crawla can freely between the playing field and wall. It is at the moment of toss that the Crawla regains it's original flags and dies in the wall. Presumably because the Ceiling and Floor height.

Gotta love game limitations.
__________________
Consider giving me a follow on Twitter!
  〃 ∩ ∧_∧
  ⊂⌒( ・ω・)
  `ヽ_っ_/ ̄ ̄ ̄/
       \/___/

Last edited by Flame; 07-07-2019 at 06:27 PM.
Flame is offline  
Old 09-13-2019   #10
Ian123asd
Just returning to SRB2.
 
Ian123asd's Avatar
Default

Imagine if someone did a basketball WAD with this.
__________________
Choco ain't the only thing loco!

It has been a long while since I last checked out SRB2.

"I.. am Iron Man." Tony Stark, Avengers Endgame
Ian123asd is offline  
 

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 10:52 AM.


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