Make mirrored weapons a cvar option

This commit is contained in:
Simon committed 2019-09-12 21:46:01 +01:00
1 parent 45bebdbd1a
commit 79622b4a77
3 files changed
+3 -1

No files matched your search

@@ -1325,6 +1325,7 @@ void VR_Init()
vr_enable_crouching = Cvar_Get( "vr_enable_crouching", "1", CVAR_ARCHIVE, "Crouching irl triggers ducking in game" );
vr_height_adjust = Cvar_Get( "vr_height_adjust", "0.0", CVAR_ARCHIVE, "Additional height adjustment for in-game player (in metres)" );
vr_flashlight_model = Cvar_Get( "vr_flashlight_model", "1", CVAR_ARCHIVE, "Set to 0 to prevent drawing the flashlight model" );
vr_mirror_weapons = Cvar_Get( "vr_mirror_weapons", "0", CVAR_ARCHIVE, "Set to 1 to mirror the weapon models (for left handed use)" );
//Not to be changed by users, as it will be overwritten anyway
vr_stereo_side = Cvar_Get( "vr_stereo_side", "0", CVAR_READ_ONLY, "Eye being drawn" );
@@ -15,6 +15,7 @@ convar_t *vr_control_scheme;
convar_t *vr_enable_crouching;
convar_t *vr_height_adjust;
convar_t *vr_flashlight_model;
convar_t *vr_mirror_weapons;
//Used and updated continuously during rendering
convar_t *vr_stereo_side;