nuke range

Depends on what you mean by range. A nuke can hit any tile that has been revealed. So in other words it's range is unlimited. However, if you mean to ask if it possible to make a nuke effect more than a 3 by 3 area, or even make a smaller area of effect, then yes it is possible.

I know that the composite mod has a tactical ICBM that only affects the tile it is fired on, unfortunately, I am uncertain how this was accomplished.
 
MaxRiga said:
i mean range like planes have, 5 or 8 or 15 etc


Ahh ok then in that case it would be unlimited for nukes. In other words. Let's say you have revealed the entire map. One of your cities can target and fire a nuke at a tile 100 or more tiles away. Doesn't matter how far away the target is you can still fire a nuke there. That's why it is called an ICBM.

ICBM stands for Intercontinental Ballistic Missile. ;)

So, if you want to make it so that there is a range for nukes, then that would possibly take python or worse case, the SDK. Unfortunately, I have no idea how that would be done.
 
Possibly if you change nukes to DOMAIN_AIR, and then assign them an air range, that may accomplish what you're asking. I cant say for sure this would work, but that would be my initial guess.
 
i've already done it but it doesn't work. it still has - nukerange-1 and u can launch it whatever u want. this icbm drives me crazy as most stupid unit in this game! There should be, at least, 2 nuke types as in civ3 .
 
you should look at my fusion bomb. it implements less damage, but alas i couldnt make it less range either. but if you think about it, unless the "tactical nuke" were mobile (unlike any civ4 nukes), it would be worthless, as only major cities usually produce these units, and often they are imbedded deep in your county, far away from enemies or nukable terrain.
 
GarretSidzaka said:
you should look at my fusion bomb. it implements less damage, but alas i couldnt make it less range either. but if you think about it, unless the "tactical nuke" were mobile (unlike any civ4 nukes), it would be worthless, as only major cities usually produce these units, and often they are imbedded deep in your county, far away from enemies or nukable terrain.

If there was some way of being able to airlift nukes, then it would work nicely. It could also work, if the various ranges were worked out as a percentage of map size, instead of using movement points. Eg, short range could hit 33% of the map, mid range 66% and long range 100%. That way the mp would change depending on the map size, so the desired effect would always be achieved regardless of what map you play.
 
Its in CvUnit.cpp, method canNukeAt, just check if iX and iY are more than a certain distance away from pPlot->getX_INLINE() and pPlot->getY_INLINE() using the distance formula. Something like:
Code:
int xDiff = pPlot->getX_INLINE()-iX;
int yDiff = pPlot->getY_INLINE()-iY;
if (xDiff*xDiff + yDiff*yDiff > MaxNukesDistance)
{
	return false;
}
right before
Code:
pTargetPlot = GC.getMapINLINE().plotINLINE(iX, iY);
 
Back
Top Bottom