- fixed crosshair scaling in Exhumed & the other games.

The problem was that the CVARs operating the scale were different between Exhumed and the other titles, meaning that "crosshairscale" worked in one, but not the others. They have now been split.
Also lowered the default crosshair size as it was too much for Exhumed.
Fixes #180.
This commit is contained in:
sinisterseed 2020-11-13 18:32:14 +02:00
parent 913239ee5d
commit 34dfb6c5fc
2 changed files with 8 additions and 3 deletions

View file

@ -57,7 +57,7 @@ IMPLEMENT_CLASS(DHUDFont, false, false);
CVAR(Color, crosshaircolor, 0xff0000, CVAR_ARCHIVE); CVAR(Color, crosshaircolor, 0xff0000, CVAR_ARCHIVE);
CVAR(Int, crosshairhealth, 2, CVAR_ARCHIVE); CVAR(Int, crosshairhealth, 2, CVAR_ARCHIVE);
CVARD(Float, crosshairscale, 0.5, CVAR_ARCHIVE, "changes the size of the crosshair"); CVARD(Float, crosshairscale, 0.3, CVAR_ARCHIVE, "changes the size of the crosshair");
CVAR(Bool, crosshairgrow, false, CVAR_ARCHIVE); CVAR(Bool, crosshairgrow, false, CVAR_ARCHIVE);
EXTERN_CVAR(Bool, vid_fps) EXTERN_CVAR(Bool, vid_fps)

View file

@ -159,7 +159,7 @@ LISTMENU "EpisodeMenu"
captionItem "$MNU_SELECTEPISODE" captionItem "$MNU_SELECTEPISODE"
animatedtransition animatedtransition
} }
ifgame(blood) ifgame(Blood)
{ {
position 160, 45 position 160, 45
Linespacing 20 Linespacing 20
@ -1162,10 +1162,15 @@ OptionMenu "HUDOptions" protected
{ {
StaticText "" StaticText ""
Option "$DSPLYMNU_CLIPAMT", "cl_showmagamt", OnOff Option "$DSPLYMNU_CLIPAMT", "cl_showmagamt", OnOff
Slider "$DSPLYMNU_CROSSHAIRSCALE", "cl_crosshairscale", 50, 100, 10, 1
}
ifgame(Exhumed)
{
Slider "$DSPLYMNU_CROSSHAIRSCALE", "crosshairscale", 0.3, 1.0, 0.125, 2
} }
StaticText "" StaticText ""
Option "$DSPLYMNU_CROSSHAIR", "cl_crosshair", OnOff Option "$DSPLYMNU_CROSSHAIR", "cl_crosshair", OnOff
Slider "$DSPLYMNU_CROSSHAIRSCALE", "crosshairscale", 0.25, 1.0, 0.125, 2
Option "$HUDMNU_CROSSHAIR", "crosshair", "Crosshairs" Option "$HUDMNU_CROSSHAIR", "crosshair", "Crosshairs"
//ColorPicker "$HUDMNU_CROSSHAIRCOLOR", "crosshaircolor" fixme: Does not exist yet in Raze. //ColorPicker "$HUDMNU_CROSSHAIRCOLOR", "crosshaircolor" fixme: Does not exist yet in Raze.
Option "$HUDMNU_CROSSHAIRHEALTH", "crosshairhealth", "CrosshairHealthTypes" Option "$HUDMNU_CROSSHAIRHEALTH", "crosshairhealth", "CrosshairHealthTypes"