Weapon ODF commands -1 reply

Please wait...

Terra_Inc

I'm not a bug. I'm a feature.

50 XP

3rd November 2008

4 Uploads

329 Posts

0 Threads

#1 8 years ago

Okay, I'm still working on calculating and simulating the behavior of the A2 game engine. I've recently stumbled over a few commands I never really looked at, here's the code block:

//The base amount of damage which the ordinance does with each hit //Can be applied to specific ships in format default "shipname.odf" 0.9 (this is a number) damageBase = 24

//The amount of variance applied to the damage (i.e. 10 + or - 2) //Can be applied to specific ships in format default "shipname.odf" 0.9 (this is a number) damageVariance = 2

//The threshold which must be exceeded to cause crew casualties prior //to shield exhaustion //Can be applied to specific ships in format default "shipname.odf" 0.9 (this is a number) damageThreshold = 25

//The multiplier by which any damage which exceeds the threshold is //multiplied by to calculate the percentage of crew lost with that hit //Can be applied to specific ships in format default "shipname.odf" 0.9 (this is a multiplier) shieldCrewModifier = 0.2

//The multiplier by which any damage which is applied to the hull is //multiplied by to calculate the percentage of crew lost with that hit //Can be applied to specific ships in format default "shipname.odf" 0.9 (this is a multiplier) hullCrewModifier = 0.1

Okay, the whole damageBase and damageVariance thingy is kind of self-explaining. But the following commands leave some open questions... The comments state that every damage that exceeds the threshold causes crew losses. Does that mean that damage surplus is not applied to the shields/hull? So the damageThreshold is actually the maximum damage that can be dealt on the normal way? Next question. The damage surplus is multiplied with the shield crew modifier. The way I understand this (and the way the BBOM explains it) is that the figure here is a percentage, so that 0.2 would be 20%. Is that right? That means, 2 units of surplus damage would cause 40% crew loss??? Or is that effected by the saneCrewLoss command? Another question: The comments state that the damageThreshold "must be exceeded to cause crew casualties prior to shield exhaustion". What happens after the shields are down? I'll read the BBOM again, but maybe someone around here can help me?




C.A.B.A.L.

Intermittently Connected

50 XP

13th March 2009

0 Uploads

218 Posts

0 Threads

#2 8 years ago

In that example, you have: damageBase = 24 damageVariance = 2 damageThreshold = 25 So, the weapon does 24 damage, then rolls to add or subtract up-to 2 more/less damage. If the number after adding/subtracting the variance is 25 or higher, the weapon will cause crew deaths.

In regards to your final question, after the shields are down, I think all hits to the hull will cause crew deaths. I'm not entirely sure how the shield and crew modifiers work, though.




Freyr VIP Member

A2Files Staff

46,875 XP

6th February 2005

11 Uploads

4,275 Posts

0 Threads

#3 8 years ago

I'd recommend consulting the SB34 weapons ODF pages.

www.starbase34.net - ODF command list: Standard / Special Weapons

sb34 damageThreshold = # Amount of damage that must be exceeded to cause target crew casualties while the shields are still up. Specific ships can be given different thresholds by addling a line under it in this format: " "shipname.odf" #[/quote]

As in, if the number is 20 and 23 points of damage are dealt, then 20 are blocked by the shields and 3 penetrate.

sb34 shieldCrewModifier = % Used to calculate the number of crew members killed, as a total percentage of the crew, every time the weapon hits the shields. Once again, specific ships can be affected in different ways by specifying them individually.
What happens after the shields are down?

The weapons hit the hull. [quote=sb34]hullCrewModifier = % Functions identically to the shieldCrewModifier, only this time the deaths among the crew are determined by the impacts upon the hull. Typically this number is larger than the shieldCrewModifier simply because crew lives in the hull. And as above, specific ships can be specified to have different hull modifiers.

It's all covered in better detail at SB34 than i'm likely to be able to explain on my own. :)




Terra_Inc

I'm not a bug. I'm a feature.

50 XP

3rd November 2008

4 Uploads

329 Posts

0 Threads

#4 8 years ago

Freyr;5262243

What happens after the shields are down?

The weapons hit the hull.

Seems... logical, eh? :p