Add gamepad options sensitivity also have a 1-10 preset choice

pull/3/head
Jan 2021-09-04 11:16:35 +02:00
parent 9264749a50
commit 129d296715
2 changed files with 38 additions and 3 deletions

View File

@ -1009,4 +1009,22 @@ LANG_ENGLISH "Turn slowdown aim assist on/off. Slowdown reduces the stick
REFERENCE MPUI_DESC_LOCKON_ENABLED REFERENCE MPUI_DESC_LOCKON_ENABLED
LANG_ENGLISH "Turn lockon aim assist on/off. Lockon helps with keeping your crosshair on targets when moving. Servers can turn off aim assist with sv_allowAimAssist regardless of this setting." LANG_ENGLISH "Turn lockon aim assist on/off. Lockon helps with keeping your crosshair on targets when moving. Servers can turn off aim assist with sv_allowAimAssist regardless of this setting."
REFERENCE MENU_LOOK_SENSITIVITY_PRESET
LANG_ENGLISH "Sensitivity Preset"
REFERENCE MENU_SENSITIVITY_LOW_CAPS
LANG_ENGLISH "(Low) 1"
REFERENCE MENU_SENSITIVITY_MEDIUM_CAPS
LANG_ENGLISH "(Medium) 2"
REFERENCE MENU_SENSITIVITY_HIGH_CAPS
LANG_ENGLISH "(High) 4"
REFERENCE MENU_SENSITIVITY_VERY_HIGH_CAPS
LANG_ENGLISH "(Very High) 7"
REFERENCE MENU_SENSITIVITY_INSANE_CAPS
LANG_ENGLISH "(Insane) 10"
ENDMARKER ENDMARKER

View File

@ -8,6 +8,17 @@
#undef CHOICE_GROUP #undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME #define CHOICE_GROUP MENU_NAME
#define SENSITIVITY_1 0.6 // (Low)
#define SENSITIVITY_2 1 // (Medium)
#define SENSITIVITY_3 1.4
#define SENSITIVITY_4 1.8 // (High)
#define SENSITIVITY_5 2.0
#define SENSITIVITY_6 2.2
#define SENSITIVITY_7 2.6 // (Very High)
#define SENSITIVITY_8 3.0
#define SENSITIVITY_9 3.5
#define SENSITIVITY_10 4.0 // (Insane)
#define CLOSE_MENUS \ #define CLOSE_MENUS \
close "controls_multi"; \ close "controls_multi"; \
close "main_controls"; \ close "main_controls"; \
@ -96,7 +107,13 @@ menuDef
PC_OPTIONS_DVARYESNO_RAW(1, "@MENU_LOOK_INVERSION", "input_invertPitch", ;, "@MPUI_DESC_LOOK_INVERSION", ON_GPAD_DISABLED, ON_GPAD_ENABLED) PC_OPTIONS_DVARYESNO_RAW(1, "@MENU_LOOK_INVERSION", "input_invertPitch", ;, "@MPUI_DESC_LOOK_INVERSION", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_STRLIST_RAW(2, "@MENU_THUMBSTICK_LAYOUT", "gpad_sticksConfig", {"@MENU_DEFAULT"; "thumbstick_default"; "@MENU_SOUTHPAW"; "thumbstick_southpaw"; "@MENU_LEGACY"; "thumbstick_legacy"; "@MENU_LEGACY_SOUTHPAW"; "thumbstick_legacysouthpaw"}, execNow "bindgpsticksconfigs";, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED) PC_OPTIONS_STRLIST_RAW(2, "@MENU_THUMBSTICK_LAYOUT", "gpad_sticksConfig", {"@MENU_DEFAULT"; "thumbstick_default"; "@MENU_SOUTHPAW"; "thumbstick_southpaw"; "@MENU_LEGACY"; "thumbstick_legacy"; "@MENU_LEGACY_SOUTHPAW"; "thumbstick_legacysouthpaw"}, execNow "bindgpsticksconfigs";, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_STRLIST_RAW(3, "@MENU_BUTTON_LAYOUT", "gpad_buttonConfig", {"@MENU_DEFAULT"; "buttons_default"; "@MENU_TACTICAL"; "buttons_tactical"; "@MENU_LEFTY"; "buttons_lefty"; "@MENU_NOMAD"; "buttons_nomad"}, execNow "bindgpbuttonsconfigs";, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED) PC_OPTIONS_STRLIST_RAW(3, "@MENU_BUTTON_LAYOUT", "gpad_buttonConfig", {"@MENU_DEFAULT"; "buttons_default"; "@MENU_TACTICAL"; "buttons_tactical"; "@MENU_LEFTY"; "buttons_lefty"; "@MENU_NOMAD"; "buttons_nomad"}, execNow "bindgpbuttonsconfigs";, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_DVARSLIDER_RAW(4, "@MENU_LOOK_SENSITIVITY", "input_viewSensitivity", 0.5, 3, 0.8, ;, ;, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED, ON_GPAD_ENABLED) PC_OPTIONS_DVARYESNO_RAW(4, "@MENU_SLOWDOWN_ENABLED", "gpad_slowdown_enabled", ;, "@MPUI_DESC_SLOWDOWN_ENABLED", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_DVARYESNO_RAW(5, "@MENU_SLOWDOWN_ENABLED", "gpad_slowdown_enabled", ;, "@MPUI_DESC_SLOWDOWN_ENABLED", ON_GPAD_DISABLED, ON_GPAD_ENABLED) PC_OPTIONS_DVARYESNO_RAW(5, "@MENU_LOCKON_ENABLED", "gpad_lockon_enabled", ;, "@MPUI_DESC_LOCKON_ENABLED", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
PC_OPTIONS_DVARYESNO_RAW(6, "@MENU_LOCKON_ENABLED", "gpad_lockon_enabled", ;, "@MPUI_DESC_LOCKON_ENABLED", ON_GPAD_DISABLED, ON_GPAD_ENABLED) PC_OPTIONS_SEPERATOR(5)
PC_OPTIONS_DVARSLIDER_RAW(6, "@MENU_LOOK_SENSITIVITY", "input_viewSensitivity", 0.5, 4, 1.0, ;, ;, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED, ON_GPAD_ENABLED)
PC_OPTIONS_FLOATLIST_RAW(7, "@MENU_LOOK_SENSITIVITY_PRESET", "input_viewSensitivity",
{"@MENU_SENSITIVITY_LOW_CAPS" SENSITIVITY_1 "@MENU_SENSITIVITY_MEDIUM_CAPS" SENSITIVITY_2 "3" SENSITIVITY_3
"@MENU_SENSITIVITY_HIGH_CAPS" SENSITIVITY_4 "5" SENSITIVITY_5 "6" SENSITIVITY_6
"@MENU_SENSITIVITY_VERY_HIGH_CAPS" SENSITIVITY_7 "8" SENSITIVITY_8 "9" SENSITIVITY_9 "@MENU_SENSITIVITY_INSANE_CAPS" SENSITIVITY_10},
;, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED)
} }