help: commanches/horde bonus
Posted 30 August 2004 - 02:28 AM
Posted 30 August 2004 - 09:28 AM
For the Horde Bonus you'll need to add this code to the Comanche.
Behavior = HordeUpdate ModuleTag_06 RubOffRadius = 60 ; if I am this close to a real hordesman, I will get to be an honorary hordesman UpdateRate = 1000 ; how often to recheck horde status (msec) Radius = 100 ; how close other units must be to us to count towards our horde-ness (~100 feet or so) KindOf = AIRCRAFT ; what KindOf's must match to count towards horde-ness AlliesOnly = Yes ; do we only count allies towards horde status? ExactMatch = Yes ; do we only count units of our exact same type towards horde status? (overrides kindof) Count = 5 ; how many units must be within Radius to grant us horde-ness Action = HORDE ; when horde-ing, grant us the HORDE bonus End
You might need to tweak the Radii since I used the Red Guard Horde Bonus and Comanche's are a lot bigger than Infantry.
2. How to make it a Generals Special Unit.
SCIENCE = Science_Comanche
To the Prerequisites of the Comanche. It should already have Object = AmericaAirField there so just add my science line underneath.
Then, in Science.ini add
Science SCIENCE_Comanche PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank1 SciencePurchasePointCost = 1 IsGrantable = Yes DisplayName = SCIENCE:USAComanche Description = CONTROLBAR:ToolTipUSAScienceComanche End
Bear in mind the last 2 lines will mean you need to create new CSF strings in the generals.csf
You then also need to add in CommandButton.ini
CommandButton Command_PurchaseScienceStealthFighter Command = PURCHASE_SCIENCE Science = SCIENCE_Comanche Object = AmericaVehicleComanche ButtonImage = SACComanche ButtonBorderType = UPGRADE; Identifier for the User as to what kind of button this is End
And Lastly you need to change the Science CommandSet in CommandSet.ini from
CommandSet SCIENCE_AMERICA_CommandSetRank1 1 = Command_PurchaseSciencePaladinTank 2 = Command_PurchaseScienceStealthFighter 3 = Command_PurchaseScienceSpyDrone END
CommandSet SCIENCE_AMERICA_CommandSetRank1 1 = Command_PurchaseSciencePaladinTank 2 = Command_PurchaseScienceStealthFighter 3 = Command_PurchaseScienceSpyDrone 4 = Command_PurchaseScienceComanche END
And then you should be ready to go, apart from the Missing CSF Strings.
3. Making it more expensive
Find the line in the Comanche's code that reads
BuildCost = 1500
And change that number to what you want it to cost.
Edited by AdmiralGT, 30 August 2004 - 09:29 AM.
Posted 31 August 2004 - 04:26 AM
Posted 31 August 2004 - 07:59 AM
and Kid, do you have an IRC client?
Posted 31 August 2004 - 10:24 AM
Radius = 150.0
DelayBetweenUpdates = 2000 ; in milliseconds
HealPercentEachSecond = 2% ; get this % of max health every second
PulseFX = FX_PropagandaTowerPropagandaPulse ;plays as often as DelayBetweenUpdates
UpgradeRequired = Upgrade_ChinaSubliminalMessaging
UpgradedHealPercentEachSecond = 4% ; get this % of max health every second
UpgradedPulseFX = FX_PropagandaTowerSubliminalPulse ;plays as often as DelayBetweenUpdates
Just add this, but make sure it has a unique ModuleTag_XX I found that even though you may not use the upgrade, i could never get it to work without the upgrade code being present.
Posted 31 August 2004 - 05:43 PM
In regard to the ModuleTag_XX. Generals has this in my opinion annoying habit of labeling every ModuleTag with numbers. This can often lead to multiple uses of the same Tag. Personally I like to copy the Behaviour to be the ModuleTag_. In this case you would have
Behavior = PropagandaTowerBehavior ModuleTag_PropagandaTowerBehavior
I know it makes the line that much bit longer but you can always be sure you're never screwing up duplicating ModuleTag numbers.
Posted 31 August 2004 - 06:40 PM
Too cute! | Server Status: If you can read this, it's up |
Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users