Jump to content


Photo

Upgrades


  • Please log in to reply
No replies to this topic

#1 Malonepwn

Malonepwn
  • New Members
  • 1 posts

Posted 22 February 2011 - 12:17 AM

Hello all,

I recently began modding C&C Generals: Zero Hour, and most of the stuff I wanted to do was straight forward. right now I'm just modding the Air Force faction to use Combat Controllers and TACP instead of ranges. I've got the units and the names changed fine, but now I want to make Dragon Skin for an upgrade. I've got what seems like everything done for it, but looking at all the codes, I don't see much of a link. I've modded the unit file(AirforceGeneral.ini), Upgrade.ini, CommandSet.ini, and CommandButton.ini. I can click the upgrade and have it build in-game, but I'm not sure if it's doing what I want it to... It's hard to tell if the unit are any stronger also...

After searching a couple threads, I saw talk about ProductionUpdate, which is apparently a behavior that is in the code for my units... I'm just a little skeptical.

So here is what I have:

AirforceGeneral.ini(Armor set)
ArmorSet
    Conditions      = None
    Armor           = HumanArmor
    DamageFX        = InfantryDamageFX
  End
  ArmorSet
    Conditions            = PLAYER_UPGRADE
    Armor                 = ChemSuitHumanArmor
    DamageFX              = None
  End
  ArmorSet
    Conditions                 = PLAYER_UPGRADE
    Armor                      = DragonSkinArmor
    DamageFX                   = InfantryDamageFX
  End

ProductionUpdate:
Behavior = ProductionUpdate ModuleTag_08
    ; nothing
  End

Upgrade.ini:
Upgrade Upgrade_AmericaDragonSkin
  DisplayName        = UPGRADE:DragonSkinArmor
  BuildTime          = 60.0
  BuildCost          = 1000
  ButtonImage        = SAChemsuit
  ResearchSound      = RangerVoiceUpgradeChemSuits
End

CommandSet.ini:
Barrack:
CommandSet AirF_AmericaBarracksCommandSet
  1 = Command_ConstructAmericaInfantryCCT
  2 = AirF_Command_ConstructAmericaInfantryMissileDefender
  3 = AirF_Command_ConstructAmericaInfantryColonelBurton
  4 = AirF_Command_ConstructAmericaInfantryPathfinder
  5 = AirF_Command_ConstrictAmericanInfantryTACP
  7 = Command_UpgradeAmericaRangerFlashBangGrenade 
  8 = Command_UpgradeAmericaRangerCaptureBuilding
  9 = Command_UpgradeAmericaDragonSkin
 13 = Command_SetRallyPoint
 14 = Command_Sell
End

And
Armor.ini:
Armor DragonSkinArmor
  Armor = CRUSH             200%    ;humans are easily crushed ["I'm crushing your head"]
  Armor = ARMOR_PIERCING    0%     ;humans don't get hit by tank rounds.  
  Armor = INFANTRY_MISSILE  10%
  Armor = FLAME             75%    ;humans don't like fire
  Armor = PARTICLE_BEAM     150%    ;humans don't fare well against orbital beams...
  Armor = SNIPER            75%
  Armor = LASER             40%     ;LASERs are anti-personel and anti-projectile only (for point defense laser)
  Armor = HAZARD_CLEANUP    0%      ;Not harmed by cleaning weapons
  Armor = KILL_PILOT        0%      ;Jarmen Kell uses against vehicles only.
  Armor = SURRENDER         100%    ;Capture type weapons are effective only against infantry.
  Armor = SUBDUAL_MISSILE   0%
  Armor = SUBDUAL_VEHICLE   0%
  Armor = SUBDUAL_BUILDING  0%
  Armor = SMALL_ARMS        40%
  Armor = GATLING           50%
End

CommandButton.ini
CommandButton Command_UpgradeAmericaDragonSkin
  Command       = PLAYER_UPGRADE
  Upgrade       = Upgrade_AmericaDragonSkin
  TextLabel     = CONTROLBAR:UpgradeAmericaDragonSkin
  ButtonImage   = SAChemsuit
  ButtonBorderType        = UPGRADE ; Identifier for the User as to what kind of button this is
  DescriptLabel           = CONTROLBAR:TooltipUSAUpgradeDragonSkin
End

So, if there's something wrong or missing, let me know. I really want this to happen. Haha!

Thanks. :p

Edited by Malonepwn, 22 February 2011 - 12:22 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users