Staredit Network > Forums > Modding Assistance > Topic: Upgrades and Heroes
Upgrades and Heroes
Nov 29 2008, 8:05 am
By: Hercanic  

Nov 29 2008, 8:05 am Hercanic Post #1

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

When a unit is set as a Hero, all upgrades and spells it has are made available to the unit without research. Does this mean Hero units, if unchecked as a Hero, will benefit from those same upgrades when researched (so two or more unit IDs could gain from the same upgrade)? I'm guessing they might, since the Devouring One has the same weapon cooldown as a normal Zergling and refers to the same Iscript, yet attacks as fast as a Crackling when set as a Hero. Some may not, though, looking at the Ghost's base sight range (9) compared to the three Ghost heroes (Kerrigan 11, Duran 10, Stukov 11). =o\ And then there are the Energy upgrades, which judging by FireGraft's EXE edit, all Heroes pull their Energy info from one source, rather than each individual energy upgrade.

Using Heroes is good for a mod's player units, whereas keeping the real units for the AI is ideal. The micro AI will not use abilities on a Hero, so if you want the AI to use any abilities, you must use the normal units that had the abilities. If you want to give your AI some advantages over a human player, like faster build time, lower costs, etc, then keeping your AI and Player units seperate is a must. Yet, if you also want upgrades, it'd be important to know which ones, if any, work on their Hero counterpart, and which ones that do not.

As a quick side question, anyone know whether range and attack speed upgrades are attached to the Unit or Weapon ID? I'm guessing it's Unit-based, but who knows.




Nov 29 2008, 2:06 pm ForTheSwarm Post #2



Range and attack speed I think are weapon ID based. Range upgrades also affect the unit by increasing its target acquisition range.



None.

Nov 29 2008, 7:24 pm Hercanic Post #3

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

I ran some tests.

U-238 Shells (Marine Range)
- Noticed Jim Raynor's weapon was set to a range of 10, contrary to the Marine's range of 8. I set Jim's weapon to 8. In testing, both had the same range now, but after upgrading, the Marine had the superior range. Conclusion: Range upgrade does not affect Hero, or the upgrade is based on the Weapon ID. Will need to test by giving Jim the Marine's weapon.


Occular Implants (Ghost Sight)
- Tested with both Sarah and Duran. Set both their base sights to 5. After upgrading, Ghost's sight range expanded, but neither Sarah nor Duran's did.


Moebius Reactor (Ghost Energy)
- No effect on Sarah or Duran.


Leg Augmentation (Zealot Speed)
- This is the most worrisome test. Although Fenix (Zealot) uses the Zealot graphic in Units.dat, meaning he's using the same exact Iscript, and even though he's no longer set as a Hero, Fenix maintained his upgraded speed. My next test should set the Zealot as a Hero to see if he gains the speed upgrade by default or not. If not, then this may indicate that the Hero checkbox only affects energy, tech (due to reqs), and adds the white border, while all default Heroes are either preset with their advantage like with sight and weapon range, or hardcoded with attack and movement speed upgrades.




Nov 29 2008, 11:36 pm Fyrinite Post #4



Easiest answer is to see what the EXE Edits in FG that can edit stuff related to upgrade are. I'm almost 100% positive that it's UnitID's that they are tied to.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: Moose