Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Streched Round Shields (Modding)  (Read 3788 times)

Reshy

  • Admiral
  • *****
  • Posts: 1046
  • White
    • View Profile
Streched Round Shields (Modding)
« on: November 20, 2012, 11:38:31 AM »

I've been playing around with some mods recently and I think it might be worth adding in shields that aren't completely round, instead being able to choose how much they push out in each direction so that elongated ships don't require huge shields.
Logged

ValkyriaL

  • Admiral
  • *****
  • Posts: 2145
  • The Guru of Capital Ships.
    • View Profile
Re: Streched Round Shields (Modding)
« Reply #1 on: November 20, 2012, 01:17:14 PM »

Love the idea, this would also fix the AI's behavior of shooting your collision radius from the side and totaly missing due to out of range if your ship is really big or long or wide.
Logged

Hyph_K31

  • Admiral
  • *****
  • Posts: 1605
  • O' Hear My Name and Tremble! Ug Ug.
    • View Profile
Re: Streched Round Shields (Modding)
« Reply #2 on: November 20, 2012, 01:23:21 PM »

Totally in favour.
Logged

"GEDUNE, stop venting in front of your classmates!"

xenoargh

  • Admiral
  • *****
  • Posts: 4882
  • naively breaking things!
    • View Profile
Re: Streched Round Shields (Modding)
« Reply #3 on: November 20, 2012, 07:27:49 PM »

+1, although IIRC that would make hit detection a bit more expensive. 

Maybe a circle of the longest edge +10% to eliminate the need for constant checks against the oval?  Or just a new Shield type that just uses the hitbox and a visual effect using a slightly-larger version of the hitbox and similar code to the damage system but with a different look and translucency?  All Alex territory, just was thinking about ways to solve it :)
Logged
Please check out my SS projects :)
Xeno's Mod Pack

Gothars

  • Global Moderator
  • Admiral
  • *****
  • Posts: 4267
  • Eschewing obfuscatory verbosity.
    • View Profile
Re: Streched Round Shields (Modding)
« Reply #4 on: November 21, 2012, 01:45:00 AM »

+1, although IIRC that would make hit detection a bit more expensive. 

Maybe a circle of the longest edge +10% to eliminate the need for constant checks against the oval?  Or just a new Shield type that just uses the hitbox and a visual effect using a slightly-larger version of the hitbox and similar code to the damage system but with a different look and translucency?  All Alex territory, just was thinking about ways to solve it :)

I think the shield arc is not used for hit detection but for a weapon distance check that tells enemies when to fire. You can see that with beams sometimes; if a slim ship is engaged from the side they stop a few meters before connecting with the hull. Uh...but maybe that's what you meant. 
Logged
The game was completed 8 years ago and we get a free expansion every year.

Arranging holidays in an embrace with the Starsector is priceless.

Reshy

  • Admiral
  • *****
  • Posts: 1046
  • White
    • View Profile
Re: Streched Round Shields (Modding)
« Reply #5 on: November 21, 2012, 02:17:43 PM »

It would be interesting for modding purposes to have polygonal shields too.  But I do believe shape-able shields should be implemented to make things look cleaner and operate better.



Someone should point out the absurdity of the shield problem by making a ship that's very thin and wide and give it a very large shield just to show the problems the AI has.
Logged

InfinitySquared

  • Commander
  • ***
  • Posts: 118
    • View Profile
    • Email
Re: Streched Round Shields (Modding)
« Reply #6 on: November 23, 2012, 10:23:29 PM »

Someone should point out the absurdity of the shield problem by making a ship that's very thin and wide and give it a very large shield just to show the problems the AI has.
There already is one out there. The AI absolutely hates my Sovereigns and Battleships.
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Streched Round Shields (Modding)
« Reply #7 on: November 24, 2012, 07:17:18 AM »

It would be interesting for modding purposes to have polygonal shields too.  But I do believe shape-able shields should be implemented to make things look cleaner and operate better.



Someone should point out the absurdity of the shield problem by making a ship that's very thin and wide and give it a very large shield just to show the problems the AI has.
Polygonal shields are a brilliant idea
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

JT

  • Commander
  • ***
  • Posts: 127
    • View Profile
    • Email
Re: Streched Round Shields (Modding)
« Reply #8 on: December 04, 2012, 06:52:18 AM »

Little bump.

As a corollary to this, if possible I would like for shields to be allowed to protect multiple arc segments simultaneously. For instance, if attempting to simulate, say, fighters in Wing Commander, you could have fore and aft fixed shields but the sides would remain exposed. For Honor Harrington-style ships, you could have sidewalls along the entire length of the ungainly long ship, but have an exposed throat and skirt.

Would it be possible to consider giving various shield segments higher flux-per-damage ratios than others, such that the aforementioned Wing Commander fighter could take many hits on its fore shield, some hits on its aft shield, and few hits on its port or starboard shields, but would otherwise be able to maintain a 360-degree bubble?

This does demonstrate that trying to shoehorn straight damage-absorbing shields into the Starfarerverse is a bit difficult to reconcile with other genre fiction...


[edit] Aaaaand... ruh roh
« Last Edit: December 04, 2012, 07:00:01 AM by JT »
Logged

Reshy

  • Admiral
  • *****
  • Posts: 1046
  • White
    • View Profile
Re: Streched Round Shields (Modding)
« Reply #9 on: December 06, 2012, 11:44:11 AM »



[edit] Aaaaand... ruh roh


That was in April.  The problem with the shield bounds is that the AI fires at the shield's bubble so it'd need to be redone to compensate.
Logged

TJJ

  • Admiral
  • *****
  • Posts: 1878
    • View Profile
    • Email
Re: Streched Round Shields (Modding)
« Reply #10 on: December 06, 2012, 04:01:00 PM »

Even a number of the stock ships would play better if the shield bubble could be distorted on 1 or other of its axis to form an ellipse. (i.e. Odyssey)

That said, shield arcs would feel odd when applied to an ellipse; the effective coverage of a given sized arc would vary according to its positioning on the ellipse.
Though there's 2 ways of doing it, either:
- calculate the arc extents on the ellipse, or
- calculate the extents on a circle & project it onto the ellipse.

I've a feeling the latter would look and play better.
« Last Edit: December 06, 2012, 04:08:59 PM by TJJ »
Logged