Commit Graph

2729 Commits

Author SHA1 Message Date
Diavolo
c824fe31e2
[Dvar] Found another assert failed trigger 2021-09-11 20:38:22 +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
d96780a88e Add handling of zero length vector to normalization methods
- Avoids having division by zero
2021-09-11 17:49:32 +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
da669cccc0 Fix maps component using integer values for setting bool dvars 2021-09-10 12:40:53 +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
Jan
cc39a7bbe5 Reintroduce setRaw dvar methods
- Makes it possible to set the value of a dvar without using the game's way of first converting it to a string and checking all kinds of dvar flags
2021-09-10 11:40:30 +02:00
Diavolo
e8185a27b9
Fixed compilation 2021-09-10 11:35:15 +02:00
Diavolo
0fec011bb0
Some minor style changes 2021-09-10 09:44:18 +02:00
Diavolo
906e33ac41
Some minor style changes 2021-09-10 09:43:04 +02:00
Diavolo
27c8a647df
Random tab i spotted 2021-09-09 11:36:48 +02:00
Diavolo
7de4b0a3aa
Tab again X-( 2021-09-09 10:50:49 +02:00
Diavolo
337b3961c4
Fixed indent 2021-09-09 10:44:04 +02:00
Edo
035b7f19d9
Merge branch 'develop' into feature/xinput 2021-09-09 10:39:59 +02:00
Dss0
e873b48571
Merge pull request #124 from diamante0018/client_t-is-fun-4
[Structs] Update client_t
2021-09-08 23:25:01 +02:00
Diavolo
9cb16ceabf
Addressed review 2021-09-08 23:15:10 +02:00
Dss0
f83eabf1e9
Merge pull request #126 from diamante0018/dvar-set
I accidentally modifed the struct
2021-09-08 23:07:34 +02:00
Diavolo
8b7eceeea9
I accidentally modifed the struct 2021-09-08 23:03:32 +02:00
Dss0
99d9d19dcf
Merge pull request #123 from diamante0018/dvar-set
[Dvar] Use set raw method on dvars by default
2021-09-08 22:58:32 +02:00
Diavolo
63bce435ef
newline between funcs 2021-09-08 22:54:43 +02:00
Louvenarde
570d2acdac Merge branch 'develop_official' into feature/xinput
# Conflicts:
#	src/Components/Loader.cpp
2021-09-08 21:34:37 +02:00
Diavolo
4966a64711
Fix compilation 2021-09-08 11:19:30 +02:00
Diavolo
252c210156
Reversed more client header in preparation for netchan fix 2021-09-08 10:56:42 +02:00
Diavolo
15631bcec2
Removed static assert 2021-09-08 10:05:34 +02:00
Dss0
d0093e79cf
Merge pull request #118 from XLabsProject/dependabot/submodules/deps/zlib-c3f3043
Bump deps/zlib from `d71dc66` to `c3f3043`
2021-09-06 15:11:27 +02:00
Dss0
f14888d894
Merge pull request #119 from XLabsProject/dependabot/submodules/deps/pdcurses-4bc97e2
Bump deps/pdcurses from `618e0aa` to `4bc97e2`
2021-09-06 15:07:23 +02:00
Dss0
02265b0f7b
Merge pull request #120 from XLabsProject/dependabot/submodules/deps/protobuf-df2bce3
Bump deps/protobuf from `63cfdaf` to `df2bce3`
2021-09-06 15:07:09 +02:00
Dss0
c1e13acf8f
Merge pull request #121 from XLabsProject/dependabot/submodules/deps/json11-2df9473
Bump deps/json11 from `e2e3a11` to `2df9473`
2021-09-06 15:06:52 +02:00
Dss0
9b657a424f
Merge pull request #117 from XLabsProject/dependabot/submodules/deps/libtommath-eda0bd6
Bump deps/libtommath from `6ac0b0c` to `eda0bd6`
2021-09-06 14:51:18 +02:00
Dss0
27c0afd562
Merge pull request #122 from XLabsProject/dependabot/submodules/deps/libtomcrypt-673f5ce
Bump deps/libtomcrypt from `1937f41` to `673f5ce`
2021-09-06 14:50:24 +02:00
Diavolo
e1a0d881f4 Update client_s 2021-09-05 22:02:38 +02:00
Diavolo
3838cd478e
[Structs] Updated Client_t 2021-09-05 21:53:56 +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
Diavolo
3cb8d31571
Removed unused functions 2021-09-03 10:41:23 +02:00
Diavolo
36a025e1d0
Use game functions to safely change dvar value 2021-09-01 23:19:44 +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
Diavolo
dded312064
Removed extra newline 2021-08-31 18:24:40 +02:00
Jan
f8dd3f2b3a Add gamepad options menu 2021-08-31 18:13:15 +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
Diavolo
ff5bb1f264
Use Dvar_SetString 2021-08-31 18:12:25 +02:00
Diavolo
1bb3b20395
Fix setString 2021-08-31 16:32:57 +02:00
Diavolo
032667e91c
Fix setString 2021-08-31 16:31:46 +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