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
0c87243519
Vec3 Square distance function
2021-11-08 17:55:48 +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
eda10589a1
[Script] Make MAX_GENTITIES unsigned
2021-10-16 13:51:57 +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
Diavolo
5c3ea03ee9
Added scriptID to client_t (see 0x46108b)
2021-09-13 10:57:06 +02:00
Diavolo
791e4129b9
Reversed more client_t struct for good mesure
2021-09-12 21:48:45 +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
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
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
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
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
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
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
Jan
677ac700ca
add pushad wrapper around fonticon game functions
2021-09-06 14:45:47 +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
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
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
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
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