2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 07:05:43 +03:00
Commit Graph

855 Commits

Author SHA1 Message Date
s1lentq
76cbd2c140 Implemented optional CVar sv_tags for sets a string defining the "gametags" for this server to allows users/scripts to filter in the matchmaking/server-browser interfaces based on the value 2024-01-18 21:46:25 +07:00
s1lentq
f29d6c5769 Update README.md 2024-01-18 00:56:32 +07:00
s1lentq
355172d6db Fix unit-test 2024-01-18 00:46:45 +07:00
s1lentq
62407e0dd6 Implement commands rcon_adduser,rcon_deluser,rcon_users to allow use RCON only by known user IPs (Resolves #796)
SV_Rcon: Minor refactoring
2024-01-18 00:40:16 +07:00
s1lentq
1d6c6826db fix build 2024-01-14 00:24:33 +07:00
s1lentq
5002ff9abe Prevent crash "Cache_UnlinkLRU: NULL link" on client-side if aiment with sprite model will be to render as a studio model 2024-01-14 00:18:08 +07:00
s1lentq
32857e7785 Fix no exec config file when exceed limit text buffer 2024-01-12 22:32:15 +07:00
s1lentq
93f5775ac2 Reworked AlertMessage 2023-12-14 07:40:45 +07:00
s1lentq
0af97d98bb Add reg cvar r_cachestudio 2023-11-28 18:21:53 +07:00
s1lentq
ffb65795dd Update workflows/build.yml
Fixes #1004
2023-11-22 23:41:21 +07:00
Alibek Omarov
3f19bc1d3e
engine: add sv_allow_autoaim cvar for HL25 DLL compatibility (#1000)
add sv_allow_autoaim cvar for HL25 DLL compatibility
2023-11-21 08:35:36 +07:00
s1lentq
7fcec97af4 Add support cheats command god,notarget,noclip 2023-10-09 01:57:11 +07:00
Hamdi
b7f6eb8023
Minor refactor ( add BoundsIntersect function ) (#986) 2023-09-28 00:41:37 +07:00
Francisco Muñoz
5ec8c29185
Update world.cpp (#985) 2023-09-25 03:40:50 +07:00
s1lentq
6f031901cf Added cvarhook from latest HLDS build
Making mapcyclefile/sv_cheats work in realtime
Resolve #868
2023-09-25 02:08:04 +07:00
s1lentq
de3679f039 Host_Motd_f: Fixed viewing motd when motdfile is not specified 2023-09-20 21:00:44 +07:00
s1lentq
2ba27d409c Fixed reversing mistake, missing checking string for null 2023-09-03 15:08:30 +07:00
Sergey Shorokhov
f955b07b69
Revert "change destinition folder for linux build (#842)" (#977)
This reverts commit 9508c8376b.
2023-07-03 22:02:28 +03:00
s1lentq
918612fa23 GetBonePosition: Added bone index bounds check 2023-07-04 01:39:26 +07:00
s1lentq
8841ba4aec GetAttachment: Added attachment index bounds check 2023-07-04 01:33:41 +07:00
s1lentq
0c5ce53666 Allow the clients to connect on the server of different game Fixed #975
Client should be use "setinfo _gd <game>"
2023-07-02 03:47:05 +07:00
Sergey Shorokhov
a680f18ee1 SV_BuildSoundMsg: fix '\n' in args check
- fix #965
2023-05-08 12:24:16 +03:00
Hamdi
1796459953
Add SV_AllowPhysent hook (#951)
* Add SV_AllowPhysent hook
2023-02-11 07:03:53 +07:00
s1lentq
5e8b0ba616 Increased limit leafs MAX_MAP_LEAFS up to 32767 2022-12-07 19:17:09 +07:00
s1lentq
14b56e0514 Added more check for possible numleaf overflow
Minor refactoring
2022-12-07 19:15:08 +07:00
Adrian Cirstea
d6ebe82833
API: Implement *_Precache_*, ClientPrintf, CheckUserInfo and AddResource hooks (#903)
* Added SV_CheckUserInfo hook

* Implemented PF_precache_*  hooks

- PF_precache_sound_I
- PF_precache_model_I
- PF_precache_generic_I

* Added EV_Precache and SV_AddResource hooks

and update API minor version

* Added SV_AddResource_internal and fixed pointers

* Added SV_AddResource_hook, fixed chain EV_Precache

* Reworked SV_AddResource for Rehlds API

* Reverted RehldsFuncs_t's SV_AddResource API

* Updated chains

* Update rehlds_api_impl.h

* Implement `SV_ClientPrintf` hook

* Changed `SV_ClientPrintf` chain type to void

* Revert `SV_ClientPrintf` code refactor

* Removed `const` string type

in order to resize the string.

* Changes according to var type

* Fixing function's functionality

* Moved vars declaration after `host_client` check

* revert variable naming in SV_ClientPrintf

* `SV_ClientPrintf_internal`: more safe string copy

Co-authored-by: wopox1337 <wopox1337@ya.ru>
2022-09-19 14:20:33 +03:00
s1lentq
d76b06dcc2 Netchan_CreateFileFragments: Fixed a very old and rare bug with dlfile while downloading direct from server, when content of resource size is less than header size first fragment 2022-08-25 00:01:33 +07:00
s1lentq
e9045e3b63 Fixed: StripUnprintableWorker did not count the null terminator 2022-07-10 15:47:56 +07:00
s1lentq
be0e1c843b Fix null or empty input string in COM_LoadFile (FS_Open with input empty string "" will succeed on some POSIX systems)
Resolved #919
2022-05-25 18:39:14 +07:00
s1lentq
3dc9f8c92d Fixed typo ZONE_DYNAMIC_SIZE 2022-04-17 00:45:13 +07:00
s1lentq
815da982a0 Update workflows/build.yml Set windows job container as windows-2019 instead of windows-latest which now run on windows-2022
https://github.com/actions/virtual-environments/issues/4856
Fixes windows build
2022-04-10 03:46:52 +07:00
s1lentq
4e0a3f312a Fixed case when model name is too long
COM_LoadFile: Increase buffer room size
Mod_LoadModel: Use safe version COM_FileBase_s
Agree on the size of loadname[] and model_t::name[] buffers
2022-04-10 03:35:08 +07:00
Dmitry Novikov
2f0a402f9d
Netchan_FlushIncoming: Don't clear global buffer of incoming network messages (#896)
* Netchan_FlushIncoming: Fixed #888
Co-authored-by: Artem Golubikhin <WPMGPRoSToTeMa@users.noreply.github.com>
2022-02-14 05:14:19 +07:00
RauliTop
6d169b0119
Fix incorrect cvar description (#897) 2022-02-09 13:07:56 +07:00
Dmitry Novikov
f319f50068
Fixed wrong length buffer with "StripUnprintableWorker" and also after stripping (#893)
Remove non-printable unicode char 0xFFA0 from table g_isPrintTable
Resolves #887
2022-02-05 20:07:35 +07:00
Nord1cWarr1or
77b4cd3d32
Added missing CVar sv_rehlds_local_gametime to readme (#882)
* Added missing CVar `sv_rehlds_local_gametime` to readme

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-12-07 08:20:49 +03:00
Sergey Shorokhov
745f8b3735
Revert "Add GitHub Action for Remove old artifacts (#873)" (#874)
This reverts commit 5bc2d83b08.

[skip ci]
2021-11-03 17:20:14 +03:00
Sergey Shorokhov
5bc2d83b08
Add GitHub Action for Remove old artifacts (#873) 2021-11-01 15:07:11 +03:00
Franco Romaniello
471158b1d9
Implement Con_Printf() hook (#861)
* Implement Con_Printf hook

* update REHLDS_API_VERSION_MINOR

* Update rehlds_api.h

* Update version.h

* Apply suggestions from code review

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-10-24 14:28:40 +03:00
mlgpero
c86849ef63
Update on grammar/spelling (#865)
* Update on grammar/spelling

Co-authored-by: Artem Golubikhin <WPMGPRoSToTeMa@users.noreply.github.com>
2021-10-23 11:56:02 +03:00
Sergey Shorokhov
22a00eff89 fix pointer symbols 2021-10-22 22:02:14 +03:00
Franco Romaniello
ed83cb6c50
Implement SV_EmitPings() hook (#858)
* Implement SV_EmitPings hook

* Change REHLDS_API_VERSION_MINOR

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-10-20 21:06:29 +03:00
Sergey Shorokhov
2118e8f052
SV_HullForEntity: better log in Sys_Error (#843) 2021-10-20 19:39:07 +03:00
StevenKal
04ddafe637
API: Add hooks "ED_<Alloc|Free>" (#867)
* Update pr_edict.h

* Update pr_edict.cpp

* Update rehlds_api_impl.cpp

* Update rehlds_api_impl.h

* Update rehlds_api.h

* Update pr_edict.h

* Update pr_edict.cpp

* Update rehlds_api_impl.cpp

* Update rehlds_api_impl.h

* Update rehlds_api.h

* Update pr_edict.cpp
2021-10-20 17:39:19 +03:00
s1lentq
aaffe43e3e Reset m_bSentNewResponse to allow new connection when the client goes through the full stage of connection (cl:connect -> sv:S2C_CONNECTION -> cl:new -> SV_New_f) Related 3a9bfb9 2021-06-24 19:09:10 +07:00
Sergey Shorokhov
9508c8376b
change destinition folder for linux build (#842) 2021-06-23 16:04:53 +03:00
Very Strange Karaulov
ad6f6ad396
sv_main.cpp: SV_New_f() uses Q_snprintf() unsafe format. (#807) 2021-06-19 22:39:40 +03:00
Very Strange Karaulov
527d0819b9
static_map.h: fix lowercase convert (#806)
* More readability in convert lowercase

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
Co-authored-by: Artem Golubikhin
2021-06-19 22:30:12 +03:00
Very Strange Karaulov
f23498bef7
sv_user.cpp: Small code refactoring (#810)
* Small code style fix in sv_user.cpp

* SV_EstablishTimeBase_internal: code refactoring

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-06-19 21:44:18 +03:00
s1lentq
478f338e37 PF_sound_I: fix formatting 2021-06-19 20:30:05 +07:00