mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 03:41:15 +00:00
CLIENT: Add menu option for toggling rumble
This commit is contained in:
parent
2cacad2c2f
commit
9f822f034e
1 changed files with 16 additions and 0 deletions
|
@ -793,6 +793,12 @@ void() settings_adsmode =
|
||||||
localcmd("bind MOUSE2 \"+button8\"\n");
|
localcmd("bind MOUSE2 \"+button8\"\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void() settings_rumble =
|
||||||
|
{
|
||||||
|
float rumble = cvar("in_rumbleenabled");
|
||||||
|
cvar_set("in_rumbleenabled", ftos(!rumble));
|
||||||
|
}
|
||||||
|
|
||||||
void() setting_mastervol =
|
void() setting_mastervol =
|
||||||
{
|
{
|
||||||
float vol = cvar("volume");
|
float vol = cvar("volume");
|
||||||
|
@ -1005,6 +1011,7 @@ var struct
|
||||||
// Control Settings (cont.)
|
// Control Settings (cont.)
|
||||||
{[6, 115], "Invert Mouse", -1, setting_invert, null, MENU_CONSETTINGS, 0, OPTION_WEB_AND_EXE}, // 66
|
{[6, 115], "Invert Mouse", -1, setting_invert, null, MENU_CONSETTINGS, 0, OPTION_WEB_AND_EXE}, // 66
|
||||||
{[6, 135], "Controller Glyphs", -1, setting_glyph, null, MENU_CONSETTINGS, 0, OPTION_WEB_AND_EXE}, // 67
|
{[6, 135], "Controller Glyphs", -1, setting_glyph, null, MENU_CONSETTINGS, 0, OPTION_WEB_AND_EXE}, // 67
|
||||||
|
{[6, 155], "Rumble", -1, settings_rumble, null, MENU_CONSETTINGS, 0, OPTION_WEB_AND_EXE}, // 68
|
||||||
|
|
||||||
// Main menu (cont.)
|
// Main menu (cont.)
|
||||||
{[6, 145], "Achievements (Not on Web)", -1, null, null, MENU_MAIN, 1, OPTION_WEB_ONLY}, // 3
|
{[6, 145], "Achievements (Not on Web)", -1, null, null, MENU_MAIN, 1, OPTION_WEB_ONLY}, // 3
|
||||||
|
@ -1495,6 +1502,12 @@ void() Draw_Extra_CSettings =
|
||||||
else
|
else
|
||||||
drawstring([320, 115], S_ENABLED, [14, 14], [1, 1, 1], 1, 0);
|
drawstring([320, 115], S_ENABLED, [14, 14], [1, 1, 1], 1, 0);
|
||||||
|
|
||||||
|
// Rumble
|
||||||
|
if (cvar("in_rumbleenabled") == 0)
|
||||||
|
drawstring([320, 155], S_DISABLED, [14, 14], [1, 1, 1], 1, 0);
|
||||||
|
else
|
||||||
|
drawstring([320, 155], S_ENABLED, [14, 14], [1, 1, 1], 1, 0);
|
||||||
|
|
||||||
// Controller Glyphs
|
// Controller Glyphs
|
||||||
string controller_glyph_brand = "Unknown";
|
string controller_glyph_brand = "Unknown";
|
||||||
switch(cvar_string("cl_controllerglyphs")) {
|
switch(cvar_string("cl_controllerglyphs")) {
|
||||||
|
@ -1531,6 +1544,9 @@ void() Draw_Extra_CSettings =
|
||||||
case 67:
|
case 67:
|
||||||
cset_desc = "Glyph Branding type to display for Controllers.";
|
cset_desc = "Glyph Branding type to display for Controllers.";
|
||||||
break;
|
break;
|
||||||
|
case 68:
|
||||||
|
cset_desc = "Toggle Rumble support for Controllers.";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
cset_desc = "";
|
cset_desc = "";
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue