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.
[06:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[03:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[01:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[2024-4-26. : 6:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
Please log in to shout.


Members Online: Roy