Ranged Combat...Possible? How?

WonderBill

Chieftain
Joined
Apr 9, 2008
Messages
10
I was looking into making a mod that involves various aspects of modern warfare, but on a much smaller scale than which Civ is based. My Infantry would in fact be 3 men, not a representation of a 10,000 man army. As such, the squares on my civ board would represent something like 100 meters each. I know in the survival scenario, the archers have a ranged shot. Is there some way to make combat over 3-6 squares away possible? Say you move your infantry up 2 squares and are now within 4 of an enemy infantry. You have one movement left, so you say "attack." They go through the normal civ fighting sequence, just at 4 squares distance. Possible? Any other ideas if this way is too complex? I'm sure if I could know how the "survival" archer system worked, I could make something with that, if nothing else. Thank you!

(My overall combat area would be about 5 miles, max, as opposed to world-sized. If ranged bombardment is the only way, could someone point me to the coding needed to change bombardment ranges and power?)
 
It is really simple, look at the xml files for units in the defense mod

To get the ai to use it though i think you need to add aiair to the range combat units. added this to my mod and worked well for me, however the ai didn't use more than 5% of the time, didn't add the air attack ai though, that was going to be my next step

one other thing you will need is a mega sentry promotion to give to all units if you want them to be able to see the emeny coming far enough out to let them shoot, or have advanced scout out front acting as eyes and ears.
 
Once again I have to explain that using the method used in FF is a VERY bad idea. There are intrinsic issues with using it that way. The biggest being that the damage caused is linked with air power, not bombard power (as used by siege units).

This mod however implements ranged bombardment correctly.
http://forums.civfanatics.com/showthread.php?t=257210
 
I'm sorry, I don't actually know what you mean by "FF." What did you mean about air power vs. bombardment? (I'm sorry, I just started to research and try my hand at modding 3 days ago)
I will look into those defense mods and the like. As for the AI, I'm really not concerned. I just want two humans to be able to play. Good point about the Super-Sentry promotion. I'll look into that, too. Thanks for the ranged combat thread, I'll see what I can find. Thanks!
 
FF == Final Frontier.

The "air power" vs "bombardment" thing is that in FF ranged combat is given by assigning the unit air combat power (like a plane). A siege unit (what you really want to give ranged combat) uses the bombardment power.

For logic, and to keep things clean in the XML file you can't use the method FF uses to give catapults ranged bombardment. It doesn't work as that concept as used in FF is not linked at all to the strength of the unit's bombarding ability (or consequent siege promotions). Therefore it does not work.

My combat mod resolves this by implementing ranged combat CORRECTLY for siege units.

BTW, you don't need a mega-sentry promotion. Just change the visibility tag in the unit's XML.
 
Back
Top Bottom