Multiple Defense Values

I read somewhere on this forum that someone managed to assign multiple defense values to a single component. For example, a shield might block 9 beam, 6 mass and 3 missile damage. Is this actually possible? Can a single defense component be made to absorb more than one damage type effectively?
6,255 views 7 replies
Reply #1 Top
Yes, it can. Full value is given against the primary attack type, and the square root for the others. Example: Shields would block 9 beam, 3 mass, or 3 missile.
Reply #2 Top
I think what the OP is talking about is a mod that makes a defense component that has *primary* defense value against more than one attack type.
Reply #3 Top
I think what the OP is talking about is a mod that makes a defense component that has *primary* defense value against more than one attack type.

That's what I gathered as well, in which case the answer is no.
Reply #4 Top
Okay, thanks for the answer.
Reply #6 Top
Yeah I would love to get some code on this cause I just realized that defenses should be able to defend against all types.I've also broke down the fact that this makes sense that this would work.

Shielding: Stops beams in their tracks, but also can slow down Mass drives and cause
missiles to detonate early causing less damage
Armor : Stops mass drviers by being able to handle the kinetic energy produced by them
then by the same theory reduce some of the kinetic force caused by a missile
detonation, and stronger armor would slow down the penetration of armor by
beams reducing the damage the hull takes
Point Defense: This is the weird one It makes sense how it could stop missiles but the
other two im not sure how it could so to balance missiles with the
other attack types it would stand to make sense to increase the overall
strength of missiles and the absorption of point defenses to keep
point defenses as effective as the other defense types

These are just my thoughts on the idea and if some one could get me a sample of the code to give one component multiple defense values I would turn out a mod for all to try
Reply #7 Top
As Kryo already said, it can not be done.
Each defense has to have a defense type assigned to it. You can only use one.

Here is the code for a defense:

[Defense]
[Name]Duranthium[/Name]
[Class]A[/Class]
[Size]7[/Size]
[SizeMod]3[/SizeMod]
[Cost]50[/Cost]
[Absorption]2[/Absorption]
[DisplayName]Duranthium Armor[/DisplayName]
[Description]Defense against mass-drivers.[/Description]
[Model]armor0[/Model]
[Thumbnail]armor[/Thumbnail]
[Category]Armor[/Category]
[Tech_Requirement]Duranthium[/Tech_Requirement]
[Animation]Defense.x[/Animation]
[/Defense]

Notice the [Category] tag.
If you put in more than one category (as either 3 tag lines or 3 values in the same tag), the game will only use one - if it does not crash the game outright or simply ignore that particular defense component.

There is no way around it, short of a rewrite by the devs in the exe code.
And that is not likely to happen.