Commit Graph

512 Commits

Author SHA1 Message Date
FutureRave
2785343eac
document player state flags in gamepad module 2022-01-12 17:48:20 +00: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
687e3d6e27 Refactor movement. 2022-01-07 12:24:29 +01:00
Diavolo
57d598617c
Mute player's chat feature 2022-01-01 14:08:02 +01:00
Diavolo
ec43adda59
Address parts of review 2021-12-26 17:25:13 +01:00
Diavolo
8736983c46
Refactor elevators 2021-12-22 16:25:58 +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
FutureRave
86f0242a3d
Reimplement clientcommand like in debug builds 2021-12-09 12:01:37 +00:00
FutureRave
6d916ebd47
Added god/demigod and fixed ufo 2021-12-07 16:10:46 +00:00
FutureRave
69592a5656
Use .cfg over unordered map 2021-12-04 18:34:19 +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
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
f0687f8203
Use correct enum over numbers for com_error 2021-11-16 16:56:13 +00:00
FutureRave
f101dbadec
[Script] Improve structs, add extra checks 2021-11-13 18:51:37 +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
FutureRave
7664a773e7
Have comment explain what dvar flag is being modified 2021-11-07 17:58:33 +00:00
FutureRave
1112eba7fa
Add customizable speed scale for stance 2021-11-07 11:09:00 +00: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
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
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
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
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
Diavolo
07f15acab0 Properly kick player from the server using net cmd 2021-09-12 16:38:24 +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
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
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
Diavolo
906e33ac41
Some minor style changes 2021-09-10 09:43: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
Diavolo
8b7eceeea9
I accidentally modifed the struct 2021-09-08 23:03:32 +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
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
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
677ac700ca add pushad wrapper around fonticon game functions 2021-09-06 14:45:47 +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
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
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
Diavolo
dded312064
Removed extra newline 2021-08-31 18:24:40 +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
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
8adea24d67 Add gamepad location selection support 2021-08-30 16:09:52 +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
57e305277b Consider material text icons when calculating text width 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
9b4a48f2c3 Implement menu navigation using gamepad 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
d4d1520f65 Implement cod native controller support like xinput value retrieval 2021-08-30 16:09:51 +02:00
Diavolo
9ff6747c5a
Define dvar_type as a char 2021-08-29 22:40:55 +02:00
Diavolo
62cc1fff78
[Dvar] Make flag enum unsigned 2021-08-29 17:51:50 +02:00
Diavolo
89165a96b4
[Dvar] Use set raw method on dvars by default 2021-08-29 17:41:21 +02:00
Louvenarde
ea926dfe67 Merge branch 'develop_official' into feature/xinput 2021-08-14 00:36:42 +02:00
Diavolo
1bd4bcba05
Color dvar 2021-08-01 14:22:42 +02:00
Diavolo
de0c3b2762
Color blind dvars 2021-08-01 10:35:59 +02:00
Diavolo
97032e9d46 Quit f 2021-07-18 20:51:33 +02:00
rackover
7f8995cf3e Fix all killstreaks (but thermal on ac/cg) 2021-05-09 01:24:37 +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
b3adacb71d Gamepad support for menus 2021-05-04 15:47:46 +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
e19409f550 Zonebuilder builds sounds & loaded_sounds now 2021-04-12 00:43:38 +02:00
rackover
aa9f98b0e7 Fix warnings, fix post-rebase issues 2021-04-05 18:13:00 +02:00
rackover
f851a0a3a9 Put DOBJ back 2021-04-05 17:29:52 +02:00
Jan
e9f78eedb7 Add r_drawTriggers debugging dvar to draw triggers on the map 2021-04-05 17:29:49 +02:00
rackover
06301f5f85 DOBJ struct and better gentity_s 2021-04-05 17:25:53 +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
d5c8f15f7b Enhance gentity_s struct 2021-04-05 17:25:47 +02:00
Rackover Xiaochad
0c462c1152 Fix device recovery issues on CODO maps >359 2021-02-06 21:30:47 +01:00
INeedBots
38bb745d17 [Functions] Added cgameFOVSensitivityScale 2021-01-04 01:16:31 -06: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
75d6be1939 Increased protocol 2021-01-02 19:09:19 -06:00
INeedBots
16c6d11916 [XInput] Completed analog movement on server side 2021-01-02 19:06:40 -06:00
OneFourOne
9047e7bec2
[Game] Decrease protocol version 2020-12-22 16:15:23 -05:00
INeedBots
eeb70a7da4 Fixed compile errors on C++20 2020-12-09 13:13:34 -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
Joelrau
ebe27166f8 [Functions] Added clcState 2020-12-04 23:18:30 +02:00
Joelrau
febff1b703 [Structs] Added enum clientstate_t 2020-12-04 23:17:44 +02:00
INeedBots
f5aa4f91e0 [Structs] Added deltaMessage and outgoingSequence to client_t 2020-11-14 01:56:45 -06:00
INeedBots
4c4975daaf [Functions] Added G_GetWeaponIndexForName, SV_ClientThink, svs_time, Scr_Error, Scr_GetType 2020-11-14 01:06:56 -06:00
INeedBots
03f1b9938c [Functions] Added NET_DeferPacketToClient 2020-11-14 00:54:29 -06:00
Maurice Heumann
dd42a06151 [MapDump] Introduce proper map dumping 2019-12-28 14:35:00 +01:00
RektInator
530d773d49 [Zones] Added support for FF version 448, 460, 461 2019-10-02 08:08:11 +02:00
TheApadayo
8080700432 [Menus] Rewrite how menus are loaded and used to support custom menu lists 2019-01-17 16:33:26 -05:00
momo5502
f75f121c27 [Game] Increase protocol version 2019-01-12 17:52: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
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
1f5a83aa94 [Game] Fix XModel structure 2018-05-10 18:11:12 +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
a6efda1e97 [Game] Update several structures 2018-05-09 11:53:35 +02:00
momo5502
dd1308a7f9 [StringTable] Use the game's hashing function 2017-06-30 00:35:04 +02:00
momo5502
527f93803c [General] Update protocol version 2017-06-29 23:03:25 +02:00
momo5502
8dfbe47bc6 [Dedicated] Implement event for chat 2017-06-28 21:30:39 +02:00
momo5502
aac43f1e7d [MusicalTalent] Disable this feature 2017-06-18 12:36:19 +02:00
momo5502
08bc848267 [General] Small code fixes and optimization 2017-06-14 20:53:54 +02:00
TheApadayo
9997367ded [clipMap_t] some attempts to generate triggers 2017-06-07 14:15:32 -04:00
momo5502
6cc4fa582a [Friends] First version of working avatars 2017-06-05 12:53:26 +02:00
momo5502
6f7ebb43b1 [Friends] Steam avatars 2017-06-05 00:00:46 +02:00
momo5502
d8c3e7fcee [String] Make VA leak-safe 2017-06-02 15:36:20 +02:00
RektInator
fb6dd4a205 Merge remote-tracking branch 'refs/remotes/origin/develop' into v2features 2017-05-31 01:57:59 +02:00
RektInator
6f71a65a83 [Dedicated] Update cardtitles across clients. 2017-05-31 00:27:08 +02:00
momo5502
991056b362 [Maps] Check map hash and redownload when different 2017-05-30 21:49:13 +02:00
TheApadayo
2fae76875d [Structs] Correct usercmd_s struct 2017-05-30 13:22:04 -04:00
momo5502
df2dd13b1d [Maps] Make sure techsets are clean when sorting materials 2017-05-28 18:13:48 +02:00
TheApadayo
5be5c70cb6 [ZoneBuilder] building techsets.ff is now working. still need to clean it up and add a function to generate defaults.ff as well.
also featured in this commit:
- better cpu performance when running zb from the shell
- asset pools that are bigger than ever!
- new random struct stuff
2017-05-26 15:41:40 -04:00
momo5502
f6894b46c5 [Download] Add ssl support 2017-05-15 21:57:45 +02:00
momo5502
a5a56f1e72 [Download] Implement gsc http download 2017-05-14 20:32:39 +02:00
momo5502
309e2d2987 [Script] Allow adding custom script functions 2017-05-13 12:09:58 +02:00
momo5502
2c9a051aad [ZoneBuilder] Enumerate XAssetEntries instead of logging them 2017-05-01 13:08:34 +02:00
momo5502
70d7312472 [Script] Allow 6 params for setExpFog 2017-04-29 23:08:41 +02:00
momo5502
1e617dc299 [Maps] Add model debug code 2017-04-24 21:13:54 +02:00
momo5502
d97c886ccd [General] Fix R_RegisterFont 2017-04-23 13:32:47 +02:00
momo5502
1d5df78692 [Bots] Add spawnBot command 2017-04-23 13:32:47 +02:00