Author Topic: Grapple guns: are they possible?  (Read 9032 times)

0 Members and 1 Guest are viewing this topic.

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Grapple guns: are they possible?
I don't know if you've ever player a sci-fi games in which the player had to make use of grapple guns, but I wonder if it's possible to recreate that effect via Scripting since the original FreeSpace engine never made use of such a feature.

I haven't found Scripts that might help, however. Though it's possible to "draw" the grapple I'd like to know if it's also possible to use it in a realistic way(like moving cargo containers).

The grapple will also be static and unrealistic(it'll be a straight, textured line connecting two ships)unless a solution is found: what about beam-green and beam-white3-like animations? Will them work? They seem quite flexible, IMO.
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 
Re: Grapple guns: are they possible?
Hasn't this been suggested before?
Fun while it lasted.

Then bitter.

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Grapple guns: are they possible?
I don't really know...

Was it proposal you're refering to VERY similar to mine?
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

  

Offline Solatar

  • 211
Re: Grapple guns: are they possible?
How similar would this act to a tractor beam?

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Grapple guns: are they possible?
To "draw" the grapple you'd need the draw-beam code. It's not in scripting but there's no strong reason for it not being in scripting.

To move things around, you'd need to handle the physics. You'd probably want to have a maximum length the grapple line would get to, and then force the offset of the grappled object to remain the same as the grappled ship, until the ship started to slow down, at which point you'd want to let the object decelerate to the ship's speed (during which time the object would get relatively closer to the ship).

You'd also have to handle the object's tendency to align itself parallel to the direction of movement to the ship.
-C

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Grapple guns: are they possible?
How similar would this act to a tractor beam?

What do you mean by tractor beam? If you're refering to the one used by the Death Star I'd say no.

The grapple gun isn't made of energy and is supposed to remain attached to the ship until the destruction of the target or the deactivation of the grapple itself. I'm afraid it's much harder to represent ingame.


To "draw" the grapple you'd need the draw-beam code. It's not in scripting but there's no strong reason for it not being in scripting.

To move things around, you'd need to handle the physics. You'd probably want to have a maximum length the grapple line would get to, and then force the offset of the grappled object to remain the same as the grappled ship, until the ship started to slow down, at which point you'd want to let the object decelerate to the ship's speed (during which time the object would get relatively closer to the ship).

You'd also have to handle the object's tendency to align itself parallel to the direction of movement to the ship.

I know some basics and I wonder if this draw-beam can work. I mean, the grapple gun is pretty much like a rope, it won't be a straight like connecting two ships.

Another important thing is the traction ability but I guess it'll depend on the mass...
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Grapple guns: are they possible?
I thought you said:

Quote
The grapple will also be static and unrealistic(it'll be a straight, textured line connecting two ships)

If you didn't mean that and want realistic rope physics, then the answer isn't no, but you'll have to do a lot more work for that.

I can't answer your question unless you explain what you want and don't change your mind when I reply. A line can't be straight and non-straight at the same time.
-C

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Grapple guns: are they possible?
Actually my statement was slightly different:

The grapple will also be static and unrealistic(it'll be a straight, textured line connecting two ships)unless a solution is found: what about beam-green and beam-white3-like animations? Will them work? They seem quite flexible, IMO.

For now even something similar to a tractor beam should be enough because the project that is going to use this new feature needs a lot of time to be released and I don't exclude to learn more about Scripting until then. :)
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: Grapple guns: are they possible?
I need something like this for my Landreich Campaign too...  At one point in False Colors, a Hornet has to tow another ship.  I always thought it would be possible with scripting.

And for my campaign, it's going to be a tractor beam, not a rope...
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Grapple guns: are they possible?
A tractor beam should be enough for me, maybe in the future I will turn it into a "rope".
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 
Re: Grapple guns: are they possible?
I need something like this for my Landreich Campaign too...  At one point in False Colors, a Hornet has to tow another ship.  I always thought it would be possible with scripting.

And for my campaign, it's going to be a tractor beam, not a rope...


         You could always use a grapple like do they on Babylon 5. Basically a straight metal arm that extends down. Maybe a special model has an arm that animates to swivel downward, and at the end is a docking point which docks with the target craft.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Grapple guns: are they possible?
It doesn't have to be a tractor beam. A rope under constant tension will look a lot like a straight line. Since there's no gravity or air resistance in space, the rope is going to move in a more or less straight line. If you already have it coded to move properly, it'd be very easy to add code to make the line vibrate when the force changes suddenly.

It's also reasonable to assume that the towing ship would always put constant tension on the line, even if the ships were moving closer together, in order to keep the line from getting tangled in itself. At the very least it's an explanation that you could use that the majority of your audience will buy. :p
-C

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Grapple guns: are they possible?
Looks like there already is something similar to what I'm looking for...where is it? :)
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Grapple guns: are they possible?
I don't know of anybody who's done a tow line with scripting.
-C

 
Re: Grapple guns: are they possible?
You know, we get enough requests like this, the coders might need to make an (updated?) physics engine.
Fun while it lasted.

Then bitter.

 

Offline Einstine909

  • 27
  • (-,-) -meh
Re: Grapple guns: are they possible?
Wow, its been a while sense I've posted... :sigh:

Anyway, this was talked about before IIRC, you can use a beam weapon with a damage value of 0 and a negative mass, that creates a tractor beam, give it a positive mass and it repels objects.

Im going to read up on this... to see if what I wrote actually works.

 
Re: Grapple guns: are they possible?
If it did work, wouldn't it be in the code already?
Fun while it lasted.

Then bitter.

 

Offline Einstine909

  • 27
  • (-,-) -meh
Re: Grapple guns: are they possible?
It is in the code, its just a beam without damage... just no one uses it... yeah... :blah:

 

Offline starlord

  • 210
Re: Grapple guns: are they possible?
Anyone there thinking colony wars? :lol:

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Grapple guns: are they possible?
Anyone there thinking colony wars? :lol:

What if I tell you that this thread is linked to a possible CW conversion for FS2? :P
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito