[Crosshair] Health colours on targets

Moderator: GZDoom Developers

Post Reply
User avatar
Beed28
Posts: 598
Joined: Sun Feb 24, 2013 4:07 pm
Location: United Kingdom

[Crosshair] Health colours on targets

Post by Beed28 »

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?
User avatar
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

Post by Tapwave »

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?
This is doable via ACS rather simply, so it's likely that it'll be [No]'d.
User avatar
Arctangent
Posts: 1235
Joined: Thu Nov 06, 2014 1:53 pm
Contact:

Re: [Crosshair] Health colours on targets

Post by Arctangent »

Tapwave wrote:
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?
This is doable via ACS rather simply, so it's likely that it'll be [No]'d.
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.
User avatar
Ghastly
... in rememberance ...
Posts: 6109
Joined: Fri Jul 06, 2007 2:34 pm

Re: [Crosshair] Health colours on targets

Post by Ghastly »

Arctangent wrote:ACS has no way of detecting the maximum health of a non-player actor
GetActorProperty's APROP_SpawnHealth works for monsters, as well. I believe you're correct about the other things, though.
User avatar
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

Post by NeuralStunner »

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.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”