Author Topic: Turning a ship into a missile...  (Read 1513 times)

0 Members and 1 Guest are viewing this topic.

Turning a ship into a missile...
Or making the player ship so that they are both impervious to damage and that they are a battering ram of doom. Essentially what I am trying to do is let the player fly through large enemy ships and have them explode on impact. Any clue what the easiest way to do this would be?

 
Re: Turning a ship into a missile...
I guess the biggest issue I am having is getting the ships to explode on impact. I know how to turn on Kamakazie damage, make the ship invunerable, etc...but I'd be cool if there were a way that I could make the player ship just rip through the enemy ship per say.

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
Re: Turning a ship into a missile...
When
-<
--distance
---Alpha 1
---Someship
--5
-self-destruct
--Someship


Of course, it's not perfect.  Larger ships have a prolonged deathroll and hp has to be drained which self-destruct does not do instantly.  But it would give you the desired behavior.
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 

Offline Unknown Target

  • Get off my lawn!
  • 212
  • Push.Pull?
Re: Turning a ship into a missile...
If it's for a specific ship class, go into the tables and ramp up the density of the ship to like 10 or something.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Turning a ship into a missile...
When
-<
--distance
---Alpha 1
---Someship
--5
-self-destruct
--Someship


Of course, it's not perfect.  Larger ships have a prolonged deathroll and hp has to be drained which self-destruct does not do instantly.  But it would give you the desired behavior.
If there are several ships that the player could ram, using an event that includes arguments would be even better.  As for the deathroll thing, there are ways to shorten that.  Just prior to self-destruct, have a sabbotage-subsystem instance, that sets the hull to 1%.  IIRC, sabbotage-subsystem occurs immediately.  The other way to get around prolonged deathrolls, is by kamakazi.  Essentially, flag the ship you want to destroy without a prolonged deathroll with a Kamakazi flag, either in the initial status tab for the ship, or via sexp.  The later is probably a better choice, should the ship in question need to have ai-attack orders prior to its destruction.
The Trivial Psychic Strikes Again!