New flag: TARGETDEAD
Moderator: GZDoom Developers
- SpookLas
- Posts: 4
- Joined: Tue Aug 19, 2025 7:01 pm
- Preferred Pronouns: She/Her
- Graphics Processor: nVidia with Vulkan support
New flag: TARGETDEAD
The A_Chase function can be customized in almost any way you want, with only one major limitation. You can't make actors target dead ones. Being able to target dead actors would be incredibly useful for Archvile / necromancer style enemies. Not much else, but you get what I mean. It's incredibly difficult to make them follow dead actors without replaces the entire function.
Re: New flag: TARGETDEAD
This would require a rework of the AI systems to serve a purpose that would be better done with custom scripting anyhow. You can set monster goals or even use proxy actors to make your monsters move in the direction you want towards the corpses. The actor code is too bloated in its current state and it got that way over decades of additions and overrides-to-overrides-to-overrides-to-overrides to the point that additions should only ever be considered if there are no good alternatives.
- SpookLas
- Posts: 4
- Joined: Tue Aug 19, 2025 7:01 pm
- Preferred Pronouns: She/Her
- Graphics Processor: nVidia with Vulkan support
Re: New flag: TARGETDEAD
I ended up using the second solution, as I couldn't figure out goals.
Looking back, TargetDead fits an incredibly niche use case.
Still, it would be nice to not have to find messy solutions for something so seemingly simple.
Looking back, TargetDead fits an incredibly niche use case.
Still, it would be nice to not have to find messy solutions for something so seemingly simple.
Last edited by SpookLas on Mon Aug 25, 2025 3:06 pm, edited 1 time in total.
Re: New flag: TARGETDEAD
Over time we may refactor the actor code and make it more simplified, and things like this can be considered again.
If you are using ZScript, you can use a thing iterator and find the closest corpse to your enemy and just set the your_rezzing_enemy.goal to the corpse actor. As far as I know that should work.
If you are using ZScript, you can use a thing iterator and find the closest corpse to your enemy and just set the your_rezzing_enemy.goal to the corpse actor. As far as I know that should work.