Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Carl on March 19, 2005, 07:36:11 pm

Title: Seperate invulnerable tags
Post by: Carl on March 19, 2005, 07:36:11 pm
Instead of there being just one invulnerable tag, why not make one for hull, and one for shield? that would be good for missions where the lucifer is in normal space, so bombs and lasers couldn't affect it, but beams could.

I suppose you could just set shield HP and recharge rates to rediculously high values, but that wouldn't really be invulnerable, now would it?
Title: Seperate invulnerable tags
Post by: phreak on March 19, 2005, 08:00:41 pm
we also need a "subsystem invulneable" tag
Title: Seperate invulnerable tags
Post by: Starman01 on March 20, 2005, 03:48:32 am
Quote
Originally posted by PhReAk
we also need a "subsystem invulneable" tag


I second that ! That one would make my life much more easier (together with guardian-flag, i.e. make ship guardian, but subsystem invulnerable)  :)
Title: Seperate invulnerable tags
Post by: Trivial Psychic on March 20, 2005, 12:48:59 pm
I had suggested (in the MODing forum I think), a change to the ship-guardian sexp so one could not only specify a subsystem or subsystems on a specific ship to apply the guardian effect to, but also set at what strength the subsystem(s) or hull will no longer be vulnerable.  For example:

when
-true
-ship-guardian
--GVD Memphis
--weapons
--25
--hull
--5

That will ensure that the hull of the Memphis cannot be dammaged below 5%, and it's weapons won't be dammaged below 25%.  Further subsystem and minimum hull strengths can be specified.  Unfortunatley, it was pointed out that the current ship-guardian sexp can't be adapted to do this, since you can already assign multiple ships on the same sexp use.  I therefore propose that my previous proposal be altered to the sexp of ship-guardian-special.  Now, this would also double as subsystem-invulnerable, since all you need to do would be:

when
-true
-ship-guardian-special
--GVD Memphis
--hull
--15
--engine
--100

That ensures that while the hull can be dammaged down to 15%, the engine subsystem will be completely invulnerable.  For any entry, you can disable the guardian effect it by using a "0" for the subsystem minimum strength.