January 14, 2004, 10:37
|
#1
|
Firaxis Games Software Engineer
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Mar 1998
Posts: 5,360
|
AA combat formula
- The real strength of each AA unit is 1/10th of the value shown in the editor. So Flak has a strength of 0.2.
- Each AA unit in the tile being bombarded takes a shot against the defense of the bombarding air unit. The chance of shooting down the air unit is A/(A+D), as with all other forms of combat in Civ3. Remember, A is 10 times less than what is in the editor for the AA unit.
- The maximum number of AA units that are given a chance to shoot down the plane is 4. Any AA units above 4 are ignored.
So, for example, if you want the formula for the probability of N units with a strength of A shooting down a plane with defense of D, here it is:
1 - (D / (D+A))^min(N,4)
|
|
|
|
January 14, 2004, 11:13
|
#2
|
Emperor
Local Time: 09:10
Local Date: November 2, 2010
Join Date: Sep 2001
Location: Henderson, NV USA
Posts: 4,168
|
alexman, basically how did you determine this (code examination, experimentation, ...)??
__________________
JB
I play BtS (3.19) -- Noble or Prince, Rome, marathon speed, huge hemispheres (2 of them), aggressive AI, no tech brokering. I enjoy the Hephmod Beyond mod. For all non-civ computer uses, including internet, I use a Mac.
|
|
|
|
January 14, 2004, 11:29
|
#3
|
Firaxis Games Software Engineer
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Mar 1998
Posts: 5,360
|
Experiment. Debug mode with reveal map. Gave the AI 320 bombers all within range of my only city, and a number of flak units to myself. Contacted AI and declared war. After his turn, I hit F3 to see his remaining bombers. Change stats of bombers and flak, and repeat. It doesn't take long if you switch off all animations.
|
|
|
|
January 14, 2004, 11:47
|
#4
|
Deity
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Jul 2001
Location: Kneel before Grog!
Posts: 17,978
|
Thanks, alexman.
-Arrian
__________________
grog want tank...Grog Want Tank... GROG WANT TANK!
The trick isn't to break some eggs to make an omelette, it's convincing the eggs to break themselves in order to aspire to omelettehood.
|
|
|
|
January 14, 2004, 12:11
|
#5
|
King
Local Time: 11:10
Local Date: November 2, 2010
Join Date: Sep 1999
Posts: 1,657
|
This is one of my pet peeves, that we have to depend on folks like alexman to tell us how the game works. It ought to be revealed by Firaxis. Another case of developer's ego.
Great work. Kudos.
|
|
|
|
January 14, 2004, 12:39
|
#6
|
King
Local Time: 09:10
Local Date: November 2, 2010
Join Date: May 2002
Location: California - SF Bay Area
Posts: 2,120
|
Nice job, alexman
Catt
|
|
|
|
January 14, 2004, 12:41
|
#7
|
Emperor
Local Time: 11:10
Local Date: November 2, 2010
Join Date: Mar 2002
Location: listening too long to one song
Posts: 7,395
|
cool
|
|
|
|
January 14, 2004, 12:46
|
#8
|
King
Local Time: 11:10
Local Date: November 2, 2010
Join Date: Jul 2001
Location: New England
Posts: 1,310
|
So stationing more than 4 AA units in a city is a waste?
__________________
signature not visible until patch comes out.
|
|
|
|
January 14, 2004, 12:47
|
#9
|
Firaxis Games Software Engineer
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Mar 1998
Posts: 5,360
|
Unless some of them die during the bombing.
|
|
|
|
January 14, 2004, 13:25
|
#10
|
Prince
Local Time: 16:10
Local Date: November 2, 2010
Join Date: Dec 2003
Location: Tulsa, OK
Posts: 809
|
help me out here please, ..
A = attack value
D = Defense value (modifiers applied? say stock defense of 6 + 50% city + 50% fortified = Defense of 12 - did i get that right ?)
So plugging in the numbers for the flak, with above defense modifiers & assuming 20 bombers, i'd get:
1 - (12 / (12 + 0.2))^min(20,4)
1 - (0.9836)^min(20,4)
now, i'm stuck on the exponent part. help me out with the 'min' part & why there are 2 numbers posing as an 'ordered pair' ?
How would i go about solving that?
|
|
|
|
January 14, 2004, 13:31
|
#11
|
Deity
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Nov 2001
Location: Oviedo, Fl
Posts: 14,103
|
Well now I know why my AA defenses were stinking the place up.
I agree with jimmytrick, this type of stuff should be documented. I don't mind if they had put it in the strat guide and made us pay, but it should be published. I understand it cost money to publish manuals, but what about readme docs. They could be hosted by the game sites and not cost them anything. The work is probably already done, as this information must be available to the devs.
|
|
|
|
January 14, 2004, 13:34
|
#12
|
Firaxis Games Software Engineer
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Mar 1998
Posts: 5,360
|
D is the defense value of the bombarding air unit (2 for a bomber). No modifiers apply. A is the AA strength of the AA unit (0.2 for flak). N is the number of AA units, not the number of air units.
min(N,4) = N, if N less or equal to 4
min(N,4) = 4, if N greater than 4
Hope this helps...
Last edited by alexman; January 14, 2004 at 14:02.
|
|
|
|
January 14, 2004, 13:42
|
#13
|
Warlord
Local Time: 00:10
Local Date: November 3, 2010
Join Date: Nov 2003
Posts: 282
|
Splendid work!
|
|
|
|
January 14, 2004, 14:25
|
#14
|
Emperor
Local Time: 11:10
Local Date: November 2, 2010
Join Date: Mar 2002
Location: listening too long to one song
Posts: 7,395
|
Quote:
|
Originally posted by jimmytrick
This is one of my pet peeves, that we have to depend on folks like alexman to tell us how the game works. It ought to be revealed by Firaxis. Another case of developer's ego.
|
I agree that it should be revealed, but then would Alexman get as much enjoyment out of the game?
Firaxis has always had this problem, even when BR was running the show, just look at the pod bloomings or pollution or whatever it was. Years, IIRC, before someone dissected that mystery. I would throw up another recent strat game (insert joke here), MoO3 as an example of the players having no clue as to the mechanics which greatly sabotaged the game's success (there were problems far beyond that though )
|
|
|
|
January 14, 2004, 15:09
|
#15
|
Prince
Local Time: 16:10
Local Date: November 2, 2010
Join Date: Dec 2003
Location: Tulsa, OK
Posts: 809
|
ah, oki thanks alexman - i feel stupid now that i asked
anyway, if i did my math right, then a bomber with a defense value of 2, would have the following chance to get shot down:
(**edit see alexman's data**)
Last edited by MattPilot; January 14, 2004 at 16:10.
|
|
|
|
January 14, 2004, 15:13
|
#16
|
Firaxis Games Software Engineer
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Mar 1998
Posts: 5,360
|
More like:
1 AA unit: 9%
2 AA units: 17%
3 AA units: 25%
4 AA units: 32%
Assuming the AA unit is a flak.
|
|
|
|
January 14, 2004, 15:14
|
#17
|
Prince
Local Time: 16:10
Local Date: November 2, 2010
Join Date: Dec 2003
Location: Tulsa, OK
Posts: 809
|
btw, another question:
Does every AA get to 'try' to shoot down every plane, or does it become inactive after it shot down one plane?
Assuming i have 4 AA units in a city, and the enemy sends over 100 bombers in one turn. Say I shoot down the first 4 bombers, do the remaining 96 bombers have free passage or are they still subject to the AA?
Just like the Arty, once it did a defensive bombardment, it won't shoot again in that turn.
|
|
|
|
January 14, 2004, 15:28
|
#18
|
Deity
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Nov 2001
Location: Oviedo, Fl
Posts: 14,103
|
I have seen 3 and even 4 bombers shot down and the city only had Sam and 1 mobile sam.
|
|
|
|
January 14, 2004, 15:31
|
#19
|
Firaxis Games Software Engineer
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Mar 1998
Posts: 5,360
|
Unlike fighter airplanes, AA units get one chance to shoot down each bomber (unless they get killed by the lethal bombardment, of course)
|
|
|
|
January 14, 2004, 15:54
|
#20
|
Emperor
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Sep 1999
Posts: 3,361
|
Quote:
|
Originally posted by vmxa1
...this type of stuff should be documented. I don't mind if they had put it in the strat guide and made us pay, but it should be published.
|
But then what would alexman do with his spare time? He'd go mad I say... MAaAaAdDd!!!
Thanx for this info alexman. Gives us real strategy with our AA.
|
|
|
|
January 14, 2004, 16:09
|
#21
|
Prince
Local Time: 16:10
Local Date: November 2, 2010
Join Date: Dec 2003
Location: Tulsa, OK
Posts: 809
|
ah your right alexman, i'm sorry, stupid me forgot an additional bracket which messed it up.
|
|
|
|
January 14, 2004, 16:29
|
#22
|
Deity
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Feb 2001
Posts: 21,822
|
How does Stealth affect this?
__________________
[Obama] is either a troll or has no ****ing clue how government works - GePap
Later amendments to the Constitution don't supersede earlier amendments - GePap
|
|
|
|
January 14, 2004, 16:52
|
#23
|
Firaxis Games Software Engineer
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Mar 1998
Posts: 5,360
|
No effect, but stealth units have a higher defense than bombers, so they are shot down less often.
|
|
|
|
January 14, 2004, 17:44
|
#24
|
Deity
Local Time: 12:10
Local Date: November 2, 2010
Join Date: Nov 2001
Location: Oviedo, Fl
Posts: 14,103
|
And they have longer range.
|
|
|
|
January 14, 2004, 17:49
|
#25
|
Prince
Local Time: 16:10
Local Date: November 2, 2010
Join Date: Dec 2003
Location: Tulsa, OK
Posts: 809
|
And they look cooler.
|
|
|
|
January 14, 2004, 18:06
|
#26
|
Prince
Local Time: 18:10
Local Date: November 2, 2010
Join Date: Jun 2002
Location: Sweden
Posts: 635
|
this is really great, thanks alexman
__________________
You saw what you wanted
You took what you saw
We know how you did it
Your method equals wipe out
|
|
|
|
January 14, 2004, 18:07
|
#27
|
Prince
Local Time: 09:10
Local Date: November 2, 2010
Join Date: Jan 2002
Location: Incoming from CO
Posts: 975
|
Quote:
|
Originally posted by alexman
Change stats of bombers and flak, and repeat. It doesn't take long if you switch off all animations.
|
How do you change stats? I thought every time you make an editor change you had to generate a new map or load a common scenario and editor changes do not effect saved games.
== PF
|
|
|
|
January 14, 2004, 18:56
|
#28
|
Prince
Local Time: 10:10
Local Date: November 2, 2010
Join Date: May 2002
Location: of Central Texas
Posts: 561
|
Alexman the Corruption King, now the AA Tsar.
Huzzah.
Thanks for the info Alexman.
Steven
__________________
"...Every Right implies a certain Responsibility; Every Opportunity, an Obligation; Every Possession, a Duty." --J.D. Rockerfeller, Jr.
|
|
|
|
January 15, 2004, 02:41
|
#29
|
Prince
Local Time: 10:10
Local Date: November 2, 2010
Join Date: Apr 1999
Posts: 414
|
Re: AA combat formula
Quote:
|
Originally posted by alexman - The real strength of each AA unit is 1/10th of the value shown in the editor. So Flak has a strength of 0.2.
- Each AA unit in the tile being bombarded takes a shot against the defense of the bombarding air unit. The chance of shooting down the air unit is A/(A+D), as with all other forms of combat in Civ3. Remember, A is 10 times less than what is in the editor for the AA unit.
- The maximum number of AA units that are given a chance to shoot down the plane is 4. Any AA units above 4 are ignored.
So, for example, if you want the formula for the probability of N units with a strength of A shooting down a plane with defense of D, here it is:
1 - (D / (D+A))^min(N,4)
|
Good to know that any amount over 4 is ignored. Its good it does this and its how it should be. It keeps someone from stacking an area full of AA and shooting down every attacking plane. Nice job alexman!
__________________
-PrinceBimz-
|
|
|
|
January 15, 2004, 05:08
|
#30
|
Deity
Local Time: 04:10
Local Date: November 3, 2010
Join Date: Nov 2001
Location: That's DR WhereItsAt...
Posts: 10,157
|
Thank God you discovered this alexman - if someone else had it would likely have been described in a far more complex manner! You always seem to have a knack of making things perfectly easy to understand, as well as figuring them out in the first place, so cheers for that.
BTW were there any uncertainties in your results at all? No slightly odd results? Everything is explained perfectly by your forrmula.
That would be the experimental physicist in me.
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
All times are GMT -4. The time now is 12:10.
|
|