Jump to content


Photo

Upgrade Not Working For Units Purchased After It


  • Please log in to reply
3 replies to this topic

#1 AdmiralGT

AdmiralGT

    title available

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

Posted 07 July 2004 - 01:32 PM

I've got a WeaponSet upgrade that keys off an upgrade. When the upgrade is purchased it gives the Upgraded WeaponSet to all existing units of that type, however, for any new unit of that type it has the Default WeaponSet. Since you cant purchase the Upgrade again they keep the Default WeaponSet. What am I doing wrong?

 WeaponSet
    Conditions = None 
    Weapon = PRIMARY FoxMarineCombatRifle
  End
  WeaponSet
    Conditions = PLAYER_UPGRADE
    Weapon = PRIMARY FoxMarineCombatRifle
    Weapon = SECONDARY FoxMarineCombatGrenade
  End

 Behavior = WeaponSetUpgrade ModuleTag_Grenade
    TriggeredBy = Upgrade_SigmaMarineGrenade
  End


#2 Slye_Fox

Slye_Fox

    ConRed Mod Leader

  • Hosted
  • 1,357 posts
  • Location:London, UK
  • Projects:Sigma Invasion, CnC: Condition Red, Armoured Sky: Ethereal Dawn
  •  The fluffy fox of Revora.

Posted 07 July 2004 - 02:49 PM

I notesed it did that as well.

#3 Mastermind

Mastermind

    Server Technician

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

Posted 07 July 2004 - 05:52 PM

My only suggestion would be to see if the Dragon tank from China gets the upgraded weapon after it is built, and see if that has anything different. I didn't notice any drastic differences when I skimmed the INI's, but I could have missed something. One idea would be to have your grenade upgrade trigger a commandset upgrade on the barracks, and have another copy of your marine unit, which gets the grenades by default, and have the barracks switch to a commandset which builds that marine instead.
:)
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 |

#4 AdmiralGT

AdmiralGT

    title available

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

Posted 07 July 2004 - 06:24 PM

Well, the good news is I fixed it, the bad news is that there was nothing wrong with it in the first place. This is how the weapons work

 WeaponSet
    Conditions = None 
    Weapon = PRIMARY FoxMarineCombatRifle
  End
  WeaponSet
    Conditions = PLAYER_UPGRADE
    Weapon = PRIMARY FoxMarineCombatRifle
    Weapon = SECONDARY FoxMarineCombatGrenade
    PreferredAgainst = PRIMARY INFANTRY
    PreferredAgainst = SECONDARY VEHICLE
    WeaponLockSharedAcrossSets = No
  End

Now, for infantry that has the upgrade purchased after its creation it works fine and it fires it rifle at infantry and the grenade at vehicles but for infantry created after the upgrade it just uses it's rifle at everything. Any ideas why?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users