Task #1239

Reorganize /cg_drawCrosshair CVARs

Added by keMoN 3 months ago. Updated 2 months ago.

Status:New% Done:

0%

Priority:LowSpent time:-
Assignee:-
Category:Mod CGAME
Target version:2.78
OS: Arch:

Description

I propose to rename cg_drawCrosshair and cg_drawCrosshairNames to cg_crosshair and cg_crosshairNames to match the remaining crosshair related cvars for consistency.
I do realize that this will break classic cfgs, but since we recommend to not use vanilla configs anyway.

Primarily, however, I propose to remove cg_drawCrosshairPickups and move that functionality to cg_cursorHints as this cvar is already intended to provide the player with additional information when aiming at stuff.

There are:
cg_crosshairAlpha
cg_crosshairAlphaAlt
cg_crosshairColor
cg_crosshairColorAltWhite
cg_crosshairHealth
cg_crosshairPulse
cg_crosshairSize
cg_crosshairX
cg_crosshairY

and

cg_drawCrosshair
cg_drawCrosshairInfo
cg_drawCrosshairNames
cg_drawCrosshairPickups

History

#1 Updated by Timothy 3 months ago

I’m not entirely sure this is a good idea. The three cvars you are talking about clearly toggle the rendering of certain information on-screen. The referred cvars do not, instead they alter the rendering (yet they do not switch anything on or off).

However I do feel we should increase the consistency for other cvars.

#2 Updated by keMoN 2 months ago

  • Description updated (diff)

Also remove cg_drawCrosshairNames and move functionality to a new bitflag 4 in cg_drawCrosshairInfo.

Should renaming still be done, we can also think of renaming cg_drawgun to cg_gun to match cg_gunX, cg_gunY and cg_gunZ, but renaming is not as important imo.

#3 Updated by keMoN 2 months ago

  • Description updated (diff)

Also available in: Atom PDF