Edo
9200eff483
Merge branch 'develop' into fix-cbuf
2022-02-07 13:31:29 +01:00
FutureRave
61becec5f8
Fix cbuf not being terminated
2022-02-07 12:28:17 +00:00
FutureRave
2785343eac
document player state flags in gamepad module
2022-01-12 17:48:20 +00:00
Jan
c22abf2791
Swap between playstation and xbox buttons depending on the style dvar
2021-10-16 22:20:12 +02:00
Chase
3b00c823d5
Update Gamepad.cpp
2021-10-16 12:40:07 -05:00
Jan
737fab1642
Fix gamepad hold x to pickup only being applied to non dedi
2021-10-09 01:57:52 +02:00
Jan
8ef991f81f
Move standard header include to precompiled header
...
- Im getting forced to do this help
2021-09-11 17:54:50 +02:00
Jan
c0a1a99d8b
Add comments to gamepad patch to explain commented out code and magic flag numbers
2021-09-11 17:49:58 +02:00
Jan
d71dfd170b
Move Gamepad structs to their respective correct location
...
- Structs that are reversed from the Game are moved to Structs.hpp
- Structs that are custom to the Gamepad patch are moved into the Gamepad component class
- Offsets to the Game's memory are moved to the Functions.hpp header
- Arrays that hold data are moved to the Gamepad components class as static fields
2021-09-11 16:34:04 +02:00
Jan
966d7c23f3
Fix gamepad slowdown aimassist mask to fix slowdown not being active when having scrambler perk equipped
2021-09-10 13:19:08 +02:00
Jan
8ca84eb882
Replace runtime critical usages of Dvar::set with Dvar::setRaw in gamepad patch
2021-09-10 11:41:44 +02:00
Diavolo
e8185a27b9
Fixed compilation
2021-09-10 11:35:15 +02:00
Diavolo
906e33ac41
Some minor style changes
2021-09-10 09:43:04 +02:00
Jan
cb2e24a52f
Make gamepad scoreboard toggable and scrollable
2021-09-04 11:15:34 +02:00
Jan
ac57df648e
Make gamepad predator missiles also controllable with right stick
2021-09-04 11:15:14 +02:00
Jan
7e9f277ae9
Remove aim assist premake configuration value again in favor of being able to disable aim assist using the server dvar
2021-09-01 18:36:03 +02:00
Jan
67bfad3ae7
Add non cheat protected dvars to disable gamepad lockon and slowdown aim assists additionally to the cheat protected ones
2021-09-01 18:32:12 +02:00
Jan
7a64545f92
Add sv_allowAimAssist dvar to be able to disable aim assist server side
2021-09-01 18:12:44 +02:00
Jan
f364e4db66
Fix gamepad Key_GetCommandAssignmentInternal returning wrong key count when a command is bound to 2 keys
2021-09-01 16:49:51 +02:00
Jan
abc44e6897
Update gamepad dvar defaults
2021-08-31 18:13:06 +02:00
Jan
9a9d2cd058
Fix disabling gamepad not blocking all gamepad inputs
2021-08-31 18:12:53 +02:00
Jan
8b53ce4cfe
Swap gamepad attack and throw button on dualwield weapons to make left trigger match left weapon etc
2021-08-30 21:57:31 +02:00
Jan
a07a00da93
Fix gamepad use hold time by checking for used buttons from gentity instead of local player keys to work on dedicated servers
2021-08-30 20:05:06 +02:00
Jan
aa3c6d79c6
Implement holding use button for activating for controllers
2021-08-30 19:30:06 +02:00
Jan
925eb1d0a9
Remove unused outdated xpad dvars for gamepad
2021-08-30 19:29:41 +02:00
Jan
2d81e51a05
Fix gamepad updating stick trying to normalize zero vectors when no gamepad input is happening
2021-08-30 16:09:52 +02:00
Jan
e5c68247ef
Gamepad Patch formatting
2021-08-30 16:09:52 +02:00
Jan
7ce7ba883b
Add gamepad slowdown and lockon aimassists
2021-08-30 16:09:52 +02:00
Jan
ae8dd7bb33
Rename Automelee that was mistakenly named autoaim
2021-08-30 16:09:52 +02:00
Jan
ff86a19cc3
Fix gamepad release compiling
2021-08-30 16:09:52 +02:00
Jan
e2552f1aeb
Add remote control (predator) controls for gamepad
2021-08-30 16:09:52 +02:00
Jan
8adea24d67
Add gamepad location selection support
2021-08-30 16:09:52 +02:00
Jan
fea24a509a
Remove button float value from gamepad plus(+) binds since basegame doesnt make use of it
2021-08-30 16:09:52 +02:00
Jan
edf060bd4a
Remove unused gamepad fields
2021-08-30 16:09:51 +02:00
Jan
eaa6e6fb8c
Swap kbm keybinds for gamepad commands when trying to displayed localized button string and using controller
2021-08-30 16:09:51 +02:00
Jan
2c3bfbe62a
Retrieve gamepad dvars on creating dvars instead of referencing them by name
2021-08-30 16:09:51 +02:00
Jan
30c90e5985
Set mouse as used when mouse is moved instead of disabling it when gamepad is in use
2021-08-30 16:09:51 +02:00
Jan
e49e17d6e6
Add turnrates for controllers
2021-08-30 16:09:51 +02:00
Jan
6043dabc3c
Apply gamepad axis rotation to usercmds
2021-08-30 16:09:51 +02:00
Jan
6434526fcb
Disable mouse cursor when controller is active
2021-08-30 16:09:51 +02:00
Jan
b3e5f461f2
Add gpad_in_use dvar that reflects whether a gamepad is currently being used
2021-08-30 16:09:51 +02:00
Jan
05861a0df4
Draw only gamepad buttons when gamepad is in use
2021-08-30 16:09:51 +02:00
Jan
885f5c4688
Add localized button names for gamepad keys
2021-08-30 16:09:51 +02:00
Jan
0875a87e26
Add commands for applying gamepad stick and button configurations
2021-08-30 16:09:51 +02:00
Jan
8cd99235c0
Write gamepad axis configuration to config file
2021-08-30 16:09:51 +02:00
Jan
dcbb120de1
Fix menu controller support taking keypad keys instead of normal keys
2021-08-30 16:09:51 +02:00
Jan
9b4a48f2c3
Implement menu navigation using gamepad
2021-08-30 16:09:51 +02:00
Jan
b6d7abdcd4
Execute gamepad keybinds
2021-08-30 16:09:51 +02:00
Jan
6d598df56d
Add binding commands to keys for controllers
2021-08-30 16:09:51 +02:00
Jan
2decfa2c45
Apply patches important for dedicated servers as well in any case
2021-08-30 16:09:51 +02:00