From 5abc034540feb5ec47f05fc370cde3854809b643 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 26 Oct 2019 09:22:49 +0200 Subject: [PATCH] - added a set of left handed key bindings because neither of the offerings is really good for that. --- source/common/gamecvars.cpp | 4 ++ .../game-blood/demolition/leftbinds.txt | 55 ++++++++++++++++ .../filter/game-duke/demolition/leftbinds.txt | 63 +++++++++++++++++++ .../game-ionfury/demolition/leftbinds.txt | 57 +++++++++++++++++ .../filter/game-nam/demolition/leftbinds.txt | 63 +++++++++++++++++++ .../game-redneck/demolition/leftbinds.txt | 63 +++++++++++++++++++ .../demolition/leftbinds.txt | 63 +++++++++++++++++++ .../demolition/leftbinds.txt | 50 +++++++++++++++ .../game-ww2gi/demolition/leftbinds.txt | 63 +++++++++++++++++++ 9 files changed, 481 insertions(+) create mode 100644 wadsrc/static/filter/game-blood/demolition/leftbinds.txt create mode 100644 wadsrc/static/filter/game-duke/demolition/leftbinds.txt create mode 100644 wadsrc/static/filter/game-ionfury/demolition/leftbinds.txt create mode 100644 wadsrc/static/filter/game-nam/demolition/leftbinds.txt create mode 100644 wadsrc/static/filter/game-redneck/demolition/leftbinds.txt create mode 100644 wadsrc/static/filter/game-redneckrides/demolition/leftbinds.txt create mode 100644 wadsrc/static/filter/game-shadowwarrior/demolition/leftbinds.txt create mode 100644 wadsrc/static/filter/game-ww2gi/demolition/leftbinds.txt diff --git a/source/common/gamecvars.cpp b/source/common/gamecvars.cpp index ef6a23ee6..c6059c9a9 100644 --- a/source/common/gamecvars.cpp +++ b/source/common/gamecvars.cpp @@ -42,6 +42,7 @@ #include "keyboard.h" #include "control.h" #include "_control.h" +#include "gamecontrol.h" /* Notes @@ -51,11 +52,14 @@ */ +CVAR(Bool, cl_defaultconfiguration, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) + FGameConfigFile* GameConfig; static FString GameName; void G_LoadConfig(const char *game) { + CONFIG_SetDefaultKeys(cl_defaultconfiguration? "demolition/origbinds.txt" : "demolition/defbinds.txt") GameConfig = new FGameConfigFile(); GameConfig->DoGlobalSetup(); GameConfig->DoGameSetup(game); diff --git a/wadsrc/static/filter/game-blood/demolition/leftbinds.txt b/wadsrc/static/filter/game-blood/demolition/leftbinds.txt new file mode 100644 index 000000000..02e812ee6 --- /dev/null +++ b/wadsrc/static/filter/game-blood/demolition/leftbinds.txt @@ -0,0 +1,55 @@ +"Move_Forward", "Up", "Kpad8" +"Move_Backward", "Down", "Kpad2" +"Turn_Left", "Left", "Kpad4" +"Turn_Right", "Right", "KPad6" +"Turn_Around", "BakSpc" +"Strafe", "LAlt", "RAlt" +"Strafe_Left", ",", "KPad7" +"Strafe_Right", ".", "KPad9" +"Jump", "A", "Kpad-" +"Crouch", "Z" +"Run", "LShift", "RShift" +"AutoRun", "CapLck" +"Open", "Space" +"Weapon_Fire", "LCtrl", "RCtrl" +"Weapon_Special_Fire", "X" +"Aim_Up", "Home" +"Aim_Down", "End" +"Aim_Center" +"Look_Up", "PgUp" +"Look_Down", "PgDn" +"Tilt_Left", "Insert", "Kpad0" +"Tilt_Right", "Delete", "Kpad." +"Weapon_1", "1" +"Weapon_2", "2" +"Weapon_3", "3" +"Weapon_4", "4" +"Weapon_5", "5" +"Weapon_6", "6" +"Weapon_7", "7" +"Weapon_8", "8" +"Weapon_9", "9" +"Weapon_10", "0" +"Inventory_Use", "Enter", "KpdEnt" +"Inventory_Left", "[" +"Inventory_Right", "]" +"Map_Toggle", "Tab" +"Map_Follow_Mode", "F" +"Shrink_Screen", "-" +"Enlarge_Screen", "=" +"Send_Message", "T" +"See_Coop_View", "K" +"See_Chase_View", "F7" +"Mouse_Aiming", "U" +"Toggle_Crosshair", "I" +"Next_Weapon", "'" +"Previous_Weapon", ";" +"Holster_Weapon", "ScrLck" +"Show_Opponents_Weapon", "W" +"BeastVision", "B" +"CrystalBall", "C" +"JumpBoots", "J" +"MedKit", "M" +"ProximityBombs", "P" +"RemoteBombs", "R" +"Show_Console", "`" diff --git a/wadsrc/static/filter/game-duke/demolition/leftbinds.txt b/wadsrc/static/filter/game-duke/demolition/leftbinds.txt new file mode 100644 index 000000000..a4d408a97 --- /dev/null +++ b/wadsrc/static/filter/game-duke/demolition/leftbinds.txt @@ -0,0 +1,63 @@ +"Move_Forward", "Up", "Kpad8" +"Move_Backward", "Down", "Kpad2" +"Turn_Left", "Left", "Kpad4" +"Turn_Right", "Right", "KPad6" +"Strafe", "LAlt", "RAlt" +"Fire", "LCtrl", "RCtrl" +"Open", "Space" +"Run", "LShift", "RShift" +"Alt_Fire" +"Jump", "A", "KPad-" +"Crouch", "Z" +"Look_Up", "PgUp", "Kpad9" +"Look_Down", "PgDn", "Kpad3" +"Look_Left", "Insert", "Kpad0" +"Look_Right", "Delete", "Kpad." +"Strafe_Left", ",", "KPad7" +"Strafe_Right", ".", "KPad9" +"Aim_Up", "Home" +"Aim_Down", "End" +"Weapon_1", "1" +"Weapon_2", "2" +"Weapon_3", "3" +"Weapon_4", "4" +"Weapon_5", "5" +"Weapon_6", "6" +"Weapon_7", "7" +"Weapon_8", "8" +"Weapon_9", "9" +"Weapon_10", "0" +"Inventory", "Enter", "KpdEnt" +"Inventory_Left", "[" +"Inventory_Right", "]" +"Holo_Duke", "H" +"Jetpack", "J" +"NightVision", "N" +"MedKit", "M" +"TurnAround", "BakSpc" +"SendMessage", "T" +"Map", "Tab" +"Shrink_Screen", "-" +"Enlarge_Screen", "=" +"Center_View" +"Holster_Weapon", "ScrLck" +"Show_Opponents_Weapon", "W" +"Map_Follow_Mode", "F" +"See_Coop_View", "K" +"Mouse_Aiming", "U" +"Toggle_Crosshair", "I" +"Steroids", "R" +"Quick_Kick", "Q" +"Next_Weapon", "'" +"Previous_Weapon", ";" +"Show_Console", "`" +"Show_DukeMatch_Scores" +"Dpad_Select" +"Dpad_Aiming" +"AutoRun", "CapLck" +"Last_Used_Weapon" +"Quick_Save", "F6" +"Quick_Load", "F9" +"Alt_Weapon" +"Third_Person_View", "F7" +"Toggle_Crouch" diff --git a/wadsrc/static/filter/game-ionfury/demolition/leftbinds.txt b/wadsrc/static/filter/game-ionfury/demolition/leftbinds.txt new file mode 100644 index 000000000..d3b9bb963 --- /dev/null +++ b/wadsrc/static/filter/game-ionfury/demolition/leftbinds.txt @@ -0,0 +1,57 @@ +"Move_Forward", "Up", "Kpad8" +"Move_Backward", "Down", "Kpad2" +"Turn_Left", "Left", "Kpad4" +"Turn_Right", "Right", "KPad6" +"Strafe", "LAlt", "RAlt" +"Fire", "LCtrl", "RCtrl" +"Open", "Space" +"Run", "LShift", "RShift" +"Alt_Fire" +"Jump", "A", "KPad-" +"Crouch", "Z" +"Look_Up", "PgUp", "Kpad9" +"Look_Down", "PgDn", "Kpad3" +"Look_Left", "Insert", "Kpad0" +"Look_Right", "Delete", "Kpad." +"Strafe_Left", ",", "KPad7" +"Strafe_Right", ".", "KPad9" +"Aim_Up", "Home" +"Aim_Down", "End" +"Weapon_1", "1" +"Weapon_2", "2" +"Weapon_3", "3" +"Weapon_4", "4" +"Weapon_5", "5" +"Weapon_6", "6" +"Weapon_7", "7" +"Weapon_8", "8" +"Weapon_9", "9" +"Weapon_10", "0" +"Inventory", "Enter", "KpdEnt" +"Inventory_Left", "[" +"Inventory_Right", "]" +"TurnAround", "BakSpc" +"SendMessage", "T" +"Map", "Tab" +"Shrink_Screen", "-" +"Enlarge_Screen", "=" +"Center_View" +"Holster_Weapon", "ScrLck" +"Show_Opponents_Weapon", "W" +"Map_Follow_Mode", "F" +"See_Coop_View", "K" +"Mouse_Aiming", "U" +"Toggle_Crosshair", "I" +"Next_Weapon", "'" +"Previous_Weapon", ";" +"Show_Console", "`" +"Show_DukeMatch_Scores" +"Dpad_Select" +"Dpad_Aiming" +"AutoRun", "CapLck" +"Last_Used_Weapon" +"Quick_Save", "F6" +"Quick_Load", "F9" +"Alt_Weapon" +"Third_Person_View", "F7" +"Toggle_Crouch" diff --git a/wadsrc/static/filter/game-nam/demolition/leftbinds.txt b/wadsrc/static/filter/game-nam/demolition/leftbinds.txt new file mode 100644 index 000000000..a4d408a97 --- /dev/null +++ b/wadsrc/static/filter/game-nam/demolition/leftbinds.txt @@ -0,0 +1,63 @@ +"Move_Forward", "Up", "Kpad8" +"Move_Backward", "Down", "Kpad2" +"Turn_Left", "Left", "Kpad4" +"Turn_Right", "Right", "KPad6" +"Strafe", "LAlt", "RAlt" +"Fire", "LCtrl", "RCtrl" +"Open", "Space" +"Run", "LShift", "RShift" +"Alt_Fire" +"Jump", "A", "KPad-" +"Crouch", "Z" +"Look_Up", "PgUp", "Kpad9" +"Look_Down", "PgDn", "Kpad3" +"Look_Left", "Insert", "Kpad0" +"Look_Right", "Delete", "Kpad." +"Strafe_Left", ",", "KPad7" +"Strafe_Right", ".", "KPad9" +"Aim_Up", "Home" +"Aim_Down", "End" +"Weapon_1", "1" +"Weapon_2", "2" +"Weapon_3", "3" +"Weapon_4", "4" +"Weapon_5", "5" +"Weapon_6", "6" +"Weapon_7", "7" +"Weapon_8", "8" +"Weapon_9", "9" +"Weapon_10", "0" +"Inventory", "Enter", "KpdEnt" +"Inventory_Left", "[" +"Inventory_Right", "]" +"Holo_Duke", "H" +"Jetpack", "J" +"NightVision", "N" +"MedKit", "M" +"TurnAround", "BakSpc" +"SendMessage", "T" +"Map", "Tab" +"Shrink_Screen", "-" +"Enlarge_Screen", "=" +"Center_View" +"Holster_Weapon", "ScrLck" +"Show_Opponents_Weapon", "W" +"Map_Follow_Mode", "F" +"See_Coop_View", "K" +"Mouse_Aiming", "U" +"Toggle_Crosshair", "I" +"Steroids", "R" +"Quick_Kick", "Q" +"Next_Weapon", "'" +"Previous_Weapon", ";" +"Show_Console", "`" +"Show_DukeMatch_Scores" +"Dpad_Select" +"Dpad_Aiming" +"AutoRun", "CapLck" +"Last_Used_Weapon" +"Quick_Save", "F6" +"Quick_Load", "F9" +"Alt_Weapon" +"Third_Person_View", "F7" +"Toggle_Crouch" diff --git a/wadsrc/static/filter/game-redneck/demolition/leftbinds.txt b/wadsrc/static/filter/game-redneck/demolition/leftbinds.txt new file mode 100644 index 000000000..3f59c610b --- /dev/null +++ b/wadsrc/static/filter/game-redneck/demolition/leftbinds.txt @@ -0,0 +1,63 @@ +"Move_Forward", "Up", "Kpad8" +"Move_Backward", "Down", "Kpad2" +"Turn_Left", "Left", "Kpad4" +"Turn_Right", "Right", "KPad6" +"Strafe", "LAlt", "RAlt" +"Fire", "LCtrl", "RCtrl" +"Open", "Space" +"Run", "LShift", "RShift" +"AutoRun", "CapLck" +"Jump", "A", "KPad-" +"Crouch", "Z" +"Look_Up", "PgUp" +"Look_Down", "PgDn" +"Look_Left", "Insert", "Kpad0" +"Look_Right", "Delete", "Kpad." +"Strafe_Left", ",", "KPad7" +"Strafe_Right", ".", "KPad9" +"Aim_Up", "Home" +"Aim_Down", "End" +"Weapon_1", "1" +"Weapon_2", "2" +"Weapon_3", "3" +"Weapon_4", "4" +"Weapon_5", "5" +"Weapon_6", "6" +"Weapon_7", "7" +"Weapon_8", "8" +"Weapon_9", "9" +"Weapon_10", "0" +"Inventory", "Enter", "KpdEnt" +"Inventory_Left", "[" +"Inventory_Right", "]" +"Holo_Duke", "B" +"Jetpack", "C" +"NightVision", "Y" +"MedKit", "W" +"TurnAround", "BakSpc" +"SendMessage", "T" +"Map", "Tab" +"Shrink_Screen", "-" +"Enlarge_Screen", "=" +"Center_View" +"Holster_Weapon", "ScrLck" +"Show_Opponents_Weapon", "E" +"Map_Follow_Mode", "F" +"See_Coop_View", "K" +"Mouse_Aiming", "U" +"Toggle_Crosshair", "I" +"Steroids", "M" +"Quick_Kick", "`" +"Next_Weapon", "'" +"Previous_Weapon", ";" +"Show_Console", "`" +"Show_DukeMatch_Scores" +"Dpad_Select" +"Dpad_Aiming" +"Alternate_Weapon" +"Last_Used_Weapon" +"Quick_Save", "F6" +"Quick_Load", "F9" +"Third_Person_View", "F7" +"Toggle_Crouch" + diff --git a/wadsrc/static/filter/game-redneckrides/demolition/leftbinds.txt b/wadsrc/static/filter/game-redneckrides/demolition/leftbinds.txt new file mode 100644 index 000000000..4610ac159 --- /dev/null +++ b/wadsrc/static/filter/game-redneckrides/demolition/leftbinds.txt @@ -0,0 +1,63 @@ +"Move_Forward", "Up", "Kpad8" +"Move_Backward", "Down", "Kpad2" +"Turn_Left", "Left", "Kpad4" +"Turn_Right", "Right", "KPad6" +"Strafe", "LAlt", "RAlt" +"Fire", "LCtrl", "RCtrl" +"Open", "Space" +"Run", "LShift", "RShift" +"AutoRun", "CapLck" +"Jump", "A", "KPad-" +"Crouch", "Z" +"Look_Up", "PgUp", "Kpad9" +"Look_Down", "PgDn", "Kpad3" +"Look_Left", "Insert", "Kpad0" +"Look_Right", "Delete", "Kpad." +"Strafe_Left", ",", "KPad7" +"Strafe_Right", ".", "KPad9" +"Aim_Up", "Home" +"Aim_Down", "End" +"Weapon_1", "1" +"Weapon_2", "2" +"Weapon_3", "3" +"Weapon_4", "4" +"Weapon_5", "5" +"Weapon_6", "6" +"Weapon_7", "7" +"Weapon_8", "8" +"Weapon_9", "9" +"Weapon_10", "0" +"Inventory", "Enter", "KpdEnt" +"Inventory_Left", "[" +"Inventory_Right", "]" +"Holo_Duke", "B" +"Jetpack", "C" +"NightVision", "Y" +"MedKit", "W" +"TurnAround", "BakSpc" +"SendMessage", "T" +"Map", "Tab" +"Shrink_Screen", "-" +"Enlarge_Screen", "=" +"Center_View" +"Holster_Weapon", "ScrLck" +"Show_Opponents_Weapon", "E" +"Map_Follow_Mode", "F" +"See_Coop_View", "K" +"Mouse_Aiming", "U" +"Toggle_Crosshair", "I" +"Steroids", "M" +"Quick_Kick", "`" +"Next_Weapon", "'" +"Previous_Weapon", ";" +"Show_Console", "V" +"Show_DukeMatch_Scores" +"Dpad_Select" +"Dpad_Aiming" +"Alternate_Weapon" +"Last_Used_Weapon" +"Quick_Save", "F6" +"Quick_Load", "F9" +"Third_Person_View", "F7" +"Toggle_Crouch" + diff --git a/wadsrc/static/filter/game-shadowwarrior/demolition/leftbinds.txt b/wadsrc/static/filter/game-shadowwarrior/demolition/leftbinds.txt new file mode 100644 index 000000000..e49401ae6 --- /dev/null +++ b/wadsrc/static/filter/game-shadowwarrior/demolition/leftbinds.txt @@ -0,0 +1,50 @@ +"Move_Forward", "Up", "Kpad8" +"Move_Backward", "Down", "Kpad2" +"Turn_Left", "Left", "Kpad4" +"Turn_Right", "Right", "KPad6" +"Strafe", "LAlt", "RAlt" +"Fire", "LCtrl", "RCtrl" +"Open", "Space" +"Run", "LShift", "RShift" +"AutoRun", "CapLck" +"Jump", "A", "KPad-" +"Crouch", "Z" +"Look_Up", "PgUp" +"Look_Down", "PgDn" +"Strafe_Left", ",", "KPad7" +"Strafe_Right", ".", "KPad9" +"Aim_Up", "Home" +"Aim_Down", "End" +"Weapon_1", "1" +"Weapon_2", "2" +"Weapon_3", "3" +"Weapon_4", "4" +"Weapon_5", "5" +"Weapon_6", "6" +"Weapon_7", "7" +"Weapon_8", "8" +"Weapon_9", "9" +"Weapon_10", "0" +"Inventory", "Enter", "KpdEnt" +"Inventory_Left", "[" +"Inventory_Right", "]" +"MedKit", "M" +"Smoke_Bomb", "S" +"Nightvision", "N" +"Gas_Bomb", "G" +"Flash_Bomb", "F" +"Caltrops", "C" +"TurnAround", "BakSpc" +"SendMessage", "T" +"Map", "Tab" +"Shrink_Screen", "-" +"Enlarge_Screen", "=" +"Center_View" +"Holster_Weapon", "ScrLck" +"Map_Follow_Mode", "F" +"See_Coop_View", "K" +"Mouse_Aiming", "U" +"Toggle_Crosshair", "I" +"Next_Weapon", "'" +"Previous_Weapon", ";" +"Show_Console", "`" diff --git a/wadsrc/static/filter/game-ww2gi/demolition/leftbinds.txt b/wadsrc/static/filter/game-ww2gi/demolition/leftbinds.txt new file mode 100644 index 000000000..a4d408a97 --- /dev/null +++ b/wadsrc/static/filter/game-ww2gi/demolition/leftbinds.txt @@ -0,0 +1,63 @@ +"Move_Forward", "Up", "Kpad8" +"Move_Backward", "Down", "Kpad2" +"Turn_Left", "Left", "Kpad4" +"Turn_Right", "Right", "KPad6" +"Strafe", "LAlt", "RAlt" +"Fire", "LCtrl", "RCtrl" +"Open", "Space" +"Run", "LShift", "RShift" +"Alt_Fire" +"Jump", "A", "KPad-" +"Crouch", "Z" +"Look_Up", "PgUp", "Kpad9" +"Look_Down", "PgDn", "Kpad3" +"Look_Left", "Insert", "Kpad0" +"Look_Right", "Delete", "Kpad." +"Strafe_Left", ",", "KPad7" +"Strafe_Right", ".", "KPad9" +"Aim_Up", "Home" +"Aim_Down", "End" +"Weapon_1", "1" +"Weapon_2", "2" +"Weapon_3", "3" +"Weapon_4", "4" +"Weapon_5", "5" +"Weapon_6", "6" +"Weapon_7", "7" +"Weapon_8", "8" +"Weapon_9", "9" +"Weapon_10", "0" +"Inventory", "Enter", "KpdEnt" +"Inventory_Left", "[" +"Inventory_Right", "]" +"Holo_Duke", "H" +"Jetpack", "J" +"NightVision", "N" +"MedKit", "M" +"TurnAround", "BakSpc" +"SendMessage", "T" +"Map", "Tab" +"Shrink_Screen", "-" +"Enlarge_Screen", "=" +"Center_View" +"Holster_Weapon", "ScrLck" +"Show_Opponents_Weapon", "W" +"Map_Follow_Mode", "F" +"See_Coop_View", "K" +"Mouse_Aiming", "U" +"Toggle_Crosshair", "I" +"Steroids", "R" +"Quick_Kick", "Q" +"Next_Weapon", "'" +"Previous_Weapon", ";" +"Show_Console", "`" +"Show_DukeMatch_Scores" +"Dpad_Select" +"Dpad_Aiming" +"AutoRun", "CapLck" +"Last_Used_Weapon" +"Quick_Save", "F6" +"Quick_Load", "F9" +"Alt_Weapon" +"Third_Person_View", "F7" +"Toggle_Crouch"