0000105: A_SetCrosshairColor

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

Moderators: Developers, ZDoom.org Team

A_SetCrosshairColor

Postby Lud » Sat Oct 29, 2016 6:44 pm

This should help modders who want to match the crosshair color to the weapon color theme.
Example: D4D's BFG is green. The crosshair would match well if it was green, too. Being able to set the color directly through DECORATE/ACS would be a nice feature to have.

The only issue I stumbled across when I thought of the idea was: "What if somebody wanted to force a specific color?"
I reckon the answer to that would be a Force Crosshair Color on/off switch in the HUD menu.

Is something like this doable?
User avatar
Lud
Pirates of the Somallean
 
Joined: 11 Feb 2016
Location: Somalia

Re: A_SetCrosshairColor

Postby NeuralStunner » Mon Oct 31, 2016 11:14 am

Sounds reasonable (and useful, of course) to me!

What comes to mind most readily:
  • Make the crosshairs for your mod match the scheme of your HUD.
  • Through proper application of linetarget checking, you could change the color based on what you're aiming at. (Allies, enemies, objects of interest, etc.)
  • If you felt like giving your mod insane levels of customizability, you could also set up custom cvars for UT2-style per-weapon crosshair selection.
User avatar
NeuralStunner
There's something on your face!
 
Joined: 21 Jul 2009
Location: traveling around inside a hug

Re: A_SetCrosshairColor

Postby Shadow Hog » Wed Nov 02, 2016 1:58 am

How would this play with the "crosshair reflects player health" option, out of curiosity? Which gets priority?
Shadow Hog
 
Joined: 14 Aug 2015

Re: A_SetCrosshairColor

Postby Lud » Wed Nov 02, 2016 4:48 am

Crosshair reflects player health, of course.
User avatar
Lud
Pirates of the Somallean
 
Joined: 11 Feb 2016
Location: Somalia

Re: A_SetCrosshairColor

Postby Lud » Tue Dec 20, 2016 6:15 pm

Is/will this (be) possible with ZScript?
User avatar
Lud
Pirates of the Somallean
 
Joined: 11 Feb 2016
Location: Somalia

0000105: A_SetCrosshairColor

Postby Lud » Sun Apr 30, 2017 2:36 pm

https://mantis.zdoom.org/view.php?id=105
Code: Select allExpand view
Summary   0000105: A_SetCrosshairColor
Description   This is in the Feature Suggestions forum, but since we've moved on to Mantis, I'll also suggest it here. Feel free to close the thread there: https://forum.zdoom.org/viewtopic.php?f=15&t=54005

Crosspost from thread:

"This should help modders who want to match the crosshair color to the weapon color theme.
Example: D4D's BFG is green. The crosshair would match well if it was green, too. Being able to set the color directly through DECORATE/ACS would be a nice feature to have."
User avatar
Lud
Pirates of the Somallean
 
Joined: 11 Feb 2016
Location: Somalia

Re: 0000105: A_SetCrosshairColor

Postby Major Cooke » Sun Jul 16, 2017 3:37 pm

DrawImage just needs to have its color settings exposed, or another function made I think...
User avatar
Major Cooke
Slow yet powerful ZScript modder.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: 0000105: A_SetCrosshairColor

Postby lunaticpandora » Sun Jul 16, 2017 6:15 pm

Major Cooke wrote:DrawImage just needs to have its color settings exposed, or another function made I think...


I second this, the latter sounds more plausible since there can be more room for flexibility in color(s). I had (and still have) some issues in my own situation when it comes to tinkering around with the colors for DrawImage..
User avatar
lunaticpandora
Enemy down!
 
Joined: 30 Nov 2016
Location: Everett, WA
Discord: Nazakomu#3025

Re: 0000105: A_SetCrosshairColor

Postby Major Cooke » Sun Jul 16, 2017 10:52 pm

Doesn't look like it'll be too difficult to work with so I'll try coming up with something.
User avatar
Major Cooke
Slow yet powerful ZScript modder.
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: 0000105: A_SetCrosshairColor

Postby lunaticpandora » Mon Jul 17, 2017 7:58 am

Major Cooke wrote:Doesn't look like it'll be too difficult to work with


Yeah, you could create something similar to how A_OverlayFlags (and et al.) pairs with A_Overlay.

So the new function can be a color setup of some sort for DrawImage that is separated like the above.

Good luck on the endeavor — I will enjoy this for sure. :mrgreen:
User avatar
lunaticpandora
Enemy down!
 
Joined: 30 Nov 2016
Location: Everett, WA
Discord: Nazakomu#3025


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests