The Planetbuster-Rocket, it'll destroy really all in it's catchement area
.
DOWNLOAD
DOWNLOAD
Uses the ICBM-modell.
Code is from Tsentom1 (his Eden Project), also got much help from him
.
Couldn't have done it without him
.
Also credits to EmperorFool, for his advice
.
Can be used as it comes as a stand-alone-mod.
AI will use it like an ICBM, not like a special unit.
Feel free to use it
, but give me and tsentom1 credit
.
For modders:
I've added the planetbuster-unitclass and unit at the end of the unitclassinfos.xml and unitinfos.xml
In the CvEventManager.py i've added with tsentom's help this:
Should be simpel to understand. If not, ask me or tsentom
.

DOWNLOAD
DOWNLOAD
Uses the ICBM-modell.
Code is from Tsentom1 (his Eden Project), also got much help from him

Couldn't have done it without him

Also credits to EmperorFool, for his advice

Can be used as it comes as a stand-alone-mod.
AI will use it like an ICBM, not like a special unit.
Feel free to use it


For modders:
I've added the planetbuster-unitclass and unit at the end of the unitclassinfos.xml and unitinfos.xml
In the CvEventManager.py i've added with tsentom's help this:
Spoiler :
Code:
def onNukeExplosion(self, argsList):
'Nuke Explosion'
pPlot, pNukeUnit = argsList
CvUtil.pyPrint('Nuke detonated at %d, %d'
%(pPlot.getX(), pPlot.getY()))
###Planetbusterbegin###
if (pNukeUnit is not None and pNukeUnit.getUnitType() == gc.getInfoTypeForString('UNIT_PLANETBUSTER')):
iX = pPlot.getX()
iY = pPlot.getY()
for iXLoop in range(iX - 1, iX + 2, 1):
for iYLoop in range(iY - 1, iY + 2, 1):
pPlot = CyMap().plot(iXLoop, iYLoop)
if (( pPlot.isPeak()==true ) or (pPlot.isHills()==true)):
pPlot.setPlotType(PlotTypes.PLOT_LAND, True, True)
pPlot.setTerrainType(gc.getInfoTypeForString( "TERRAIN_COAST" ), 1, 1)
###Planetbusterend###
Should be simpel to understand. If not, ask me or tsentom
