How to make bombers/fighters fully destroy units?

vorius

Warlord
Joined
Sep 30, 2005
Messages
264
Location
New York
The first thing I'd like to attempt to mod is to allow fighters maybe bombers to have a chance at destroying naval units specifically, instead of reducing them to 50% max. I imagine this could be altered via python code but I'm not having any luck finding what particular file handles air combat/bombardments... any ideas?
 
You can change it in the XML - no Python necessary. :)

There's an entry called "<AirCombatLimit>" which defines how much an air unit can damage another unit. Change that and you should be gold. ;)
 
Trip said:
You can change it in the XML - no Python necessary. :)

There's an entry called "<AirCombatLimit>" which defines how much an air unit can damage another unit. Change that and you should be gold. ;)

Oh wow, you serious? That easy?!

:goodjob:
 
Well, in Civ4UnitInfos.xml, under Bomber, there IS a listing for IAirCombatLimit at 50, and iCollateralDamageLimit at 50...

Would seem like the easiest points to start at.

Edit: Darn, Trip already got it.
 
Oh wait... one thing though, that would mean the fighter can destroy ground units as well... that's something I don't want! Just naval units!

That's gotta require some python editting :)
 
I see there is a function called getAirCombatLimit for the class CvUnitInfo so I figured I could just search for where that's being called within the Python folder but I get no results... the windows explorer search can search through python code right?
 
vorius said:
... the windows explorer search can search through python code right?

No.

But I like the original idea though, since artillery is useless at ranged attacks against units. One question though, why are you against aircraft destroying land units? IIRC aircraft does not have colleteral damage, so I don't think it would be too imbalanced. Personally I'm gonna do it.

Besides if an opponent is afraid of geting bombed, then he should bring along a SAM or three.
 
Air units should be able to destroy naval units. All modern naval units should have a chance to destroy or damage attacking air units, like destroyers, as some balance and realism. The way it works now, battleships remain the best naval unit because air units are just a bother to use as they can only damage the ships and other naval vessels are needed anyway. Aircraft have been delegated, as with Civ III, to city attackers, to lower defenses and destroy improvements.
 
Lucky4s said:
No.

But I like the original idea though, since artillery is useless at ranged attacks against units. One question though, why are you against aircraft destroying land units? IIRC aircraft does not have colleteral damage, so I don't think it would be too imbalanced. Personally I'm gonna do it.

Besides if an opponent is afraid of geting bombed, then he should bring along a SAM or three.

Well, couple things.

For one it's comletely unrealstic to destroy an entire infantry division via air bombardment. A division is a large number of soldiers, and they will not be standing around grouped together in an open field waiting for bombers to hit them. They will naturally be dispersed among cover such as buildings or trees.

But more importantly it's very... unbalancing. I have yet to even be attacked by AI planes, while I had stacks of fighters/bombers. For me to be able to just clean out a city with aircraft alone would be way too simple. Even the way it is now where I use just 4 bombers to weaken every unit within an enemy city to the max possible within 2 turns, before I send a few tanks in to clean up is too easy.

Since naval units do not capture cities and do not defend them it's ok to be able to destroy them. And plenty of historical examples of ships being sunk.

If I figure out how to distinguish units in bombardment I might consider making armored units destroyable too... since they tend to be offensive weapons and the only one you'd actual use for defense in a city (mech infantry) has some air interception so it might just be balanced enough.

Well, that's how I personally would prefer it :)
 
vorius said:
Well, couple things.
Well, that's how I personally would prefer it :)
As would I but there's no way to distinguish between ground and naval units. Aircraft were key to naval combat, making large warships obsolete. There's no reason for aircrafts not being allowed to destroy naval units. I changed to xml to allow destruction of ground and naval units but only because I can't set it to just allow the destruction of naval units.
 
Good points. I was thinking several passes of aircraft to wipe out the infantry though, so I guess it would equate to a squadron of bombers vs a division of infantry.

Thanks for the feedback, just feeling out options.
 
vorius said:
For one it's comletely unrealstic to destroy an entire infantry division via air bombardment.


Two words: Cluster munitions.

If you had a strike package of several squadrons, armed with cluster bombs, the effects upon the enemy would be devastating. You may not get them all, but the damage would be so severe, it would incapacitate the remnant of the division.

I would like not only aircraft to be able to wipe out units, but naval warships as well. As I stated in other threads, I hope we can give warships the ability to bombard other warships and ground units with the SDK. Right now, the arty and warship bombard is messed up, IMO because it is limited to only bombarding city defenses. From WW2 right up to the present, warships have been used to attack not only other warships and enemy fortifications, but weapons as well. Examples of targets hit in Vietnam, Lebanon and Persian Gulf War I were Anit-Aircraft Arty, SAM and Anti-Ship missile launchers, and mobile arty to name a few.

I had a question: Where can a person look to give a unit a bonus against another type of unit ? Would this be in the XML or Python files ? Or is it something that can only be changed when the SDK comes out ?
 
Back
Top Bottom