Here's a crash course on how the math works for this:
The death of the extended (or regular) unit causes this address to increase by 1:
48*UnitID + 4*Player + 5808992
If the UnitID is somewhere between 1585 - 13478, you'll be editing unit data, so it's useful to calculate the range of unit indexes you can edit:
Low Bound Index = (161570 - 12*UnitID) / 84
High Bound Index = (161825 - 12*UnitID) / 84
How WraithShot works:
The range of indexes you can edit with unit#3900, found in the WraithShot SCV.scm map, is 1366.31 (the low bound index) through 1369.35 (the high bound index), meaning that you can add to all values in the unit table for units index's 1367 and 1368 - which is why the WraithShot map modifies a scv that is at index 1367.
This address - 0x0059CD0C - is the unitID (for index 0). Changing this changes many things, like the unit's weapon, it's ability to load units, and so fourth to the new ID; while leaving the original unit looks, movement speed, and so on as they were.
WraithShot changes 0x005B821C, which is the address for the UnitID for index 1367.
It uses unitID 3900 (which is an assimilator wall) and player 223 to do so.
^ Which if you plug those into the first equation you get the decimal number 5997084, covert this to hex and you get 0x005B821C: which, as stated, is the address of the unit ID for index 1367.
When the 'assimilator wall' dies, it adds 1 to the address 0x005B821C, changing the unitID from 7 to 8 (from scv, to wraith).
You can do this to any unit ID, and can change it by multiple ID's by killing multiple 'assimilator walls', each death will add 1 to the address.
As for usable extended units, I only found the following thus far: (considering these recent discoveries, we may want to search for more, especially in the 12000 to 13500 area so we don't have to use such unit high indexes to make these cool hybrids)
ID:227 (Vespene Tank Type 2)
ID:3851 (Cacoon Wall)
ID:3851 (Cacoon wall (can't be selected))
ID:3858 (Larva wall)
ID:3859 (Muta wall)
ID:3860 (Overlord wall)
ID:3861 (Queen wall)
ID:3863 (Zergling wall)
ID:3865 (Burning Infested CC wall)
ID:3872 (Lair wall)
ID:3876 (Defiler Mound wall)
ID:3878 (Overmind w/ Shell wall (normal overmind death animation))
ID:3885 (Arbiter wall)
ID:3886 (Archon wall)
ID:3887 (Carrier wall)
ID:3888 (Dragoon wall)
ID:3889 (Interceptor wall)
ID:3896 (Scarab wall)
ID:3898 (Observer wall)
ID:3900 (Assimilator wall)
ID:3902 (Observatory (burning) wall)
ID:3904 (Gateway (sprite-like, can be walked on, attacked/destroyed))
HF with the neo-EUD actions!
Post has been edited 2 time(s), last time on Aug 8 2012, 4:49 am by jjf28.
TheNitesWhoSay - Clan Aura -
githubReached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.