Commit Graph

2477 Commits

Author SHA1 Message Date
FutureRave
5c9a5c3eac
improve bot stub further 2022-01-24 12:15:33 +00:00
FutureRave
598eb99461
Remove useless dvar 2022-01-24 12:03:35 +00:00
FutureRave
b1293a0ae4
Fix asm 2022-01-24 03:20:57 +00:00
FutureRave
61c994cdda
Add printtoconsole again but make it better 2022-01-24 03:15:05 +00:00
FutureRave
4c8198e687
Fix weapon check 2022-01-24 02:08:28 +00:00
FutureRave
d7a2b1aae7
Address more 2022-01-24 02:00:30 +00:00
FutureRave
cfc540991c
Address some parts of review 2022-01-23 19:32:20 +00:00
Dss0
2ac8ffaad6
Merge pull request #173 from diamante0018/fix-dos
[QuickPatch] Do some quick patching
2022-01-22 15:50:48 +01:00
FutureRave
808cd07df3
[QuickPatch] Remove unnecessary server logging on client commands 2022-01-22 13:55:20 +00:00
FutureRave
6687d73f20
Remove unused function 2022-01-20 18:21:37 +00:00
FutureRave
93cb764c23
🔒 Used the wrong locks 🔒 2022-01-19 19:32:49 +00:00
FutureRave
2c27de030c
Address second review 2022-01-19 14:05:40 +00:00
Dss0
0cf1143f94
Merge pull request #163 from diamante0018/feature/proper-setviewpos
Restore setviewpos command
2022-01-19 14:57:38 +01:00
FutureRave
65eb2e34e0
Change style a bit 2022-01-19 10:48:33 +00:00
FutureRave
9af4a9b8e0
Comments, I'm tired 👽 2022-01-19 00:53:06 +00:00
FutureRave
4ee39b510f
Refactor bounces 2022-01-19 00:49:50 +00:00
Edo
29a929eee0
Merge branch 'develop' into insanely-fast-crit-sections 2022-01-18 11:18:51 +00:00
FutureRave
7a33fe42e8
🚨 Fix DB_EnumXAssetEntries 2022-01-18 11:10:53 +00:00
FutureRave
5c34e55552
Fix some inconsistencies in my code 2022-01-18 00:21:25 +00:00
Dss0
9da6abd11d
Merge pull request #169 from diamante0018/revert-Fixed-compile-errors-on-Cpp20
Partially revert some changes from "fix compile errors on c++20"
2022-01-17 19:24:10 +01:00
FutureRave
c0670ba0a3
Revert some changes and use const char pointer where it's appropriate 2022-01-17 17:21:51 +00:00
Dss0
656ee13fbc
Merge pull request #164 from diamante0018/refactor-startup-messages
Refactor startup messages
2022-01-17 15:24:47 +01:00
FutureRave
805be6bb01
hook runtimerror for the win 2022-01-16 17:25:51 +00:00
FutureRave
7794a12b95
make dedi patch work on client as well 2022-01-16 14:08:52 +00:00
FutureRave
5d26af4a28
Refactor script param checking behaviour 2022-01-16 13:45:18 +00:00
FutureRave
5231077b95
Fix other keks + add scr_addbool for good mesure 2022-01-15 19:18:15 +00:00
FutureRave
7fab6e136e
Comment gsc function 2022-01-15 13:49:33 +00:00
FutureRave
d7d8949d2a
Use newly added flag 2022-01-14 19:42:03 +00:00
Dss0
1bef363a5f
Merge pull request #166 from diamante0018/feature/eflags
[Gamepad] Document player state flags
2022-01-14 20:27:04 +01:00
FutureRave
3b52208c87
Add script function from bo2 for good mesure 2022-01-14 00:21:14 +00:00
FutureRave
2785343eac
document player state flags in gamepad module 2022-01-12 17:48:20 +00:00
FutureRave
4fbe9ffc27
Fix error message 2022-01-11 18:53:20 +00:00
FutureRave
52d2a101e6
use dev_script for debugcode 2022-01-11 10:40:34 +00:00
FutureRave
2adad67f4f
Protect list with mutex 2022-01-10 18:42:58 +00:00
FutureRave
0fe6a80429
Refactor startup messages 2022-01-10 15:28:37 +00:00
FutureRave
9a100a309c
Fix logic error 2022-01-10 12:12:56 +00:00
FutureRave
b6ae4bfe87
Restore setviewpos command as it should be 2022-01-10 12:04:39 +00:00
Diavolo
3a9ec90127
Tidy format up a bit 2022-01-08 13:44:09 +01:00
Diavolo
c833a57508
Set debugcode to true if we are developers 2022-01-08 12:52:05 +01:00
Diavolo
77c2043006
Refactor script related funcs/modules 2022-01-07 22:00:44 +01:00
Diavolo
22076ef096
Add prone to crouch ele 2022-01-07 12:33:53 +01:00
Diavolo
687e3d6e27 Refactor movement. 2022-01-07 12:24:29 +01:00
Diavolo
7add84442f
Allow to unmute using guid 2022-01-01 22:21:25 +01:00
Diavolo
57d598617c
Mute player's chat feature 2022-01-01 14:08:02 +01:00
Diavolo
eb88d587fc
Added prone elevators 2021-12-28 10:07:39 +01:00
Diavolo
41874769aa
Address review 2021-12-26 17:33:48 +01:00
Diavolo
35d753406b Merge branch 'feature/refactor-elevators' of https://github.com/diamante0018/iw4x-client into feature/refactor-elevators 2021-12-26 17:25:29 +01:00
Diavolo
ec43adda59
Address parts of review 2021-12-26 17:25:13 +01:00
Edo
ec3cbb4d7c
Commit suggestion
Bad copy paste on my end

Co-authored-by: Jan <Laupetin@users.noreply.github.com>
2021-12-26 17:22:42 +01:00
Diavolo
8cf5208c29
comments 2021-12-22 16:40:30 +01:00
Diavolo
8736983c46
Refactor elevators 2021-12-22 16:25:58 +01:00
Dss0
6d80943380
Merge pull request #155 from diamante0018/develop
Added missing lock guard
2021-12-17 20:25:16 +01:00
Diavolo
25a79f8439
Added missing lock guard 2021-12-17 19:49:25 +01:00
Louve
ba590760cd
Merge pull request #142 from Rackover/better_r_draw_debug
Better r draw debug
2021-12-17 18:02:42 +01:00
rack.over
a6f0d78481 address review 2021-12-17 09:55:50 +01:00
Louve
3fdadb45a5
Merge pull request #134 from diamante0018/feature/reset-dvars
[Dvar] Reset dvars changed by server when disconnecting
2021-12-13 22:42:50 +01:00
Louvenarde
c0f95d3fc3 Address review 2021-12-13 19:06:04 +01:00
Louvenarde
6ec5cac5cb Fix const cast on enum dvar registration 2021-12-13 18:50:52 +01:00
Louvenarde
241aed3d92 Merge branch 'develop' of https://github.com/XLabsProject/iw4x-client into better_r_draw_debug 2021-12-13 18:48:17 +01:00
Louvenarde
d726015ba2 Fix some declarations and pointer madness in Vec3SqrDist 2021-12-13 18:46:55 +01:00
FutureRave
62bca7f3b2
read ent num from struct as Matrix suggested 2021-12-09 17:49:47 +00:00
FutureRave
86f0242a3d
Reimplement clientcommand like in debug builds 2021-12-09 12:01:37 +00:00
FutureRave
ff1584cff0
Fix comment 2021-12-07 17:47:31 +00:00
FutureRave
86158bddf2
Organize cheat commands/gsc in one module 2021-12-07 16:53:41 +00:00
FutureRave
ed95316508
Fix wording 2021-12-07 16:19:40 +00:00
FutureRave
6d916ebd47
Added god/demigod and fixed ufo 2021-12-07 16:10:46 +00:00
FutureRave
3af0871902
Enclose in dvar onInit signal 2021-12-06 12:35:06 +00:00
FutureRave
0e3d4a596b
Refined logic a bit 2021-12-06 12:27:28 +00:00
FutureRave
69592a5656
Use .cfg over unordered map 2021-12-04 18:34:19 +00:00
Dss0
1583e82938
Merge pull request #151 from diamante0018/party/improve
[Party] Remove random function call
2021-12-04 15:42:39 +01:00
FutureRave
e4b76a3d1f
Remove random function call 2021-12-02 18:35:20 +00:00
Dss0
e68c402095
Merge pull request #145 from diamante0018/refactor-logger-error
[Logger] Use correct enum over numbers for com_error
2021-11-30 14:42:50 +01:00
Dss0
bdfc7f562c
Merge pull request #148 from diamante0018/feature/elevators
[Feature] Add options to disable elevators
2021-11-30 14:41:43 +01:00
FutureRave
a54d83945d
Match sv_enableBounces dvar flags 2021-11-29 18:36:23 +00:00
FutureRave
bf9ea14333
One feature at the time 2021-11-29 18:22:21 +00:00
FutureRave
79be9e12d5
Add dvar to disable elevators entirely 2021-11-29 17:16:18 +00:00
FutureRave
ed53211400
Comments as requested 2021-11-29 14:08:44 +00:00
FutureRave
ae627d5f8f
Elevators for trickshotting 2021-11-29 12:26:53 +00:00
Dss0
1088e760d4
Merge pull request #146 from diamante0018/feature/random-sv-map-rotation
[Dedicated] Add random map rotation
2021-11-22 22:20:33 +01:00
Dss0
5d72ee29a3
Merge pull request #144 from diamante0018/feature/replace-func
[Script] Add ReplaceFunc Game Script Function
2021-11-18 00:35:19 +01:00
FutureRave
daced4427b
Use auto 2021-11-16 18:33:32 +00:00
FutureRave
fb8ecf637f
Added random map rotation 2021-11-16 18:21:06 +00:00
FutureRave
f0687f8203
Use correct enum over numbers for com_error 2021-11-16 16:56:13 +00:00
FutureRave
6eaf72e86f
[Script] Small adjustment to variable type 2021-11-15 17:44:23 +00:00
FutureRave
c3dd5015e1
[Script] Fix compilation 2021-11-13 20:55:22 +00:00
FutureRave
5c69267ba3
[Script] Make index signed to keep consistency 2021-11-13 20:46:58 +00:00
FutureRave
4cb8cdfca3
[Script] Removed double check' 2021-11-13 19:12:16 +00:00
FutureRave
f101dbadec
[Script] Improve structs, add extra checks 2021-11-13 18:51:37 +00:00
FutureRave
c73794f6ea
[Script] Better comments 2021-11-13 13:32:20 +00:00
FutureRave
446c55b0b0
[Script] Fix unsigned/signed mismatch 2021-11-13 13:22:06 +00:00
FutureRave
8cd3f2cad4
[Script] Add replaceFun 2021-11-13 13:15:27 +00:00
Dss0
ff2b109aa2
Merge pull request #143 from diamante0018/quick-patch-refactor-2
[QuickPatch] Quick Refactor
2021-11-11 17:57:21 +01:00
Dss0
84a086d4cb
Merge pull request #141 from diamante0018/feature/custom-stance-scale
[Movement] Add customizable speed scale for stance
2021-11-11 17:55:52 +01:00
FutureRave
f6c973bc76
Make DvarRegisterEnum accept const char** 2021-11-11 16:47:42 +00:00
Louvenarde
6d70cd3e74 Get int now works on enum dvars 2021-11-11 16:44:54 +01:00
FutureRave
b02d7f41ae
Overlooked this detail 2021-11-11 13:40:52 +00:00
FutureRave
37e79f7c3a
Hook dvar register func 2021-11-11 13:38:51 +00:00
Louvenarde
892f521728 Added a dvar for player draw debug distance, use array for dvar enums, a bit of formatting 2021-11-11 14:00:46 +01:00
FutureRave
b77e95a846
Refactor quick patch a bit 2021-11-10 19:48:00 +00:00
Louvenarde
ecbfc74980 Merge branch 'develop' of https://github.com/XLabsProject/iw4x-client into feature/ps3hud 2021-11-08 19:04:59 +01:00
Louvenarde
b57a780051 Fixed formatting a little bit 2021-11-08 19:00:51 +01:00
Louvenarde
08054af027 Whoopsies 2021-11-08 18:05:49 +01:00
Louvenarde
b63cdc6632 Much better r_drawmodelnames and r_drawboundingboxes for every model category 2021-11-08 17:56:19 +01:00
Louvenarde
15a3f0fe04 Actually call the functions 2021-11-07 22:57:35 +01:00
Louvenarde
9d1b5cf604 Better r_draw debug functions, and relocated in renderer 2021-11-07 22:48:52 +01:00
FutureRave
7664a773e7
Have comment explain what dvar flag is being modified 2021-11-07 17:58:33 +00:00
FutureRave
1b1a53cef6 Add Module 2021-11-07 11:18:45 +00:00
FutureRave
1112eba7fa
Add customizable speed scale for stance 2021-11-07 11:09:00 +00:00
Maurice Heumann
93443050dd Disable warning 2021-11-07 09:27:01 +01:00
Jan
bc36a29991 Add "Chase" to list of contributors 2021-10-16 22:21:32 +02: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
Chase
9897f399a5
Update Gamepad.hpp 2021-10-16 12:39:25 -05:00
Jan
b25787ec68
Merge pull request #137 from diamante0018/feature/no-clip-and-ufo
[Script] Add ufo and noclip function
2021-10-16 18:53:21 +02:00
FutureRave
4d2356f824
[Script] Add optional toggle parameter to ufo/noclip 2021-10-16 17:44:22 +01:00
FutureRave
4a40a89e70
[Script] Add ufo and noclip function 2021-10-16 13:36:29 +01:00
Jan
737fab1642 Fix gamepad hold x to pickup only being applied to non dedi 2021-10-09 01:57:52 +02:00
FutureRave
e2de20c2aa
use unordered set 2021-10-04 21:33:46 +01:00
FutureRave
75a5200055
Fix bug 2021-10-04 21:07:54 +01:00
FutureRave
d948024895
Using new asm wrapper made by laupetin 2021-10-04 21:03:56 +01:00
FutureRave
133d1b43d8
New asm wrapper 2021-10-04 19:11:37 +01:00
Diavolo
7e92887ad9
set variant wrapper 2021-10-04 17:08:01 +01:00
Louve
5e52289b03
Merge pull request #130 from Laupetin/feature/fonticons
Fonticons for 2D text rendering
2021-09-23 22:50:38 +02:00
Jan
70bc28ee7b Rewrite fonticon localized string caching to fix strings being reallocated 2021-09-22 22:50:22 +02:00
Jan
e70b329614 Add support for applying the autocomplete for fonticons with the enter key
- This also closes the fonticon sequence
2021-09-21 22:08:12 +02:00
Jan
256c96d413 Make the console escape key handling support the fonticon autocomplete 2021-09-21 22:07:30 +02:00
Jan
93d28c3644 Make ESC key close the console instead of only closing the console autocomplete 2021-09-21 22:04:19 +02:00
Jan
afc097b432 Use localized strings for fonticon autocompletion 2021-09-21 20:05:30 +02:00
Jan
de107be4e0 Code clearity improvements to Fonticons patch 2021-09-20 20:40:42 +02:00
Jan
a9fa476133 Replace usages of INT_MAX with std::numeric_limits in Fonticons patch 2021-09-20 20:40:23 +02:00
Jan
41e3acb833 Replace fonticon literal characters for modifiers and separators with constants 2021-09-20 20:29:32 +02:00
Jan
b8b8608a3d FontIcon tabs vs spaces stuff 2021-09-20 18:21:38 +02:00
Jan
b36df5130b Change logic that splits chat messages with new lines to support fonticons properly 2021-09-19 15:49:12 +02:00
Jan
624daa858e Move Dedicated patches related to chat to new Chat component 2021-09-19 13:13:46 +02:00
Louve
1f148986fd
Merge pull request #125 from Rackover/fix_wrong_assets_on_ported_maps
Allow loading assets from disk even if they're already in memory
2021-09-16 10:32:17 +02:00
Dss0
a22eac5c46
Merge pull request #129 from diamante0018/netchan/fix-2
[Network] Check for invalid reliableAcknowledge
2021-09-13 23:34:34 +02:00
Diavolo
4f1e68a285
Address comments from review #1 2021-09-13 21:36:48 +02:00
Louvenarde
e83ed92ca9 Added missing carentan DLC 2021-09-12 20:36:42 +02:00
Louvenarde
fad010cee8 Merge branch 'develop_official' into fix_wrong_assets_on_ported_maps 2021-09-12 18:21:19 +02:00
Diavolo
6d50778ee5
Remove 'greater than 0xFF' check, game already checks 2021-09-12 17:37:02 +02:00
Diavolo
07f15acab0 Properly kick player from the server using net cmd 2021-09-12 16:38:24 +02:00
Diavolo
414d56adc3 Replace 0xFF with 255 for consistency 2021-09-12 16:38:10 +02:00
Diavolo
eba1762fd0 Add fields to client_t structs, might be useful 2021-09-12 16:37:52 +02:00
Diavolo
3f726d3d0d Initial Hooking of functions 2021-09-12 16:37:41 +02:00
Jan
fa40711ee8 Remove unused hud icon drawing patches from Material component 2021-09-12 15:46:47 +02:00
Jan
539b70d38b Draw Hud icons white by default 2021-09-12 15:46:24 +02:00
Jan
9ef0948e5d Remove outdated TextWidth patch from Gamepad patch 2021-09-12 15:19:07 +02:00
Jan
46a7dcdb48 Merge branch 'develop' into feature/fonticons
# Conflicts:
#	src/Components/Loader.cpp
#	src/Components/Modules/Colors.cpp
#	src/Components/Modules/Colors.hpp
#	src/Game/Functions.cpp
#	src/Game/Functions.hpp
#	src/Game/Structs.hpp
2021-09-12 15:09:36 +02:00
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
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
f17cde2791 Load fonticons from csv and alphabetically sort them 2021-09-10 21:07:45 +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
906e33ac41
Some minor style changes 2021-09-10 09:43:04 +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
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
Jan
2fe9f938af Do not display fonticon autocomplete when letter before sequence is alphanumeric 2021-09-08 19:16:08 +02:00
Jan
c4d8638674 Add user closing fonticon autocomplete with escape 2021-09-08 19:06:38 +02:00
Jan
cfefd7d220 Do not show fonticon autocorrect window when fonticon name does not start with alphabetic characters 2021-09-08 18:34:04 +02:00
Jan
5b93848ace Add support for animated icons as fonticons 2021-09-08 16:44:39 +02:00
Jan
cdf81b8ce2 Make fonticon autocorrect use chat font and scale 2021-09-08 15:53:05 +02:00
Jan
d640c4488c add fonticon modifier autocomplete and dvars to control autocomplete and hint text 2021-09-08 14:16:54 +02:00
Jan
68acf467b1 Add fonticon autocompletion inputs and improve rendering 2021-09-08 13:18:28 +02:00
Diavolo
4966a64711
Fix compilation 2021-09-08 11:19:30 +02:00
Jan
7b70a1c62c Add fonticon autocomplete for chat 2021-09-08 01:53:25 +02:00
Jan
59e1099c06 Add big fonticon modifier to multiply size by 1.5 2021-09-08 01:53:02 +02:00
Jan
6e0586a335 Add console fonticon autocomplete 2021-09-08 00:40:52 +02:00
Jan
4497b991be Fix characters or cursor vanishing when cursor is in escaped color code that is expanded 2021-09-07 16:45:59 +02:00
Jan
26f2403418 Move playername related patches from TextRenderer to PlayerName component 2021-09-07 15:06:58 +02:00
Jan
1821d9072e Use TextRenderer to strip material text icons from dedicated server names and chat messages 2021-09-07 14:51:36 +02:00
Jan
967eeb2989 Update playername cleaning to clean fonticons and enforce 3 character minimum serverside 2021-09-07 14:33:36 +02:00
Jan
ccefbeb885 Rename r_colorBlindTeams to r_colorBlind to be compatible to future colorblind patches 2021-09-07 13:53:56 +02:00
Jan
3266c5790f Move remaining patches from color component to text renderer component 2021-09-07 13:15:44 +02:00
Louvenarde
a721818cf6 Better techswap for trees 2021-09-06 21:45:04 +02:00
Louvenarde
cbc980e1c4 Add log print for material state copy 2021-09-06 19:24:48 +02:00
Jan
fe2f3350fe Fix missing new line handling for TextRenderer 2021-09-06 17:49:36 +02:00
Jan
de96cb4b16 Hook R_TextWidth to properly account for fonticons and material icons 2021-09-06 17:02:41 +02:00
Jan
10964ba059 Do not render fonticons if cursor is inside the fonticon text and properly render cursor 2021-09-06 17:02:17 +02:00
Jan
69352103b8 Add ability to flip fonticons either vertically and horizontally or both with the suffixes +h +v +hv 2021-09-06 14:46:30 +02:00
Louvenarde
ad9222a3ca Better techset matching 2021-09-06 01:08:02 +02:00
Louvenarde
1f89c55a78 whoopsie 2021-09-06 01:07:53 +02:00
Louvenarde
3d24252a16 Register dvar 2021-09-06 00:25:24 +02:00
Louvenarde
27e9a22e43 Allow loading assets from disk even if they're already in memory 2021-09-06 00:20:16 +02:00
Jan
089d3c9180 Swap FontIcon finding method from DB_FindXAssetHeader to DB_FindXAssetEntry 2021-09-05 17:04:35 +02:00
Jan
9cb8a02546 Only draw font icons when material exists 2021-09-05 15:21:11 +02:00
Jan
c30bb4f93c Finish reimplementation of 2D text renderer 2021-09-05 14:50:56 +02:00
Jan
5020d82f68 Add conceptional fonticon in text rendering 2021-09-05 02:25:24 +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
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
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
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
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
ac1ade1976 Fix release mode issues with R_TextWidth_Hk 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
cc9a2b0bac Make dvar set methods also set the latched values 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
feef738c61 Make all material text icons (Hud icons) have white tint so they are not affected by color codes 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
8b43ba490c Fix width calculation errors in R_TextWidth reimplementation 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
57e305277b Consider material text icons when calculating text width 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
Jan
ea8c35e063 Reformatted gamepad patch 2021-08-30 16:09:51 +02:00
Jan
d4d1520f65 Implement cod native controller support like xinput value retrieval 2021-08-30 16:09:51 +02:00
Jan
64fdd04343 Rename XInput patch to Gamepad 2021-08-30 16:08:48 +02:00
Diavolo
5db5f707a9
Remove name check 2021-08-29 22:13:03 +02:00
Diavolo
9a1ab2c660
Check for dvar type 2021-08-29 22:09:45 +02:00
Diavolo
89165a96b4
[Dvar] Use set raw method on dvars by default 2021-08-29 17:41:21 +02:00
Diavolo
01f8f36e30
Disable anticheat for good 2021-08-28 22:33:14 +02:00
Dss0
52748b4cbe
Merge pull request #113 from Laupetin/fix/2d-material-text-icons
Fix 2d material text icons
2021-08-21 13:22:18 +02:00
Jan
aaace9db35 Do not only strip material text icons from server names but for all server attributes that are displayed in the server list 2021-08-21 12:35:32 +02:00
Dss0
002dfa77c4
Merge pull request #114 from Laupetin/fix/invalid-playercounts
Ignore servers in serverlist that specify an invalid player count
2021-08-21 12:07:49 +02:00
Jan
d44039e82e Ignore servers in serverlist that specify an invalid player count 2021-08-21 00:18:34 +02:00
Jan
f3c2b999eb Strip material text messages from server names 2021-08-20 18:50:57 +02:00
Jan
a7a8207a34 Strip material text icons from chat messages 2021-08-20 18:50:53 +02:00
Jan
e84e0774a6 Fix material text icons with some techsets causing issues when rendering 2021-08-20 18:49:09 +02:00
Diavolo
933f00017f
Add space after push 2021-08-19 17:28:22 +02:00
Diavolo
0b85b4cefc
Order of names 2021-08-19 12:04:49 +02:00
Diavolo
fc73f4cd65
Fix style and slowmoStub 2021-08-19 11:45:40 +02:00
Dss0
e43206fbcc
Merge pull request #108 from Rackover/sound_mutex_fix_fix
Fix sound mutex fix
2021-08-16 21:24:39 +02:00
Dss0
44eded4e6d
Merge pull request #109 from Rackover/0_6_2_prep
Added DLC#9 (Classics pack 3)
2021-08-16 21:24:08 +02:00
Louvenarde
89254936e4 Whoops 2021-08-16 18:53:52 +02:00
Louvenarde
af9bb8b805 Added DLC#9 (Classics pack 3) 2021-08-16 18:53:33 +02:00
Dss0
1888e4c357
Merge pull request #107 from zweeej/SetSlowMotion-fix
slowmofix
2021-08-16 16:06:49 +02:00
zweej
ed62d96690 SetSlowMotion Fix #2 2021-08-16 02:01:21 +02:00
Louvenarde
f8c177085c Address review, clean up code 2021-08-15 14:10:13 +02:00
zweej
de0b8adc82 slowmofix 2021-08-15 00:10:42 +02:00
Louvenarde
0f8acb940e Better dvar handling 2021-08-14 13:51:22 +02:00
Louvenarde
cbfdde2029 Slight refactor, tweaked the acceleration value and deadzones a little bit 2021-08-14 10:38:00 +02:00
Louvenarde
ea926dfe67 Merge branch 'develop_official' into feature/xinput 2021-08-14 00:36:42 +02:00
Louvenarde
8e4c102984 Sound mutex workaround 2021-08-14 00:27:19 +02:00
Jan
99b5da72f6 Fix codol dynentity patch not respecting that the return type should be BOOL so 32bit instead of bool 8bit 2021-08-03 21:36:57 +02:00
Dss0
a52f2e9f32
Merge pull request #101 from Rackover/colordblind_team_colors
colorblind friendly team colors!
2021-08-01 18:01:26 +02:00
Diavolo
320412551b
Added comments 2021-08-01 14:31:32 +02:00
Diavolo
1bd4bcba05
Color dvar 2021-08-01 14:22:42 +02:00
Diavolo
a5680fdc61
Color dvar 2021-08-01 13:30:11 +02:00
Diavolo
b9087698df
forgot about alpha value 2021-08-01 10:39:40 +02:00
Diavolo
de0c3b2762
Color blind dvars 2021-08-01 10:35:59 +02:00
Diavolo
7d8f01b223
The game does not display this character 2021-07-31 19:31:37 +02:00
Diavolo
e2d3f0aa35
Finally a working stub 2021-07-31 19:28:08 +02:00
Diavolo
a3d9c9bd75
Remove asm instruction I shamelessly copied 2021-07-29 10:47:16 +02:00
Diavolo
8b4f177fcc
Minor 2021-07-29 10:11:27 +02:00
Diavolo
22f33921b6
Use push ecx is not destroyed 2021-07-28 21:44:17 +02:00
Diavolo
4db1c1b0a9
Remove function again 2021-07-28 19:15:47 +02:00
Louvenarde
2dd703c037 Another zones::version specific to the map 2021-07-28 18:49:39 +02:00
Louve
9de63a3772
Merge branch 'develop' into skip_specops_entities 2021-07-28 18:32:45 +02:00
Edoardo Sanguineti
e025f3420e
Removed unnecessary spaces 2021-07-28 14:57:13 +02:00
Diavolo
b728729ceb
Correct one mistake 2021-07-28 14:40:43 +02:00
Diavolo
ecf44c8580
Jump hook 2021-07-28 13:48:46 +02:00
Diavolo
ff50ecfddf
2 2021-07-28 09:35:21 +02:00
Diavolo
86a2159c17
Color dvar 2021-07-28 09:33:49 +02:00
Louvenarde
234c58161e colorblind friendly team colors! 2021-07-28 01:07:27 +02:00
Diavolo
ef1a902381
Changing the style to PascalCase 2021-07-21 18:44:58 +02:00
Diavolo
6197b0f5be
Removed unused/replaced function 2021-07-18 22:54:46 +02:00
Diavolo
f09305c315 Merge branch 'develop' of https://github.com/diamante0018/iw4x-client into develop 2021-07-18 22:47:35 +02:00
Edoardo Sanguineti
98272e4187
Indentation 2021-07-18 22:02:05 +02:00
Diavolo
97032e9d46 Quit f 2021-07-18 20:51:33 +02:00
Diavolo
a6b17cf64d Better quit_hard 2021-07-18 17:36:01 +02:00
Dss0
26d8a5885b
Merge pull request #94 from diamante0018/develop
New Premake option. Improved asm
2021-07-18 12:32:37 +02:00
Diavolo
ac2302b138 Better asm block 2021-07-17 11:31:46 +02:00
Louvenarde
781fb5b4f7 RCon hotfix to prevent listen servers from being stuck on Awaiting challenge... 2021-07-17 09:49:58 +02:00
Dss0
f534a09e35
Merge pull request #91 from Rackover/fix_rcon_party_lobby
Fix rcon not working properly on party servers
2021-07-15 23:15:11 +02:00
Louvenarde
9eb9273010 Disable rcon log by default 2021-07-15 23:12:11 +02:00
Louvenarde
5162c0c381 Log RCON on demand with a dvar 2021-07-15 21:45:46 +02:00
rackover
2930fef177 Unless explicitely defined, do not generate iw4x specific zones 2021-07-10 11:30:35 +02:00
Louve
434d0e93c9
Merge branch 'develop' into shellshock_parsing 2021-07-06 10:11:18 +02:00
rackover
54df979c2b Add comments, improve clarity 2021-07-05 21:23:57 +02:00
rackover
e99b642cec Whoops, forgot that print 2021-07-05 00:29:53 +02:00
rackover
6ab6f2cd62 Remove extra fluff & useless comments 2021-07-05 00:28:50 +02:00
rackover
2ad1d4a682 Fix rcon not working properly on party servers 2021-07-04 20:28:23 +02:00
rackover
993fe28a37 Wip skip specops entities part 2 2021-07-04 18:44:25 +02:00
rackover
d563379ab8 Do not check for Zones::Version 2021-07-02 11:49:24 +02:00
rackover
daeaf2e952 Add hooks for ParseShock 2021-07-02 11:44:57 +02:00
rackover
78eadd4eb1 WIP entity skipping 2021-07-02 11:43:04 +02:00
GEEKiDoS
2626c75926 Fix 461 weapon loading, add vision file lookup function 2021-07-02 17:34:03 +08:00
rackover
28ced14dd9 Parse shellshock for 461+ CODO maps (only for awp_arena so far ?) 2021-07-01 23:16:31 +02:00
GEEKiDoS
3785322171 Generate IWI instead of PGM
Also remove PGM loading code
2021-06-29 21:06:50 +08:00
GEEKiDoS
ecc21b4ac2 Add pgm read code for tuning fonts easier 2021-06-29 11:59:15 +08:00
GEEKiDoS
d222334313 Add support for building custom fonts 2021-06-29 02:25:23 +08:00
Emosewaj
6145d14fab
Don't rely on GitHub redirect, use new URL 2021-06-26 00:28:01 +02:00
GEEKiDoS
440ae1d9d7 Some change for loading codo maps 2021-06-12 07:58:12 +08:00
GEEKiDoS
6c13f4fb45
Fix compile 2021-06-07 21:24:28 +08:00
rackover
cd2d5f616e Corrected wc_unlit matching and a few others 2021-05-12 14:35:32 +02:00
rackover
3157f60e6b Better deadzone handling for view / movement 2021-05-09 18:56:10 +02:00
rackover
7f8995cf3e Fix all killstreaks (but thermal on ac/cg) 2021-05-09 01:24:37 +02:00
rackover
9f6b5c6214 Slap a bunch of DVars to make every parameter tweakable 2021-05-04 22:12:07 +02:00
rackover
0354dd985e Reduce sensitivity when aiming down sights 2021-05-04 21:45:47 +02:00
rackover
bac2afa028 Overriding mouse is much better than overriding client angles 2021-05-04 18:11:16 +02:00
rackover
1df84f7536 Allow the user to use their keyboard even if the gamepad is plugged in 2021-05-04 15:54:12 +02:00
rackover
b3adacb71d Gamepad support for menus 2021-05-04 15:47:46 +02:00
rackover
04ef6c3fbe Vibrate the controller on start 2021-05-04 15:42:22 +02:00
rackover
fe5572c179 Do not use C++20 std:lerp 2021-05-04 13:04:05 +02:00
rackover
123ec69910 Better sensitivity management & don't spam button command 2021-05-02 16:13:33 +02:00
rackover
784c4c8372 Bit of cleanup + horizontal gamepad view acceleration 2021-05-02 13:13:13 +02:00
Louve
a4ebcbeb60
Do not interrupt gameplay for GSC errors
Make iw4x developers life easier by not freezing their game up for GSC errors in basegame GSCs 🗡️ 
I understand why this feature exists, but it makes developing for iw4x impossible unless you comment it out - so maybe it doesn't belong on graphical clients.
2021-05-02 11:53:58 +02:00
rackover
332232b88f Merge branch 'develop' of https://github.com/XLabsProject/iw4x-client into feature/xinput 2021-05-02 11:47:33 +02:00
rackover
462148a4b0 Fixed signed/unsigned masquerade 2021-04-28 20:23:56 +02:00
rackover
368e339efc Aggressive material replacement 2021-04-28 19:05:11 +02:00
rackover
791bd35c53 It's okay if we don't write every asset we had in memory 2021-04-28 19:05:02 +02:00
rackover
63ccf0e2bd draw model names 2021-04-28 19:04:54 +02:00
rackover
ee5f6a70c0 Sorted techset match-ups, slightly more sane techset matching, still not perfect though! (mp_convoy won't work unless the createart.gsc is smashed) 2021-04-21 23:42:57 +02:00
rackover
3e9b05d8ce Load bounce sounds, better soundalias structure 2021-04-13 19:54:09 +02:00
rackover
1fe241c7e5 Load weapon sounds with zonebuilder 2021-04-13 10:29:17 +02:00
rackover
d98cfb55cb Fix typos in WAV loading and streamed sound path 2021-04-13 10:29:12 +02:00
rackover
eebd0ae1da Cleanup & handle flag conversion in iw3xport 2021-04-12 00:44:11 +02:00
rackover
eebc48ab7c Set correct type flags when loading soundaliases (this should be in iw3xport, i'll move it later) 2021-04-12 00:44:03 +02:00
rackover
7dbb258a47 Correct array allocation for loaded sounds 2021-04-12 00:43:55 +02:00
rackover
e19409f550 Zonebuilder builds sounds & loaded_sounds now 2021-04-12 00:43:38 +02:00
rackover
4db236c852 Additional techset matching 2021-04-12 00:43:29 +02:00
rackover
d6394f0c69 weapon zonebuilding fix? 2021-04-07 15:17:56 +02:00
rackover
a2c8705868 Do not overwrite a techniqueset with another, the game really doesn't like taht 2021-04-06 21:16:44 +02:00
rackover
ace08107fe Only read clipmap models if we have a clipmap model count 2021-04-06 21:16:37 +02:00
rackover
aa85b95740 Added more techset matching 2021-04-06 21:16:04 +02:00
rackover
aa9f98b0e7 Fix warnings, fix post-rebase issues 2021-04-05 18:13:00 +02:00
rackover
fe2e2f1b3c Read clipmap from clipmap file (already converted) instead of converting it on the fly 2021-04-05 17:29:57 +02:00
rackover
953dcd2057 Material error formatting using const char* instead of string 2021-04-05 17:29:57 +02:00
rackover
22d63bf3b6 Group dvars to draw triggers/trees 2021-04-05 17:29:56 +02:00
rackover
529e44ac51 Fixed clipmap trigger brushmodel conversion (correct indexing) 2021-04-05 17:29:55 +02:00
rackover
d610e85176 C-Compliant clipmap trigger conversion 2021-04-05 17:29:53 +02:00
Jan
e9f78eedb7 Add r_drawTriggers debugging dvar to draw triggers on the map 2021-04-05 17:29:49 +02:00
rackover
fe8571a0c6 Enhanced material matching for iw3 maps 2021-04-05 17:25:53 +02:00
rackover
2301892d1e More detailed sampler error message 2021-04-05 17:25:52 +02:00
rackover
a2832d606c Added r_drawSceneModelCollisions 2021-04-05 17:25:51 +02:00
rackover
f4838994f8 Small improvement to clipmap trigger generation code 2021-04-05 17:25:50 +02:00
Jan
b21e57ccc2 Add r_drawSceneModelBoundingBoxes debugging dvar to draw dobj and scene model bounding boxes 2021-04-05 17:25:49 +02:00
rackover
ff8e321836 Fix soundalias building for zonebuilder 2021-04-05 17:25:48 +02:00
rackover
bb979639d6 Hook triggers 2021-04-05 17:25:47 +02:00
OneFourOne
c64f3767d5
[Dvar] Unlock camera_thirdPersonCrosshairOffset 2021-03-19 00:02:48 +00:00
Maurice Heumann
8cb1fb1418 Yes 2021-02-16 10:38:22 +01:00
OneFourOne
c105b8e782
[Credits] Add contributor + Fix 2021-02-07 17:26:47 -05:00
Rackover Xiaochad
49a2fc8b70 Fix 332+ maps aswell as 359+ 2021-02-07 11:54:15 +01:00
Rackover Xiaochad
0c462c1152 Fix device recovery issues on CODO maps >359 2021-02-06 21:30:47 +01:00
INeedBots
2038ba5e8b [XInput] Added buttons 2021-01-03 02:33:12 -06:00
INeedBots
198a39c3db [XInput] RJoyStick working, need to do vanilla acceleration and sensitivity 2021-01-03 00:32:58 -06:00
INeedBots
16c6d11916 [XInput] Completed analog movement on server side 2021-01-02 19:06:40 -06:00
INeedBots
ef76acd8b4 [XInput] Stubbed user movement apply, make sure reading 8 bits for movement data 2021-01-02 17:37:46 -06:00
INeedBots
d123ade36f [XInput] Added sending movement components 2021-01-02 16:48:48 -06:00
INeedBots
a737dd16e4 [XInput] Got lJoystick working 2021-01-02 13:42:52 -06:00
INeedBots
01dc00bd7f [XInput] Polling for input 2021-01-02 01:17:37 -06:00
INeedBots
39c14fd775 [Modules] Added XInput stub module 2021-01-02 00:49:45 -06:00
INeedBots
28df9b651a [QuickPatch] Added G_Antilag dvar 2020-12-22 22:15:48 -06:00
OneFourOne
b09db145be
add contributors to credits 2020-12-22 16:16:14 -05:00
OneFourOne
7da79cc1ff
Add contributors to credits 2020-12-22 15:12:23 -05:00
OneFourOne
82bef71abe
Remove crash-helper 2020-12-22 15:00:15 -05:00
INeedGames
1f570fae79 Module is a keyword in c++20 2020-12-19 17:00:07 -06:00
INeedGames
75caede0b2 [Script] Added hitch warning 2020-12-19 16:50:51 -06:00
INeedBots
f61e770996 [Script] Fixed compiling on C++20 again 2020-12-16 21:49:26 -06:00
INeedBots
74ac166885 [Download] Register HTTP GSC functions to prevent script compile errors 2020-12-16 11:45:28 -06:00
INeedBots
442980c056 Merge branch 'develop' into runtime_errors 2020-12-10 03:32:23 -06:00
INeedBots
9066b5fc05 Merge remote-tracking branch 'iw4x/develop' into develop 2020-12-09 14:58:09 -06:00
INeedBots
fcdfb563e6 [News] Remove broken updater 2020-12-09 14:57:34 -06:00
INeedBots
5f887a0364 [Maps] Download DLC by opening link 2020-12-09 14:57:01 -06:00
INeedBots
1ac9fadc57 [Changelog] Updated changelog location 2020-12-09 14:56:19 -06:00
Dss0
730db584fb
Merge pull request #53 from ineedbots/develop
Fixed Compile errors on C++20, still compiles on C++17
2020-12-09 21:28:46 +01:00
Dss0
a753159113
Merge pull request #51 from OneFourOne/develop
disable steam for now + add custom title menu
2020-12-09 21:28:12 +01:00
INeedBots
eeb70a7da4 Fixed compile errors on C++20 2020-12-09 13:13:34 -06:00
INeedBots
096992672b Merge branch 'develop' into runtime_errors 2020-12-09 11:25:33 -06:00
INeedBots
7d8050a7c6 [Script] Changed .contains to .count so it doesn't need C++20 2020-12-09 11:06:26 -06:00
OneFourOne
e7986db81c
add popup for custom title 2020-12-08 21:50:14 -05:00
INeedBots
9f281ba3a1 [Script] Fixed indents 2020-12-08 16:18:09 -06:00
INeedBots
1176a15e71 [Script] Added Script Runtime Error printing when in Developer 2020-12-08 16:14:47 -06:00
Dss0
8d1b06203e
Merge pull request #46 from ineedbots/bot_scr
Bot GSC functions for bots pressing buttons and moving + fix for node system related crash
2020-12-05 02:41:08 +01:00
INeedBots
0bb12a9783 [Script] Added ScriptStorage, GetSystemTime, PrintConsole and Exec GSC Functions 2020-12-04 16:42:47 -06:00
Dss0
5f221e77cd
Merge pull request #48 from Joelrau/some-changes
Some changes
2020-12-04 22:39:06 +01:00
Dss0
767d3b3a64
Merge pull request #47 from OneFourOne/develop
unlock cg_fovscale
2020-12-04 22:33:56 +01:00
Dss0
98ccc64a5d
Merge pull request #42 from xerxes-at/develop
Unlocked safeArea_horizontal and safeArea_vertical
2020-12-04 22:33:06 +01:00
Joelrau
eb897f9a76 [Node] Use clcState instead of CL_IsCgameInitialized
Game::CL_IsCgameInitialized() only returns true when the player is actually in the game. With this clcState returns 0 when in main menu so if clcState isn't 0 we will return.
2020-12-04 23:20:15 +02:00
Joelrau
a9b7cb384f [Command] Reduce the duration of toasts when successfull
I felt like 3 seconds is a little too long, especially when toggling noclip on and off repeatedly.
2020-12-04 23:17:18 +02:00
OneFourOne
a21aaa2e22
add cg_fovscale thanks to @shit-ware 2020-12-04 16:04:50 -05:00
INeedBots
b3e8ce95b4 Merge branch 'node_crash_fix' into bot_scr 2020-11-17 01:13:59 -06:00
INeedBots
e5a45023f2 [Node] Fragment the nodeListResponse send messages 2020-11-17 01:06:02 -06:00
INeedBots
1b9748a703 [Bots] Readded bot name numbering when no bots.txt is found 2020-11-14 03:37:58 -06:00
INeedBots
e63b9591ae [Bots] Fixed wanring 2020-11-14 03:29:53 -06:00
INeedBots
4c3ca3ca5c [Bots] Use static 2020-11-14 03:28:58 -06:00
INeedBots
e1c534fc50 [Bots] Added GSC Functions
- SetPing; Sets the ping of only a bot client
 - isBot; Returns true if the client is a bot
 - botStop; Bot stops all buttons and movement
 - botWeapon; Bot changes to the weapon told
 - botMovement; Bot moves in the given direction
 - botAction, Bot presses the given buttons
2020-11-14 03:20:56 -06:00
INeedBots
de12280d55 [Bots] Added the bot user command handle loop 2020-11-14 03:05:00 -06:00
INeedBots
992a23d713 [Bots] Added helper functions 2020-11-14 02:58:05 -06:00
INeedBots
b92ee0880e [Bots] Added structs needed for GSC bot commands 2020-11-14 02:47:35 -06:00
INeedBots
0df43296f8 [Bots] Stopped default behaviour of the bots 2020-11-14 02:44:59 -06:00
INeedBots
7aaa64f02d [Network] Stops buffer overflow and crash at NET_DeferPacketToClient
- Fixes #17
2020-11-14 02:17:20 -06:00
VVLNT
60b50104af [QuickPatch] Fix crash in G_GetClientScore
Fixed the crash when calling G_GetClientScore before the game was initialised, which could also cause IW4x's HTTP server to stop working.
2020-11-13 09:09:29 +02:00
Dss0
966ac99f7b
Merge branch 'develop' into IntermissionTime 2020-11-12 23:16:08 +01:00
Xerxes
2aad192335 Unlock the safeArea adjusted variats too 2020-10-31 18:55:32 +01:00
Xerxes
42058ffe00 Unlocked safeArea_horizontal and safeArea_vertical
This probably is only useful to ultra wide users.
2020-10-31 00:08:21 +01:00
Joelrau
a2a303c3d0 [Client] file functions now use FileSystem instead of Game functions
Updated accoding to momo5502's request.
2020-09-02 13:02:41 +02:00
Joelrau
49c2ccd700 [FileSystem] DeleteFile returns true or false now
FileSystem::DeleteFile: function returns the boolean from Game::Remove(<path>);
2020-09-02 13:02:41 +02:00
Joelrau
272addfd4f [Maps] Changed dvar 'r_specularCustomMaps' default value to false 2020-09-02 13:02:41 +02:00
Joelrau
4438205a01 [QuickPatch] Added dvars 'g_playerCollision' and 'g_playerEjection'
g_playerCollision: Flag whether player collision is on or off ( note: enemy nametags are not visible and crosshair color doesn't change when looking at an enemy )
g_playerEjection: Flag whether player ejection is on or off

Also added: Ignore call to print 'Offhand class mismatch when giving weapon...
2020-09-02 13:02:41 +02:00
Joelrau
b366f5cb4f [Client] Added new component 'Client'
-Client Stuff-

Functions:
+ fileWrite(<filepath>, <string>, <mode>)
+ fileRead(<filepath>)
+ fileExists(<filepath>)
+ fileRemove(<filepath>)

Methods:
+ self getIp()
+ self getPing()

Commands:
+ NULL
2020-09-02 13:02:41 +02:00
Joelrau
d958a0675d [Script] Added new functions and enabled methods 2020-09-02 13:02:41 +02:00
Joelrau
7a85eb9c9c [Maps] Added dvar 'r_specularCustomMaps'
+ dvar 'r_specularCustomMaps' (Allows shaders to use phong specular lighting on custom maps)
2020-09-02 13:02:41 +02:00
Joelrau
e8a9dc56b4 [Zones] Show missing soundaliases in debug builds 2020-09-02 13:02:41 +02:00
Joelrau
4bdde19dba [Dvar] Added register float option 2020-09-02 13:02:41 +02:00
Dv4L
9d8fe54681 Reverted these modifications.. 2020-08-08 23:13:46 +02:00
Dv4L
c9a75a71ba - Make mod-specific stats toggleable via a dvar and disable it by default
- Disable D3D9Ex by default as it causes the client to not vid_restart correctly for many people
- Add more guids from shitty repacks that include a guid
2020-08-08 12:19:55 +02:00
Dv4L
6381826d1b More fixes to image decryption check. 2020-07-19 16:31:52 +02:00
Dv4L
ce4514d40a - Fix for the game trying to decrypt all read files instead of just encrypted images, also fixes a crash when loading mods due to the game trying to decrypt the gsc files.
- Ugly fix for the game crashing with the latest version of steam (credits to IceNinjaman).
2020-07-12 22:27:56 +02:00
RaidMax
e0cb39ceaa Fix issue that causes crash when retrieving client score on status generation if clients are in certain states 2020-05-11 13:33:08 -05:00
Maurice Heumann
dd42a06151 [MapDump] Introduce proper map dumping 2019-12-28 14:35:00 +01:00
Maurice Heumann
1424283f7e [News] Better wiki page 2019-12-26 13:46:40 +01:00
H3X1C
02907c1f97 [QuickPatch] Removed undesired save flag 2019-12-26 12:35:05 +00:00
Maurice Heumann
6b3ff8fd00 [FileSystem] Correctly free iwds 2019-12-26 13:24:48 +01:00
Maurice Heumann
919462cc42 [Exception] Fix exception handling 2019-12-26 02:16:43 +01:00
H3X1C
c58797abc1 [QuickPatch] Datatype changed to float, correct flags added and fixed small typo 2019-12-26 00:11:52 +01:00
H3X1C
b662075620 [QuickPatch] Add intermission time dvar 2019-12-26 00:11:52 +01:00
0x90
50e93d7f2f [Download] Improve client downloads
This is a (partial) fix for issue #14
2019-12-26 00:07:04 +01:00
Maurice Heumann
e311e77861 [Download] Small optimizations 2019-12-25 21:53:15 +01:00
H3X1C
6a38fa01c5 [QuickPatch] Datatype changed to float, correct flags added and fixed small typo 2019-12-23 17:16:34 +00:00
H3X1C
507994cd5b [QuickPatch] Add intermission time dvar 2019-12-23 15:58:42 +00:00
Maurice Heumann
e59bde4340
Merge pull request #11 from IW4x/feature/add-guid-validation
Generate new key if player guid has been shared.
2019-10-06 10:03:22 +02:00
RektInator
7fbeacbe51 [Menus] Rollback old menu code 2019-10-03 19:23:06 +02:00
RektInator
28721a9742 [Auth] Generate new key when key is invalid. 2019-10-03 09:16:26 +02:00
RektInator
e2965aeb9a [Auth] Add GUID validation 2019-10-03 09:10:00 +02:00
RektInator
40099cdcbe Merge branch 'develop' into feature/codo-zones 2019-10-03 07:59:32 +02:00
RektInator
530d773d49 [Zones] Added support for FF version 448, 460, 461 2019-10-02 08:08:11 +02:00
RektInator
b97610facb [Stats] Add support for mod-specific stat files 2019-10-01 21:54:32 +02:00
/dev/urandom
23e9aa7ac0
Merge branch 'master' into develop 2019-09-17 18:47:21 +00:00
momo5502
2f0ae8f842 [General] Adjust project for opensourcing 2019-09-17 18:47:20 +00:00
momo5502
4d53b29fec [QuickPatch] Fix mouse lags 2019-03-10 22:01:56 +01:00
RektInator
4ce9a1b007 [QuickPatch] quit_hard for hard quitting purposes 2019-02-17 01:12:11 +01:00
TheApadayo
07278ebbfa [ZoneBuilder] Add support for iw3 techsets, decl, vs, and ps 2019-02-01 16:16:42 -05:00
TheApadayo
c845572be5 Merge branch 'feature/assetinterface-weapon' into 'develop'
Add weapons to zonebuilder
2019-01-25 00:59:05 +01:00
TheApadayo
a41e3fd012 Merge branch 'feature/custom-menulists' into 'develop'
Fix menus in Fastfiles and allow custom menu definitions via fastfile
2019-01-25 00:58:37 +01:00
RektInator
e596dd3848 Added ultrawide patch 2019-01-23 01:36:31 +01:00
TheApadayo
128ef8016b [Menus] Reduce complexity in the system for loading menus (+1 squashed commits) 2019-01-22 19:29:30 -05:00
RektInator
b1971c907c Updated dvar description 2019-01-21 00:51:16 +01:00
RektInator
a714924d20 Merge branch 'develop' of https://github.com/IW4x/iw4x-client into develop 2019-01-21 00:45:08 +01:00
RektInator
3130dd37e7 Added bounce dvar 2019-01-21 00:44:49 +01:00
TheApadayo
7c952eb548 [General] Fix warnings 2019-01-19 11:48:19 -05:00
TheApadayo
831291bdfe [ImenuDef_t] Add logging to menus and fix a bug in clearing the array pointer for float expression entries 2019-01-19 11:28:36 -05:00
TheApadayo
ad5a58462f [Menus] Properly load menus
Overridden menus are just loaded in iw4x_code_post_gfx_mp and new ones are added to ui_mp/iw4x.txt
2019-01-17 18:39:01 -05:00
TheApadayo
8080700432 [Menus] Rewrite how menus are loaded and used to support custom menu lists 2019-01-17 16:33:26 -05:00
TheApadayo
4dc912af3e [Menus] Start working on loading custom menus
Currently doesn't work to override menus so I'm going to have to rewrite some stuff
2019-01-16 23:52:42 -05:00
TheApadayo
b120b10197 [ZoneBuilder] Check for spaces in asset name (This one took me about 4 hours of debugging to realize the source csv had a bunch of whitepace in it). 2019-01-16 12:15:13 -05:00
TheApadayo
5db668cb15 Merge branch 'develop' into feature/assetinterface-weapon
# Conflicts:
#	src/Components/Modules/Exception.cpp
2019-01-16 01:04:43 -05:00
TheApadayo
7e40caefd4 Merge branch 'feature/anticheat-process-suspention' into 'develop'
Detect process suspension on startup to inject dlls
2019-01-16 06:59:04 +01:00
TheApadayo
4572425f00 [IWeapon] Write effects to fastfile as well. 2019-01-15 23:09:50 -05:00
TheApadayo
59ef8edbe2 [ITracer] Add tracer writing support 2019-01-15 21:48:34 -05:00
TheApadayo
8d4fa4c7ac [IWeapon] Fix a couple of alignment issues 2019-01-15 21:25:40 -05:00
TheApadayo
43456aedbd [ZoneBuilder] Fix one small thing in weapon writing, change how we search for assets in common_mp as using DB_EnumXAssets was missing some of them, and allow the weapon loading function see zonebuilder assets 2019-01-15 19:40:57 -05:00
TheApadayo
5eb9996aea [IWeapon] More writer fixes for weapons 2019-01-13 13:19:18 -05:00
momo5502
b3ec628a33 [Exception] Remove debug minidump command 2019-01-12 17:53:33 +01:00
TheApadayo
a2b90deefe [IWeapon] First working version of interface. Successfully writes and verifies usp_mp 2019-01-11 14:20:48 -05:00
sr0
6ee814cef5 [Friends] 2019-01-10 21:18:18 +01:00
/dev/root
d01d27a3e9 [News] Update discord link 2019-01-10 10:24:22 +01:00
/dev/root
6176d26fbb [ServerInfo] Add host info to /info 2019-01-09 21:40:56 +01:00
TheApadayo
7167836964 [General] Fix compiler complaining about using inline assembly inside of a lambda.
Apparently that isn't allowed anymore? Go figure.
2019-01-08 19:15:10 -05:00
TheApadayo
b1966a3d2d [AssetInterfaces] Start working on weapon asset handler 2019-01-08 19:09:14 -05:00
/dev/root
8e69de5083 [News] Add UIScript visitDiscord 2019-01-07 18:09:48 +01:00
TheApadayo
13cfe567a3 [AntiCheat] Correctly call startup time check so that it still runs if the AntiCheat is bypassed. 2019-01-06 14:02:17 -05:00
TheApadayo
69de8c3ac1 [AntiCheat] Remote extra line from debugging. 2019-01-06 14:00:13 -05:00
TheApadayo
f3b893f233 [AntiCheat] Detect if process is being started suspended in order to inject a dll to disable the anti cheat 2019-01-06 13:56:06 -05:00
TheApadayo
93d02d6f56 [AntiCheat] Make unreachable code useful again 2019-01-06 13:15:20 -05:00
momo5502
cdd64ec793 [Node] Don't stop frame work for dedis 2018-12-28 18:45:36 +01:00
RektInator
a1385f0a33 [Renderer] Enhance material debug information 2018-12-25 22:47:10 +01:00
RektInator
e3151fb155 [FastFiles] Fixed compiler warnings 2018-12-24 22:19:40 +01:00
RektInator
e79350e586 [FastFiles] Fixed XSurface count when loading fastfiles
[Renderer] Added logging for broken materials
2018-12-24 21:42:39 +01:00
momo5502
4fa89722a2 [General] Use const string references 2018-12-17 15:34:28 +01:00
/dev/root
70a60517ee [Download] Change json 2018-12-03 22:10:55 +01:00
/dev/root
3f9f58d5f6 [Download] Add serverlist info 2018-12-02 19:04:04 +01:00
momo5502
077d798e6b [Maps] Set download delay to 10 seconds 2018-11-25 23:19:21 +01:00
momo5502
8872a36f82 [UIFeeder] Fix feeder highlighting 2018-11-25 20:23:29 +01:00
momo5502
41df24f249 [Maps] Add normal indices to face definitions 2018-11-21 23:22:20 +01:00
momo5502
4da5be8422 [Maps] Dump vertex normals to wavefront objects 2018-11-21 23:18:24 +01:00
momo5502
b2cb5f7394 [QuickPatch] Fix invalid name check 2018-11-19 21:29:16 +01:00
momo5502
3a9d8da1f1 [Maps] Fix map dumping 2018-11-19 20:35:25 +01:00
momo5502
4f8820587d [Download] Temporarily disable the dvar check to fix startup
The dvar system is not yet active at that point, so the client will crash
2018-11-04 20:16:14 +01:00
TheApadayo
e11e4ae5a9 [Download] Add Dvar for protection and also properly shutdown server even when running on a client 2018-10-22 18:58:09 -04:00
/dev/urandom
46a340af3d [Download] Enable when running as client.
This fixes mods being unusable in private matches.
2018-10-22 18:09:39 -04:00
momo5502
86819658f7 [QuickPatch] Fix party-join vulnerability 2018-10-13 22:59:32 +02:00
momo5502
7c768b941f [Bans] Add unbanclient command 2018-10-13 17:37:37 +02:00
momo5502
b2c94a7be3 Revert "[DHT] Implement DHT" 2018-10-09 10:53:15 +02:00
momo5502
537cbe12f0 Revert "[DHT] Integrate the protocol into the game's network infrastructure" 2018-10-09 10:53:04 +02:00
RektInator
b0a41328ed [General] Added VMProtect libraries (I own a license, feel free to DM), Fixed empty name vuln, Fixed javelin glitch. 2018-07-17 14:30:29 +02:00
momo5502
9ca19f8f7b [IMaterial] Better statebits 2018-05-10 18:10:56 +02:00
momo5502
2c3f445f8f [AntiCheat] Introduce LibUnlocker 2018-05-10 17:24:03 +02:00
momo5502
0ac7f39b05 [IGfxImage] Fix wrong image resolutions 2018-05-10 13:44:11 +02:00
momo5502
d8b2318acd [IclipMap_t] Fix border mapping 2018-05-09 15:52:36 +02:00
momo5502
ceebe4dfd0 [IGfxImage] Fix image loading 2018-05-09 15:14:31 +02:00
momo5502
33a8baa9b5 [Game] Adapt to correct structures 2018-05-09 14:33:52 +02:00
momo5502
7ca3b49f1e [Game] Fix structure changes 2018-05-09 12:04:20 +02:00
momo5502
c3083ea78c [IMaterial] Fix materials 2018-05-09 11:20:17 +02:00
momo5502
c7b5d5a2b8 [IW4MVM] Easily switch the component off 2017-09-03 20:31:58 +02:00
momo5502
5d4cd82ed1 [DHT] Integrate the protocol into the game's network infrastructure 2017-09-03 18:14:08 +02:00
momo5502
76b8e299a0 [DHT] Implement DHT 2017-09-02 20:03:51 +02:00
TheApadayo
20048b8d50 [Node] Disable node system while in game to prevent lag spikes on lower end PCs 2017-07-24 19:15:27 -04:00
momo5502
e4ff3113ea [Console] Use try/except SEH 2017-07-14 11:36:37 +02:00
momo5502
338c65689b [QuickPatch] Add a V2 exploit fix 2017-07-12 23:39:40 +02:00
momo5502
390418e34e [Download] Correctly download maps from lobby servers 2017-07-12 19:36:18 +02:00
momo5502
012384987e [ServerList] Adjust default rating even more 2017-07-12 18:55:52 +02:00
momo5502
b33d7fe508 [General] Use stable sorting algorithm 2017-07-12 13:39:45 +02:00
momo5502
ba1fb2f7f2 [ServerList] Increase rate, if users have problems, they can lowe it 2017-07-12 10:53:06 +02:00
momo5502
d4560c8b7e [ServerList] Adjust default query rates 2017-07-12 10:26:27 +02:00
momo5502
d3930ce19a [Node] Introduce dvar to control server query rate 2017-07-12 10:12:51 +02:00
momo5502
9fcd31616e [Session] Resend packets 2017-07-10 18:32:17 +02:00
momo5502
d153c98408 [Node] Ignore invalid nodes 2017-07-09 20:53:21 +02:00
momo5502
65a555e82b [Network] Don't send packets to invalid addresses 2017-07-09 20:53:04 +02:00
momo5502
5f31797eb5 [Dvar] Allow certain protected dvars to be set 2017-07-09 13:36:13 +02:00
momo5502
3f06d6c990 [Menus] Safer menu merging 2017-07-09 01:56:12 +02:00
momo5502
32789b29cf [IW4MVM] Make sure to reset the timescale 2017-07-09 01:54:02 +02:00
momo5502
46b1b5c95c [Dvars] More fixes for setting cheat protected dvars 2017-07-05 23:17:59 +02:00
momo5502
d9ad474905 [IW4MVM] Disable the mod when it's not needed 2017-07-05 21:37:54 +02:00
momo5502
ff55efb4fd [Submodules] Update iw4mvm 2017-07-05 21:08:34 +02:00
momo5502
bbc28a0a8b [IW4MVM] Include IW4MVM 2017-07-05 20:50:12 +02:00
momo5502
a3939860ea [Download] Fix fastdownload 2017-07-05 09:13:51 +02:00
momo5502
b54b18806f [AntiCheat] Use more efficient hashing 2017-07-03 22:17:46 +02:00
momo5502
0c2c7bb7e9 [ZoneBuilder] Fix zlib compile error 2017-07-03 16:48:02 +02:00
momo5502
4aba6fa06d [Submodules] Get rid of zstd 2017-07-03 16:43:48 +02:00
momo5502
41a85262f5 [Scheduler] Fix startup 2017-07-03 15:40:32 +02:00