Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: esarai on December 23, 2010, 05:58:03 am

Title: Request Inquiry: Solid Shields
Post by: esarai on December 23, 2010, 05:58:03 am
Hey all, I want your advice on something.  In my mod, I need to find a way to make fighters explode when they collide with capital ship shields.  I'm pretty sure this can't be done without a feature request, but I'm uncertain what I should request to make this possible.  I envision two possible methods... one is a 'solid shield' flag that makes the shield collidable, and then specify a special damage type and make fighters weak against it via armor.tbl.  It would probably also necessitate a visible shield texture, so players can actually be aware of how close they are to the shield.  Another option is to make the shield a separate subsystem, have there be a special subsystem collision damage, and subsystem-specific surface shields.  I'd have to fred in the regeneration of the subsystems if they're destroyed, but at least the shields won't be invisible.  Which option do you think is the most practical?
Title: Re: Request Inquiry: Solid Shields
Post by: Topgun on December 23, 2010, 01:04:36 pm
The engine handles transparency  poorly, I don't think this is a good idea until that gets fixed.
Title: Re: Request Inquiry: Solid Shields
Post by: headdie on December 23, 2010, 01:33:32 pm
Please can we have this.

hopefully it would be a simple case of altering when the shield collision mesh is used and not... but I would not be surprised that such a feature would take a ton of work due to the collision code
Title: Re: Request Inquiry: Solid Shields
Post by: ION3 on December 23, 2010, 02:53:53 pm
I think this can use additive transparency. I guess that would prevent rendering problems?
Title: Re: Request Inquiry: Solid Shields
Post by: newman on December 23, 2010, 03:03:43 pm
Just a guess, but I don't think shield transparency is handled in the same way as sub-object transparency, which has problems. So in theory, if I'm right, it should work fine transparency wise.
Title: Re: Request Inquiry: Solid Shields
Post by: Commander Zane on December 24, 2010, 12:14:09 am
It would probably also necessitate a visible shield texture, so players can actually be aware of how close they are to the shield.
Now that I've read this part I wonder if an audible collision warning will ever be made at some point (Considering WiH's damage and low ordinance warning).
Title: Re: Request Inquiry: Solid Shields
Post by: The E on December 24, 2010, 01:19:42 am
It would probably also necessitate a visible shield texture, so players can actually be aware of how close they are to the shield.
Now that I've read this part I wonder if an audible collision warning will ever be made at some point (Considering WiH's damage and low ordinance warning).

That's a trivial task that can (and should) be done in scripting, just like the various warnings from WiH.