Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: fightermedic on July 24, 2013, 06:18:00 pm

Title: feature request: "no_collide" flag for subsystems
Post by: fightermedic on July 24, 2013, 06:18:00 pm
another humble request from your favorite guy to mess with things he shouldn't
i'd like for this to be possible; right now you bounce of the submodel representing the shield (yes i know the effect is too strong yet)
(http://imageshack.us/scaled/large/62/yn7q.jpg)

much work? i can think of many situations where it could come in handy (holographic rotating displays etc.)
or am i too stupid to find a solution that already exists?
Title: Re: feature request: "no_collide" flag for subsystems
Post by: zookeeper on July 25, 2013, 01:23:54 am
Well, there's no such subsystem flag but there's a submodel property (http://www.hard-light.net/wiki/index.php/Subobject_and_Subsystem_Properties#.24no_collisions) you can use.
Title: Re: feature request: "no_collide" flag for subsystems
Post by: fightermedic on July 25, 2013, 04:30:45 am
ooooooooooooooooooooh
cool
thanks
*hits wall with head*
consider this problem dealth with...
Title: Re: feature request: "no_collide" flag for subsystems
Post by: Alan Bolte on July 27, 2013, 05:58:33 am
Note that that submodel property only affects ships that are smaller than the ship that has a $no_collisions submodel. If a cruiser with a shield submodel like that rams a destroyer, collision detection just treats the smaller ship as a sphere and doesn't even check for submodels. I haven't tested what happens when two identical ships collide.
Title: Re: feature request: "no_collide" flag for subsystems
Post by: fightermedic on July 27, 2013, 11:39:48 am
that could complicate things, thanks for letting me know