poiuyqwert / PyMS

Broodwar Modding Suite
48 stars 19 forks source link

PyDAT: Add unit force value #81

Closed poiuyqwert closed 6 years ago

poiuyqwert commented 7 years ago
Force = (sqrt((range / cooldown) * factor * damage + (((factor * damage * 2048) / cooldown) * (hp + shields)) / 256) * 7.58) * unit_specific_reduction
Unit specific reductions:
- Workers get 25% of default
- Interceptors, scarabs, mines 0%
- Firebats, mutalisks, zealots 200%
- Defilers, inf. terrans 1/16
- Reavers 10%
(100% for all other units)
Factors are weapon factors from weapons.dat
All divisions and the 7.58 multiplication are rounded down to integers, square root is not rounded down.