Hello,
I propose to add a flag for A_AlertMonsters decorate function to make it consider the z coordinates in the calculation for activation range.
It could be something like A_CheckRange.
This is much needed for maps with variable heights and stealths gameplays.
I have for example problems in multistores buildings or acting near high buildings or structures where monsters on top are activated despite considerable 3d distance.
If a practical solution is already present, please let me know.
thanks
A_AlertMonsters takes z-coordinates into account
Moderator: GZDoom Developers
-
- Posts: 3
- Joined: Thu Mar 24, 2022 2:01 pm
-
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Re: A_AlertMonsters takes z-coordinates into account
Does the maxrange variable in A_AlertMonsters already do this? I don't have a map on me with which to check.
-
- Posts: 3
- Joined: Thu Mar 24, 2022 2:01 pm
Re: A_AlertMonsters takes z-coordinates into account
That's the problem; Maxrange accouts only for XY coordinates, the z axis is not considered.Matt wrote:Does the maxrange variable in A_AlertMonsters already do this? I don't have a map on me with which to check.
Just look at the decorate function A_CheckRange that have a specific flag for this.
-
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Re: A_AlertMonsters takes z-coordinates into account
This might be worth making a feature suggestion then...
-
- Posts: 75
- Joined: Mon Aug 26, 2019 9:18 pm
- Graphics Processor: nVidia with Vulkan support
Re: A_AlertMonsters takes z-coordinates into account
This would probably not be easily doable. Looking into how the function works. It's directly tied to how monsters "hear" the sounds of player weapons. So it would probably require an overhaul of monster hearing. Since monster hearing hasn'\t really been touched much in GZDoom. Meaning that it's still effectively all 2D AFAICT.