Author Topic: Feature Request: bigger hit areas for turrets  (Read 1388 times)

0 Members and 1 Guest are viewing this topic.

Offline zookeeper

  • *knock knock* Who's there? Poe. Poe who?
  • 210
Feature Request: bigger hit areas for turrets
EDIT: This request is nonsense. More information about how collision detection really works in http://www.hard-light.net/forums/index.php?topic=80264.0.

I'd imagine quite a few people have had the same problem: a small multipart turret which is so small that it's difficult to hit but which really should receive damage even if the shot doesn't hit the turret model itself.

A currently possible workaround is to detach the surrounding area of the ship's hull into a separate subobject and link the turret to that and make them have equal hitpoints; shots impacting the turret will carry damage over to their parent subobject and the turret will be destroyed if the parent subobject dies. However, that's pretty messy as you'll have to cut the ship hull up into little pieces and also because you'll end up with one extra dummy subobject subsystem per turret.

So, what I'd find very useful would be a way to link one of those non-physical orb-style subsystems to a subobject subsystem. The details of how it'd work could vary, so here's a couple of suggestions (in order of preference):

1. If there's both a subobject subsystem and an orb subsystem with the same name, they'll be treated as one subsystem. So to give Turret01 a bit bigger hit area I could simply place an orb subsystem named Turret01 into the model.

2. A new subobject property which simply specifies a radius: any hit landing within that radius (measured from the center of the subobject) count as a hit on that subsystem.

3. A new subobject property which determines which orb subsystem to link the subobject to. So to give Turret01 a bit bigger hit area I'd place an orb subsystem named Turret01MyBiggerHitArea and then give Turret01 a hit_orb=Turret01MyBiggerHitArea property.

Comments? Some easier workaround I've missed?

Attached is an image demonstrating what I'd want to do. The turret doesn't include the little pedestal it's mounted on, which in turn makes it a really small target: in addition to any hits landing on the turret model itself, I'd like to make any hits landing inside that orb to damage the turret as well.

[attachment deleted by ninja]
« Last Edit: March 24, 2012, 01:33:29 pm by zookeeper »

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Feature Request: bigger hit areas for turrets
You could make part of the base a mesh with a transparent texture that still has collision enabled.
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: Feature Request: bigger hit areas for turrets
You could make part of the base a mesh with a transparent texture that still has collision enabled.

Yes, but that's pretty much as bad as cutting up pieces from the hull. You have to account for rotation, etc.

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Feature Request: bigger hit areas for turrets
So the impact effect might be slightly elevated.  I don't know if anyone would notice.  Just put a plane right around the base just over the hull, so shots don't ever hit the hull first, and it'll count for the turret instead.  If the hull is curved, you'll only barely be able to tell in some places that the shots are impacting above it.  With damage spew off, you won't even have that sign afterward either.
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 headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Minecraft
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Feature Request: bigger hit areas for turrets
In terms of textures and model complexity etc the best option would be to use a subsystem/special point type to define the hit area of the surrounding hull, though to be honest i have never had a huge issue with hitting small turrets but this might be usefull.
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline ION3

  • 27
Re: Feature Request: bigger hit areas for turrets
Setting weapons to spread their shots a little could also help.

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Feature Request: bigger hit areas for turrets
Spread their shots?  You mean increase the impact size of the weapon?  I don't think we can do that.  If you mean spreading the shot grouping, FotG is already set to make them converge, the last thing you want is an X-wing firing even farther away from straight ahead.
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 Trivial Psychic

  • 212
  • Snoop Junkie
Re: Feature Request: bigger hit areas for turrets
How about a subsystem table entry, such as +extended_damage_radius: or something?
The Trivial Psychic Strikes Again!