|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Changing the grappling hook
Author |
Message |
grave accent
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 |
|
|
Asklar
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 |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 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 |
|
|
Foa
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 |
|
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|