Author Topic: Request: have beams check for shields by default  (Read 3267 times)

0 Members and 1 Guest are viewing this topic.

Offline Fury

  • The Curmudgeon
  • 213
Request: have beams check for shields by default
Currently beams skip shield checks completely unless you use "no pierce shields" flag, I would like to request that beams would by default check for shields but damage still bypasses them by default.

Why? Because this would allow use of armor.tbl, specifically armor types for shields without unnecessary hassle.

Imagine for example that you're making a small mod to FS where Lucifer is the only ship with partially (or fully) resistant shields to beams. With the way beams work right now, you'd have to
1) add "no pierce shields" to all beam weapons
2) create an armor type for shields that allows all beam damage to pass through shields
3) apply said shield armor type to all ships that have shields, except of course Lucifer
4) create lucifer's shield armor type and apply it on Lucifer

Now, if beams would check for shields but bypass them by default, you'd have to
1) create lucifer's shield armor type and apply it on Lucifer
A lot less work without changing retail behavior.

Since "no pierce shields" flag already has check for shields built into it, it shouldn't be all that difficult to make shield check enabled by default.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Re: Request: have beams check for shields by default
that was how it was initially implemented, and a **** storm followed.
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Request: have beams check for shields by default
And why exactly is that? If you just enable shield check so that armor.tbl is more convenient to use on shields, it wouldn't change retail behavior.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: Request: have beams check for shields by default
No, I see what Fury is saying here.  It's an interesting approach.

EDIT: Actually, scratch that, I don't.  How exactly would armor.tbl matter if the beam is piercing the shield anyway?

Furthermore, I took a look at the code.  The beam does all the unnecessary model and collision checks, including checking the shield quadrant that is hit.  But then it sets the quadrant to -1, causing no shield quadrant to receive any damage and the full damage to be propagated to the hull.

More elaboration is necessary, methinks.

EDIT2: Also, if this is an official Blue Planet request, it should be on the HPC board.
« Last Edit: November 29, 2010, 03:06:48 am by Goober5000 »

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Request: have beams check for shields by default
I think that the idea was to make a +Shield Piercing Percentage: set to 1.0 by default and easly editable via armor table.
Then, a beam won't have to use "no pierce shields" to interact with shields.
Right now, unless this flag is set, it pierces shields regardless of shield armor setting.

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Request: have beams check for shields by default
EDIT: Actually, scratch that, I don't.  How exactly would armor.tbl matter if the beam is piercing the shield anyway?
So let's try this again though Dragon already explained it well.

If you create an armor type for shields that is supposed to stop beams from bypassing shields and want to apply it to only one or several ships, it doesn't work because beams don't care about what armor type your shield has because beams ignores shield regardless.

So what I have to do, is to put "no pierce shields" flag to all beam weapons. But wait, now all shields are resistant to beams! So to counter that, now I have to create a shield armor type to let all damage through shields and apply it to all shielded ships, except the ones I want to be resistant. This is a cumbersome and roundabout way to achieve the intended results.

The bottom lines is, armor types on shields should work with beams whether "no pierce shields" is used or not.

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: Request: have beams check for shields by default
Yes, that would be useful... :nod:
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Request: have beams check for shields by default
So what you are asking for is not so much "beams should check shields by default", but rather, "beams should use the shield armor type to determine whether or not they should be checking for shields".
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

  

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: Request: have beams check for shields by default
It would be more than glorious if the beam width could be reduced after passing through a resistant shield.
Like Nexus the jupiter incident
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 Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Request: have beams check for shields by default
So what you are asking for is not so much "beams should check shields by default", but rather, "beams should use the shield armor type to determine whether or not they should be checking for shields".

this is what im getting. and i kind of agree. i would still require the "no pierce shields" on beams that will do shield damage in order to preserve default behavior and avoid unnecessary collision tests when this is not the desired behavior. it would be trivial to add the flag to existing beam weapons with modular tables. unless of course you could query the armor table before the collision tests occur, and then skip them if they are not necessary.

It would be more than glorious if the beam width could be reduced after passing through a resistant shield.
Like Nexus the jupiter incident

if what i read on the wiki the other day about shield armor is correct, this is already somewhat possible.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Request: have beams check for shields by default
I would assume that checking the shield armor type once when entering the topmost layer of collision detection should be fast enough.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns