Author Topic: New feature: physical subsystems take local damage from direct hits only  (Read 4949 times)

0 Members and 1 Guest are viewing this topic.

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
New feature: physical subsystems take local damage from direct hits only
For those interested:

I've committed a new "collide submodel" subsystem flag, which causes the subsystem to only take (local) damage from shots which actually impacted the submodel, whereas the default behaviour is to take damage from any shots which fall within 2x the submodel radius (damage is attenuated based on distance from the submodel center). The damage attenuation will still take place even when the flag is used, however.

This is useful for physical subsystems which are very non-spherical/cubical such as long antennas, or for ones which have a very particular shape (such as a greebled opening in hull plating, which obviously shouldn't take damage if you hit the surrounding plating).

 

Offline Enioch

  • 210
  • Alternative History Word Writer
Re: New feature: physical subsystems take local damage from direct hits only
YES

So that's why the long turrets I was working with wouldn't work properly. Thanks zk.
'Violence is the last refuge of the incompetent'  -Salvor Hardin, "Foundation"

So don't take a hammer to your computer. ;-)

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: New feature: physical subsystems take local damage from direct hits only
Nice!  :yes:


On a unrelated note (but one I was reminded off because turrets were mentioned) since you are doing great work on fixing and tweaking all these subsystem related things. Maybe you could have a look at turret barrels. Something that I always found odd is that when you hit the barrel of a turret, it doesnt damage the actual turret but instead gets counted directly as hull damage for some reason.
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Re: New feature: physical subsystems take local damage from direct hits only
Nice!  :yes:


On a unrelated note (but one I was reminded off because turrets were mentioned) since you are doing great work on fixing and tweaking all these subsystem related things. Maybe you could have a look at turret barrels. Something that I always found odd is that when you hit the barrel of a turret, it doesnt damage the actual turret but instead gets counted directly as hull damage for some reason.

Yeah, that's something that I've suspected is probably happening but have so far never bothered to verify. I'll put that on my list...

 

Offline TwentyPercentCooler

  • Operates at 375 kelvin
  • 28
Re: New feature: physical subsystems take local damage from direct hits only
Wow. I love quality-of-life improvements like this. Thanks, Zookeeper!

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: New feature: physical subsystems take local damage from direct hits only
This will be useful for our mod....    thanks.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline Aardwolf

  • 211
  • Posts: 16,384
    • Minecraft
Re: New feature: physical subsystems take local damage from direct hits only
Would such a change also mean that missiles do half as much damage as they would normally? I.e. normally it's double the value in the table because there's the direct hit damage plus the blast...

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Re: New feature: physical subsystems take local damage from direct hits only
Would such a change also mean that missiles do half as much damage as they would normally? I.e. normally it's double the value in the table because there's the direct hit damage plus the blast...

Yes. If the missile misses the subsystem's submodel by an inch, then it will receive no damage from the missile impact, only from the blast.

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Re: New feature: physical subsystems take local damage from direct hits only
Nice!  :yes:


On a unrelated note (but one I was reminded off because turrets were mentioned) since you are doing great work on fixing and tweaking all these subsystem related things. Maybe you could have a look at turret barrels. Something that I always found odd is that when you hit the barrel of a turret, it doesnt damage the actual turret but instead gets counted directly as hull damage for some reason.

Yeah, that's something that I've suspected is probably happening but have so far never bothered to verify. I'll put that on my list...

Ok, done.

In addition to fixing that, I also made another tweak: if a shot impacts a subsystem's submodel, that subsystem will now always get dealt damage first, even if other subsystems are closer to the point of impact (turret barrels are now handled right in this case as well). Before this, it was possible to, for example, shoot at the tip of a sensor antenna and have some other nearby subsystem take most of the damage simply because the other subsystem was closer to the point of impact than the center of the antenna is, even though you were obviously first and foremost hitting the antenna.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: New feature: physical subsystems take local damage from direct hits only
Love this kind of stuff. Well done.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: New feature: physical subsystems take local damage from direct hits only
Excellent!
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline redsniper

  • 211
  • Aim for the Top!
Re: New feature: physical subsystems take local damage from direct hits only
FS2 SCP: Making FreeSpace work the way you always thought it should! (tm)
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: New feature: physical subsystems take local damage from direct hits only
Is this stuff all being lumped into a settings flag?  Wouldn't this affect difficulty on missions like Bearbaiting?
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Re: New feature: physical subsystems take local damage from direct hits only
Is this stuff all being lumped into a settings flag?  Wouldn't this affect difficulty on missions like Bearbaiting?

The two additions in my last post? No, they're taking effect always and everywhere. I don't think either of them is a problem. Turrets not taking damage from hits to their barrels was IMO an obvious bug, and the damage prioritizing change is pretty much just a tweak which would very rarely affect things, especially in retail where non-turret physical subsystems are rare. If it's wanted, then sure I can put the latter behind a flag, but the former I definitely consider a bugfix.

In any case, these changes don't affect the four turrets at the tips of the retail Sathanas's claws, if that's what everyone's referring to by Bearbaiting.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: New feature: physical subsystems take local damage from direct hits only
Uh oh. D:

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: New feature: physical subsystems take local damage from direct hits only
zookeeper, bug or not, the main issue is that retail is balanced taking bugs into account.  Most of the stuff in ai_profiles is bugfixes, at least originally, but as they would have changed the gameplay significantly still can't be applied by default.  So if there's a chance this is going to affect retail gameplay at all, it will still need to be flagged.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: New feature: physical subsystems take local damage from direct hits only
I reluctantly agree, no matter how crazy it might seem. The unintended consequences we've seen from minor changes like this in the past have been occasionally spectacular.

 

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Re: New feature: physical subsystems take local damage from direct hits only
Sure, but the question is does it affect gameplay significantly (or even perceptibly)? Unless there are multipart turrets in retail which have barrels considerably bigger than their bases (meaning that most of the barrel doesn't fit inside the base's radius * 2), there's no significant change. If there are turrets which this would make notable easier to take out then sure I'll change it, but I'd still like to be pointed to such examples first. There ought to be plenty of people around here who know the FS2 ships by heart who could give me a few pointers.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: New feature: physical subsystems take local damage from direct hits only
You might be right - you really might be, it's possible I haven't given this enough thought. I certainly don't know the systems involved nearly as well as you do.

I guess I'm just jumpy because some recent changes have crept in and caused unintended problems. Blue Planet is basically unplayable right now due to an AI change that crept in somewhere in 3.6.14 dev. No one noticed it for a long time and now it's screwing people up. Again, though - you may be right in guessing that this just won't have any direct or indirect effects worth worrying about.

 

Offline Sushi

  • Art Critic
  • 211
Re: New feature: physical subsystems take local damage from direct hits only
You might be right - you really might be, it's possible I haven't given this enough thought. I certainly don't know the systems involved nearly as well as you do.

I guess I'm just jumpy because some recent changes have crept in and caused unintended problems. Blue Planet is basically unplayable right now due to an AI change that crept in somewhere in 3.6.14 dev. No one noticed it for a long time and now it's screwing people up. Again, though - you may be right in guessing that this just won't have any direct or indirect effects worth worrying about.

What sort of change? It's possible it was my fault somehow, so I'd like to know (PM me with details if you'd like).