.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   Which components get hit first? (http://forum.shrapnelgames.com/showthread.php?t=8104)

geoschmo December 26th, 2002 06:10 PM

Which components get hit first?
 
The prevailing wisdom is that larger internal components and smaller armor components get damaged first during combat. I finally got an answer from Malfador about this. It's not precisly true. There is no intentional bias towards larger internals or smaller armor, but the way the damage is assigned can cause it to tend towards this, especially for the first few hits during a particular combat round.

What happens is that the total structure (not size) of the components is totaled up and the damage is applied randomly to some component in that total. So you can see that a component with a larger structure is going to have a larger percentage of the total and will tend to get hit more frequently. Of course the component will not be destroyed until the total damage applied is equal to it's structure, and unapplied damage goes back into an unassigned damage pool until the next shot lands.

Armor is done the same way, except that only the total structure of the armor components is addded together. All armor is totalled together, they are not damaged separatly.

I believe the reason it appears that smaller armor is destroyed first is that the same shot can destroy more of the lower structure armor components than it can larger armor components. This would cause a ship with both lighter and heavier armor to lose it's lighter armor faster even if the hits were applied randomly to either.

This also explains why the zero structure components aren't destroyed until everything else on the ship is gone. They don't show up in the matrix to be selected randomly when applying damage. In effect they are never destroyed, they just go when the hull finally does, which happens when a hit takes the total structure to zero.

Geoschmo

Dralasite December 26th, 2002 08:35 PM

Re: Which components get hit first?
 
Thanks for the info! Maybe someone will put it into the newbie faq. I'll copy & paste this (with credit to you) into the post if that is ok.

rdouglass December 26th, 2002 08:36 PM

Re: Which components get hit first?
 
Just wanted to take a second and thank Geo for his continued diligence in uncovering the answers to our SE technical issues....

PvK December 28th, 2002 03:41 AM

Re: Which components get hit first?
 
I thought someone just noticed though that if you mod a component to have zero structure, that a ship or base with it will never be destroyed.

No?

PvK

geoschmo December 28th, 2002 04:07 AM

Re: Which components get hit first?
 
Quote:

Originally posted by PvK:
I thought someone just noticed though that if you mod a component to have zero structure, that a ship or base with it will never be destroyed.

No?

PvK

<font size="2" face="Verdana, Helvetica, sans-serif">Ah yes. I stand corrected. The ship with a zero structure comp will not be destroyed. No doubt for the same reason I stated below. I just had the result wrong.

Geoschmo

Andrés December 28th, 2002 07:34 AM

Re: Which components get hit first?
 
No a ship with a total of 0 hit points causes a division by zero error.

Gryphin December 29th, 2002 09:48 PM

Re: Which components get hit first?
 
geoschmo said: "zero structure comp"
Andrés Lescano , "No a ship with a with total of 0 hit points"
Geo is refereeing to a component
Andrés seems to be refereeing to a Hull.
Is the differance between component and hull in this issue significant?
The reason I ask is I created a component with 0 "something" and it could not be destroyed.
Here is the components file,
http://www.windingstream.com/se/gryphin_components.htm
It was the 5kT supply bay.
(No popups or advertising.)
Hope this helps.

Fyron December 29th, 2002 09:55 PM

Re: Which components get hit first?
 
A hull has as many hitpoints as the intact components on it.

Andrés December 29th, 2002 11:28 PM

Re: Which components get hit first?
 
IIRC it was Erax who found that division by zero error with a troop with a single component that had 0kt structure, I just figure it must work the same way for ships.

My conjeture is that the 0kt-structure components will be the Last to be destroyed, but the ship will explode as soon as it's total structure drops to zero.
This of course would need to playtested to verify.

geoschmo December 30th, 2002 02:32 AM

Re: Which components get hit first?
 
Quote:

Originally posted by Andr&eacutes Lescano:
IIRC it was Erax who found that division by zero error with a troop with a single component that had 0kt structure, I just figure it must work the same way for ships.

My conjeture is that the 0kt-structure components will be the Last to be destroyed, but the ship will explode as soon as it's total structure drops to zero.
This of course would need to playtested to verify.

<font size="2" face="Verdana, Helvetica, sans-serif">No, I play tested it before my Last post to be sure. I had a ship with normal components, and modded one of them to be zero structure. I got no errors in combat, but the zero structure comp was never hit and the ship was never destroyed. All the other comps were though.

Geoschmo


All times are GMT -4. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.