View unanswered posts | View active topics It is currently Wed Oct 21, 2020 4:47 pm

 Page 1 of 1 [ 4 posts ]
 Print view Previous topic | Next topic
Changing the grappling hook
Author Message

Joined: Wed Apr 16, 2014 8:53 am
Posts: 64
Location: Bunker busting.
Changing the grappling hook
would it be possible to edit the grappling so that it damages and/or grapples onto actors?

Fri Jul 18, 2014 8:51 pm
Data Realms Elite

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Re: Changing the grappling hook
Remember to use the search function.

Making it grapple to other actors is possible, and making it damage them is very easy to do. You might wanna ask Cave about how it works.

Fri Jul 18, 2014 8:55 pm

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 12919
Location: Here
Re: Changing the grappling hook
MO-to-terrain grappling gun is rather simple, pendulum physics where the MO is "attached" to a static point with a completely rigid "rope". When the script detects that the distance between the actor and the fixed point is greater than the length of the "rope," it takes a vector that is a copy of the actor's velocity, rotates the vector in the direction of the fixed point, and then reduces the velocity based on the direction that the actor is moving. This is how the vanilla grappling gun works.

The Spelunker is a bit different, and unfortunately still needs much tweaking. Since it's an MO-to-MO grappling gun, it needs to take into account that both the user and the thing at the other end are moving objects. The way it works is that once the script detects that the distance between both MOs is greater than the length of the rope, it applies an impulse force to both MOs, with the force applied to the MOs being directed towards the opposite MO, pushing them together. This issue with this method right now is that it doesn't do a very good job at taking into account if both MOs are moving in the same direction or if one is moving and the other is staying still, resulting in both MOs feeling closer to the same weight than they actually are (a dummy can air-lift a dreadnought with some effort, coalition lights attached to a dropship make the dropship heavier than it should be).

I believe an accurate, practical grappling gun is possible, but I haven't invested enough time in tinkering to figure out how to perfect it.

Fri Jul 18, 2014 10:26 pm
Data Realms Elite

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Re: Changing the grappling hook
It involves pulling mass, and velocity, among other vectors, like no other.

Sat Jul 19, 2014 3:47 pm
Display posts from previous:  Sort by
 Page 1 of 1 [ 4 posts ]

#### Who is online

Users browsing this forum: Google [Bot]

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ Cortex Command    Dev Log    Wiki    Game Discussion    Game and Licensing Support    Mod Making       Lua Scripting       Requests    Mod Releases       Older Mods    Scene Releases       Scene Making Planetoid Pioneers    Game Discussion    Pioneer Program Lounge Data Realms Off-Topic    Off Topic Chat       Gaming       Forum Games    Site Support & Feedback
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.013s | 16 Queries | GZIP : Off ]