Hey guys, I was just wondering what is the max amount of DMG a unit can deal? Like the exact number?
Thanks.
None.
It appears to 4095, and then units with two attacks do 8190 (twice the original).
Hmm,
I seem to recall being able to set 9999 as the max damage in the editor?
Max damage is almost certainly 65535. I can personally vouch that the upgrade damage is capped at 65535. As you increase upgrades, if you increase past this level it will cause a buffer overflow or at least loop back around.
So the max damage any attack could do is 131070.
Also damage is not stored in the same way as HP. Damage is an integer. HP has a hidden byte for regeneration and half damage due to armor.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
Well, I put like 999999 in scmdraft and it came out as 4095 in-game, so I don't know.
Then again, when I came back to look at it, it was then like -734985, so maybe it overflowed and gave an improper max attack.
Knowing that damage is capped by MaxHP which is a signed int of 32 bits.
In memory it would be 7FFFFFFF, in decimal 2147483647.
In game you have to divide by 256 to get 7FFFFF, in decimal 8388607.
Logically, it would be that.
Now some types of damages may be limited to signed/unsigned 16 bits values, in which case the max would be 32767/65535.
can you assign -1 damage?
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
I think it's unsigned, but don't quote me on that.
TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB -
topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig -
topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!
https://code.google.com/p/gptp/wiki/DataValues#weapons.datit's "16", but it doesn't have u beside it? I assume this means it's signed, so max is 15 bits, which would be 32767.
I can guarantee that the max bonus amount is capped at 65535.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"