In GPTP, is there an inbuilt property I can use to check if an attack is melee/ranged? Or is the only way to do this to reference the range of an attack?
(I am modifying weapon_damage.cpp from GPTP-for-VS2019.)
You need to check the range.
I mean some melee weapons have a range of 10, but then do the flamethrower count considering its 32 range?
Also, I don't remember if there's one unit like that, but if there's a melee attack with AOE, should it count?
Because of those small cases, checking the range (and possibly the splash radius) is the logical option.
edit: just realized the nuke got a range of 3, all is in the splash radius, yep it's tricky.
Weapons.dat weapon behaviour?
I mean, that's how I would do in SCR/AICE, but idk if GPTP can do it this way.
Trial and error... mostly error.