Jump to content


curteck

Member Since 04 Jan 2009
Offline Last Active Jan 12 2009 06:16 AM

Topics I've Started

Modding The Harvester

04 January 2009 - 10:23 PM

I'm trying to mod the Harvester so that when it picks up Tiberium your credits go up instead of having to go back to the refinery. I figured that I could copy behavior elements from the refinery.xml file into the harvester.xml file but that hasn't worked.

Here's the behavior for sending the Harvester back to the refinery:

<ReturnToDockSpecialPower
id="ModuleTag_ReturnToDock"
SpecialPowerTemplate="SpecialPower_ReturnToDock" />

In the GameObject section of the GDIRefinery.xml you see:

KindOf="STRUCTURE SELECTABLE IMMOBILE CAN_CAST_REFLECTIONS SUPPLY_GATHERING_CENTER FS_MONEY_STORAGE NOT_AUTOACQUIRABLE AUTO_ACQUIRABLE_BY_AI COVER"

and in the behaviors section:
CODE

<DistributedMoney
id="ModuleTag_DistributedMoney"
Capacity="2000"
OnDieSpawnPercentage="25" />
<SupplyCenterCreate />
<SupplyCenterDockUpdate
id="SupplyCenter"
NumberApproachPositions="-1"
AllowsPassthrough="true"
GoToRallyPointAfterDock="true"
ShouldDockInReverse="true"
MinDockTime="9s"
ObjectsInLineWeight="9s"
DistributedDeposit="true">
<ForVoiceRetreatThisIsASafeHarborToObjectFilter
Include="HARVESTER" />
</SupplyCenterDockUpdate>

I tried to put FS_MONEY_STORAGE and SUPPLY_GATHERING_CENTER in the KindOf section of the Harvester, and copy and pasted the behavior section listed above in the refinery xml file into the behavior section of the Harvester but have had no success. I guess my question then becomes, how do I see the code behind the FS_MONEY_STORAGE and SUPPLY_GATHERING_CENTER elements or the behavior elements?