Jump to content


Photo

help: commanches/horde bonus


  • Please log in to reply
7 replies to this topic

#1 Technocracy

Technocracy
  • New Members
  • 3 posts

Posted 30 August 2004 - 02:28 AM

can someone show me how to add horde bonus to commanches, and make it a generals special unit, but make it a bit more expensive? i've just started modding, and i need a bit of help with this

#2 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 30 August 2004 - 09:28 AM

1. Adding a Horde Bonus

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.

Firstly, add

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

to

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.


#3 Technocracy

Technocracy
  • New Members
  • 3 posts

Posted 31 August 2004 - 03:48 AM

much thanks :)

#4 the_kid

the_kid

    L337 Pwnerer of N00bs

  • Project Team
  • 1,734 posts
  • Location:La$ Vega$, NV
  • Projects:freelancing between what interests me
  •  + TRIPLEhelix

Posted 31 August 2004 - 04:26 AM

not a bad tutorial... perhaps you should bulk it up a bit more with some tutorialish lingo (as in In this tutorial we will be adding the horde bonus to the commanche, you can do it with whichever after that.) and submit it to some sites, I know gendev is always looking for new tutorials, and C&C Central barely has any...

#5 Technocracy

Technocracy
  • New Members
  • 3 posts

Posted 31 August 2004 - 07:59 AM

hmmm. how could i add the nationalism/fanaticism upgrade for the commanche?
and Kid, do you have an IRC client?

#6 Hostile

Hostile

    Benefitting Humanity Simply by Showing Up!

  • Veterans
  • 9,551 posts
  • Location:Washington DC
  •  T3A Founder
  • Division:Revora
  • Job:Global Administrator
  • Donated
  • Association

Posted 31 August 2004 - 10:24 AM

Behavior = PropagandaTowerBehavior ModuleTag_06
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
End

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.

#7 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 31 August 2004 - 05:43 PM

In regards to the_kid, I may decide to buff it up with some tutorial lingo but I'm a bit busy. If anyone wants to add something to it and submit it feel free. I post stuff here to help people, the more people that can benefit from it the better.

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.

#8 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 31 August 2004 - 06:40 PM

I prefer just to pull a random word out of my mind and use that. You can use anything you want for the ModuleTag_ so it doesn't much matter.
:)
Posted Image

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.

Too cute! | Server Status: If you can read this, it's up |




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users