A_AlertMonsters takes z-coordinates into account

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Marziano872
Posts: 3
Joined: Thu Mar 24, 2022 2:01 pm

A_AlertMonsters takes z-coordinates into account

Post by Marziano872 »

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
User avatar
Matt
Posts: 9665
Joined: Sun Jan 04, 2004 5:37 pm
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: A_AlertMonsters takes z-coordinates into account

Post by Matt »

Does the maxrange variable in A_AlertMonsters already do this? I don't have a map on me with which to check.
Marziano872
Posts: 3
Joined: Thu Mar 24, 2022 2:01 pm

Re: A_AlertMonsters takes z-coordinates into account

Post by Marziano872 »

Matt wrote:Does the maxrange variable in A_AlertMonsters already do this? I don't have a map on me with which to check.
That's the problem; Maxrange accouts only for XY coordinates, the z axis is not considered.
Just look at the decorate function A_CheckRange that have a specific flag for this.
User avatar
Matt
Posts: 9665
Joined: Sun Jan 04, 2004 5:37 pm
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: A_AlertMonsters takes z-coordinates into account

Post by Matt »

This might be worth making a feature suggestion then...
User avatar
inkoalawetrust
Posts: 36
Joined: Mon Aug 26, 2019 9:18 pm
Discord: inkoalawetrust #9783
Github ID: inkoalawetrust
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: A_AlertMonsters takes z-coordinates into account

Post by inkoalawetrust »

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.

Return to “Feature Suggestions”