I have a question about upgrading weapons, thought I'd see if any of you guys knew the answer.
When you research a cooldown/range upgrade (like say, U-238 Shells for the Marine) does it upgrade the range for the Weapon (Gauss Rifle) or for the unit ID (Terran Marine)?
Thanks.
I don't know for sure, but I think it would have to do both, the target aquisition range on the Marine and the actual weapon range on the Gauss rifle. Am I wrong?
I'm guessing it's the weapon since that's what it's supposed to upgrade, but that's my opinion not fact.
I think somewhere it says what upgrade it uses, I'll poke around a bit and come back.
ADDITION:
In ArsenalIII (Too lazy to dig up DatEdit from my folders right now), go to Weapons Editor, find your weapon, and it says "Upgrade:" That might be it?
That's only for damage, not for range/cooldown upgrades.
Would Unit-Specific upgrades be hardcoded?
Yup, the upgrades are hardcoded. They should however also have some checks incorporated, ones that checks for the unit/weapon's ID or something.
I tested other kinds of upgrades (speed, sight range, etc.) and they were all hardcoded to the unit. I'll assume that cooldown/range are the same.
The upgrades for weapon range are done based off the Weapon ID. What happens is, when the game goes to read the property from the .dat file, it checkes if the upgrade is researched, the changes what is read based on if it is researched or not.
Oh... this makes it a lot easier. Thanks.