2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-07-07 01:45:07 +03:00

208 Commits

Author SHA1 Message Date
s1lentq
18b173d5c6 Fix potential crash 2024-12-08 05:15:11 +07:00
s1lentq
df862d9bb6 Improved movevars sync logic for clients, allowing independent sync of movement props for each client, regardless of global movevars 2024-12-08 00:18:36 +07:00
s1lentq
fe184a82e0 SV_ProcessFile: Ignore customization file uploads if upload is disabled 2024-10-24 02:28:47 +07:00
s1lentq
2834fb8494 Minor refactoring and improve readability 2024-08-01 03:34:00 +07:00
s1lentq
a761efa75d Minor cleanup 2024-05-13 18:48:35 +07:00
Adrian Cirstea
82a3d1d084
Add SV_SendResources hook (#1024)
* Implement `SV_AddResources` hook
2024-05-10 18:15:22 +07:00
s1lentq
693b51c883 Improved behavior of sv_filterban 0. Fixes #1027 2024-05-10 18:05:41 +07:00
s1lentq
ec47e4d978 Do not propagate custom logos according to sv_send_logos cvar 2024-03-18 22:17:23 +07:00
s1lentq
58391b6ee5 SV_WriteEntitiesToClient: Reset movetype if the aiment index is invalid 2024-02-20 03:18:36 +07:00
s1lentq
498d7e0d18 Fix crash when the entity with aiment doesn't have a model 2024-02-14 19:23:16 +07:00
s1lentq
41c5186b2c RCON: Fixes redirect print and minor refactoring 2024-01-22 05:48:34 +07:00
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
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
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
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
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
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
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
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
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
Very Strange Karaulov
ad6f6ad396
sv_main.cpp: SV_New_f() uses Q_snprintf() unsafe format. (#807) 2021-06-19 22:39:40 +03:00
s1lentq
3a9bfb9ca1 SV_New_f: Deny new connection twice at a time if user messages are received
SV_ReadClientMessage: Fix empty names on bad read
2021-06-16 04:23:27 +07:00
Sergey Shorokhov
39b441099c
Implement CVar sv_usercmd_custom_random_seed (#837) 2021-06-14 06:19:51 +07:00
s1lentq
2f70b6cba5 SV_FatPVS/SV_FatPAS: Sanity checks, gPVSRowBytes is not used for singleplayer 2021-05-03 00:39:06 +07:00
s1lentq
2e8bd9e1eb Add workflows/build.yml
Preparing migration to workflows
Fixes warnings
Update badges README.md
2021-03-16 21:22:34 +07:00
theAsmodai
dc75d828ce
Don't generate different challenge on port change (#804) 2021-01-28 01:43:02 +03:00
Asmodai
370dddb8b4 Fix dos attack on connection challenges system 2021-01-26 02:27:11 +03:00
s1lentq
c11fdbe3f8 Fixed typo with null terminated 2020-10-21 20:52:16 +07:00
s1lentq
98db4672cf SV_ProcessFile: Wrap Con_Printf in Con_NetPrintf to avoid spam in HLDS console 2020-07-25 03:42:34 +07:00
Artem Golubikhin
987ee51a6b
Implement svc_exec support in the engine and HLTV (#737)
* Added `svc_exec` to the list of svc commands in engine
* Added `svc_exec` support to HLTV code
* Made the engine code forward-compatible with future svc_* additions
* Added reserved svc_* slots in the enumerations
2020-05-19 01:46:47 +07:00
s1lent
7513e71d3b Don't add an invalid decal into custom.hpk, otherwise clients may crash because they have no safe-checks WAD3 MIP-Header.
Related #755 (Only fixes server-side)
Fixes #757
2020-04-06 13:51:12 +07:00
s1lent
c4cecf5f12
SV_ConnectClient: Move function Steam_NotifyClientDisconnect 2020-01-29 01:20:58 +07:00
Karaulov
2713dfaae2 Small update sv_use_entity_file (#708)
Now if sv_use_entity_file set to 1, don't create new .ent files, use only exist.
2019-08-11 20:35:37 +07:00
s1lent
084bd023d2
ReHLDS API: Extending api 2019-08-11 03:01:01 +07:00
s1lent
b4ddf0bbd3
Send fake build number in S2C_CONNECTION packet 2019-07-30 23:30:38 +07:00
s1lent
a0926eda44
HLTV: Closed #657
HLDS: Moved check to limit of leafs into SV_SpawnServer function.
2019-07-30 23:20:05 +07:00
Karaulov
3f809d018a Simple entity editor (#694)
Ability to load entites from separate file instead of map content.
Added sv_use_entity_file cvar to toggle entites loading source.
2019-05-07 17:52:00 +05:00
namazso
f6822e30ea fix buffer overflow (#687) 2019-03-30 01:21:09 +07:00
theAsmodai
89be2166ee
Merge pull request #660 from dreamstalker/cll_hookchain
Add hookchain for connectionless limiter
2018-09-29 12:47:42 +03:00
Asmodai
c2d311c6df Add hookchain for connectionless limiter 2018-09-27 01:04:19 +03:00
Asmodai
93222402b8 Optimize check for bans by ip 2018-09-26 23:48:10 +03:00
Asmodai
834c5a9eda Reworked SV_CheckChallenge_api function 2018-09-15 12:21:01 +03:00
s1lent
469908f5c5
Fix #483 2018-09-03 18:04:47 +07:00
s1lent
237ee46464
SV_WriteId_f, DemoFile::StartRecording: Enforce certain extensions be used for files (*.dem, *.cfg) and prevent certain path characters from being used in commands
SV_CheckForDuplicateNames: revert checks (default behavior hlds)
2018-09-03 17:34:08 +07:00
Asmodai
c7616fa283 Additional check for '..' in fixed names 2018-08-05 12:01:59 +03:00
theAsmodai
87a10a1e41
Added sv_rehlds_maxclients_from_single_ip cvar (#610)
Correctly reject overlimit connections
2018-05-07 21:24:21 +03:00