Resource icon

Pioneertank 2016-10-05

A Pioneertank, which can create hills and also build forts :).
Thread

3D-modell: Credits to Rabbit, White for his excellent Chimera-Tank.
Python-Code: Credtis to Tsentom1, i took the basics from his Eden Project.

Can be used as it comes as a stand-alone-mod.
Edit: V2 is up. The AI will maybe know, how to use it.
If you can report some observations of intelligenct ai-use of the pioneer-tank, please report it.

Thread is here.


For modders:
I've added the PIONEERTANK at the end of the UnitInfos.xml and UnitClassInfos.xml., the artdefines at the end of the ArtDefines_Unit.xml.
Also added the improvement CREATE_HILL to the ImprovementInfos.xml, and BUILD_CREATE_HILL to the UnitBuildInfos.xml.
There's an entry in the CIV4ArtDefines_Improvement.xml, but it is not important, it's an dummy, you'll never see it.
Important is change of the CvEventManager.py

Code:
    def onImprovementBuilt(self, argsList):
        'Improvement Built'
        iImprovement, iX, iY = argsList
###PIONEERTANKBEGIN###
        pPlot = CyMap().plot(iX, iY)
        if iImprovement == gc.getInfoTypeForString('IMPROVEMENT_CREATE_HILL'):
            pPlot.setPlotType(PlotTypes.PLOT_HILLS, True, True)
            pPlot.setImprovementType(-1)
###PIONEERTANKEND###

It just says: If there's an improvement CREATE_HILL, then change the plot to a hill, and destroy the improvement after it.
Not the most elegant way, but it works.

Thread
  • pioneer2_lpc.jpg
    pioneer2_lpc.jpg
    134.9 KB · Views: 152
  • pioneer3_I3W.jpg
    pioneer3_I3W.jpg
    157.1 KB · Views: 121
  • pioneer4_cPh.jpg
    pioneer4_cPh.jpg
    149.7 KB · Views: 142
Author
The_J
Downloads
503
Views
503
First release
Last update

Ratings

4.00 star(s) 1 ratings

More resources from The_J

Back
Top Bottom