Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: hotcoffeeburns on March 08, 2006, 01:14:27 pm
-
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?
-
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.
-
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 it's for a specific ship class, go into the tables and ramp up the density of the ship to like 10 or something.
-
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.