Staredit Network > Forums > Modding Assistance > Topic: GPTP: Detect if attack is melee/ranged
GPTP: Detect if attack is melee/ranged
Feb 29 2024, 4:36 pm
By: Netbek  

Feb 29 2024, 4:36 pm Netbek Post #1



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.)




Mar 3 2024, 3:51 pm UndeadStar Post #2



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.




Mar 4 2024, 7:42 am IlyaSnopchenko Post #3

The Curious

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.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[08:52 pm]
Ultraviolet -- lmao try holding your breath, it might go a little faster
[02:59 pm]
Dem0n -- good thing they've gotten cheaper
[2025-2-14. : 6:55 pm]
Ultraviolet -- that was the problem this last cycle after all
[2025-2-14. : 6:55 pm]
Ultraviolet -- :lol:
[2025-2-14. : 1:12 pm]
NudeRaider -- no! too expensive :sadwalk:
[2025-2-14. : 10:52 am]
Heinermann -- egg
[2025-2-14. : 3:05 am]
NudeRaider -- I will!
[2025-2-13. : 6:27 pm]
dumbducky -- Thank you come again
[2025-2-11. : 2:34 pm]
Ultraviolet -- :wob:
[2025-2-10. : 7:43 am]
NudeRaider -- true
Please log in to shout.


Members Online: MetalGear