[Crosshair] Health colours on targets
Moderator: GZDoom Developers
[Crosshair] Health colours on targets
Something I would like to see is the crosshair changing colours based on a target's health when pointed at like in the Serious Sam games, instead of your own health. When pointing at nothing shootable, it simply appears white. Would this be acceptable?
- Tapwave
- Posts: 2096
- Joined: Sat Aug 20, 2011 8:54 am
- Preferred Pronouns: No Preference
- Graphics Processor: nVidia with Vulkan support
Re: [Crosshair] Health colours on targets
This is doable via ACS rather simply, so it's likely that it'll be [No]'d.Beed28 wrote:Something I would like to see is the crosshair changing colours based on a target's health when pointed at like in the Serious Sam games, instead of your own health. When pointing at nothing shootable, it simply appears white. Would this be acceptable?
- Arctangent
- Posts: 1235
- Joined: Thu Nov 06, 2014 1:53 pm
- Contact:
Re: [Crosshair] Health colours on targets
Except ... there's no innate ACS crosshair manipulation function, the only Decorate function you could try to tap into doesn't have color control, and ACS has no way of detecting the maximum health of a non-player actor, presumably because non-player actors don't have that concept. You could still do it with a mix of ACS and Decorate, but it's by no mean simple - especially if you want it to work in addition to the user's crosshair settings - nor compatible with mods, unless it's designed for a specific mod, in which case it's only compatible with that mod and not the base game.Tapwave wrote:This is doable via ACS rather simply, so it's likely that it'll be [No]'d.Beed28 wrote:Something I would like to see is the crosshair changing colours based on a target's health when pointed at like in the Serious Sam games, instead of your own health. When pointing at nothing shootable, it simply appears white. Would this be acceptable?
Re: [Crosshair] Health colours on targets
GetActorProperty's APROP_SpawnHealth works for monsters, as well. I believe you're correct about the other things, though.Arctangent wrote:ACS has no way of detecting the maximum health of a non-player actor
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: [Crosshair] Health colours on targets
Since this would be exclusive from CrosshairHealth, perhaps that variable should be changed into a "mode" option. 0 = Off, 1 = Player health, 2 = Target health.