2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-04-17 06:42:29 +03:00

62 Commits

Author SHA1 Message Date
s1lentq
2ba27d409c Fixed reversing mistake, missing checking string for null 2023-09-03 15:08:30 +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
478f338e37 PF_sound_I: fix formatting 2021-06-19 20:30:05 +07:00
Artem Golubikhin
0fed5b8038
Fixed volume checking in emit sound (#341)
Co-authored-by: Dmitry Novikov <s1lentsk@yandex.ru>
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-06-19 13:12:24 +03: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
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
d870d6bac9 PF_CreateInstancedBaseline: fixed wrong check bounds. (Fixes #685) 2019-09-13 07:03:52 +07:00
s1lent
65c6ce593b
Bugfix: Prevent to pre-cache same local models twice and more (Affects #612) 2018-05-22 19:09:21 +07:00
IgnacioFDM
ec63e8f162
Dummy assignment? 2018-04-03 14:27:19 -03:00
s1lent
fda9ee3fe2
Removed HOOK_ENGINE 2017-12-12 18:32:38 +07:00
s1lent
4fad5255ba
Refactoring world.cpp, sv_phys.cpp, sv_move.cpp 2017-12-09 14:12:35 +07:00
Artem Golubikhin
2829c7ffde Fixed saving temporary string in PF_lightstyle_I (#532)
Fixed saving temporary string in PF_lightstyle_I
Marked mismatched code (HLTV)
Fixed lightstyle copying in ParseSaveTables (SinglePlayer)
2017-10-09 17:06:05 +02:00
Dmitry Novikov
9b75935be0 ReHLDS API: Updated 3.3 (#506)
ReHLDS API: Add AddExtDll, RemoveExtDll, AddCvarListener, RemoveCvarListener, GetEntityInit, CreateFakeClient
Bump minor API version
2017-07-26 05:10:39 +03:00
Sh1ft0x0EF
416637e970 Const-like defines -> consts 2017-04-26 04:51:40 +04:00
theAsmodai
c895428d1d Merge pull request #439 from In-line/patch-6
Optimize PF_IsMapValid_I
2017-04-25 18:43:16 +03:00
theAsmodai
18afb757b7 Merge pull request #438 from In-line/patch-4
Add REHLDS_FIXES checks
2017-04-25 18:38:03 +03:00
In-line
52c6d0f855 Refactor & Fix pr_cmds.cpp (#437)
* Use sizeof in PF_stuffcmd_I

* Undef IGETINDEX_CHECK_FIELD after usage

* Move index variables to loops

* Use __func__ whenever possible, addition to #353
2017-04-25 20:30:32 +05:00
In-line
63357e9ce3 Optimize PF_IsMapValid_I 2017-04-25 18:41:50 +04:00
In-line
5f117f2c9e Add REHLDS_FIXES checks 2017-04-25 18:38:20 +04:00
Lev
48bb47d2dc Allow to modify triggers collection while iterating it (prevent crash). 2017-03-19 08:00:58 +05:00
Lev
b03dc58897 Fixed most of unrechable code. 2017-02-15 08:10:29 +05:00
Souvik Das
656c5d5f52 Fixed: parameter constraint in PF_lightstyle_I 2017-02-15 00:32:54 +05:30
Souvik Das
6a9d611a25 Fixed: parameter constraints in meta forwards 2017-02-15 00:10:58 +05:30
Lev
2f64cfc873 GCC support (#339)
* GCC support - could be used via -PuseGcc command line argument.

* Refactoring around __FUNCTION__, change __FUNCTION__ into __func__.

* Refactoring, formatting, small fixes.
2017-02-11 01:51:22 +05:00
s1lentq
fedc99bb85 Add a detailed print in SV_HandleClientMessage 2017-01-15 01:04:02 +07:00
Semen Ermilov
b9c8be8aec Nohref checks (#293)
* Fixed "error C4996: 'GetVersionExA': was declared deprecated" using a crutch.
* Added NOXREFCHECK to all NOXREF functions.
* Removed NOXREF from Sys_CheckOSVersion because it is being called.
2016-12-28 23:41:12 +05:00
s1lentq
076219bcd1 Fix a typo in the checking of bounds of the index for pointer of model. 2016-12-13 06:28:32 +07:00
s1lentq
4fc947807f Refactoring
Fix crash on SV_SingleClipMoveToEntity, added safe check for pointer model
2016-12-12 22:05:45 +07:00
WPMGPRoSToTeMa
a8afbd7d2e Re-fixed hung players #103 and early TeamScore #113 bugs
Global reliable net buffer is deprecated now
2016-12-02 23:41:49 +03:00
s1lentq
4bd4ab6724 Use defines ID of the models, refactoring 2016-12-02 00:11:42 +07:00
s1lentq
5c1be6a61d Clean up code/dwarf 2016-11-22 04:46:48 +07:00
WPMGPRoSToTeMa
e2be6491ba Replaced Con_Printf to Con_DPrintf for net messages that can be used for flood (related to #247)
Added player name and print to client for some net messages (not for all, need finish this in future)
echo -> svc_print
2016-10-19 20:36:29 +03:00
Artem Golubikhin
18babec090 Fix in SetModel: using string from global model_precache instead of passed string 2016-04-09 13:51:55 +03:00
asmodai
5916655edd Merge remote-tracking branch 'remotes/tema/resourcelistextend' 2016-02-06 14:25:19 +03:00
asmodai
30519ea2ee Merge remote-tracking branch 'remotes/tema/autoprecachetextureandanimgroup' 2016-02-06 14:23:38 +03:00
WPMGPRoSToTeMa
9080b9b7e8 Added auto precache sounds in models (event 5004)
Added cvar sv_auto_precache_sounds_in_models
Moved models auto precache code to SV_ActivateServer
2016-02-06 11:29:44 +03:00
WPMGPRoSToTeMa
415240ecde Extended max resource count to 4096
Extended max generic resource count to 4096
Added backward slash replace in PF_precache_generic_I
Removed local copying in SV_CreateGenericResources
Added moving checked resources to first positions in resource list
2016-02-06 08:42:17 +03:00
WPMGPRoSToTeMa
53faac8ead Fixed segroup precache for models with 1 seqgroup (some that models have garbage in first seqgroup, first seqgroup is also reserved for sequences in model) 2016-02-05 23:03:26 +03:00
theAsmodai
b25b18dfb4 Merge pull request #148 from WPMGPRoSToTeMa/autoprecachetextureandanimgroup
Fix slashes in seqgroup filename
2016-02-02 02:35:03 +03:00
WPMGPRoSToTeMa
e003ef04a2 Fix slashes in seqgroup filename 2016-02-02 02:17:19 +03:00
theAsmodai
c43a168455 Merge pull request #147 from WPMGPRoSToTeMa/autoprecachetextureandanimgroup
Added texture and seqgroup auto precache
2016-02-02 01:56:56 +03:00
WPMGPRoSToTeMa
81d5369e97 Added texture and seqgroup auto precache 2016-02-02 01:35:47 +03:00
WPMGPRoSToTeMa
f6aa21134a Added preventing twice resource precache in PF_precache_generic_I (#130) 2016-02-02 01:18:31 +03:00
Jonatan Matějka
2a5f883a48 export EngCheckParm 2016-01-26 22:35:28 +01:00
s1lentq
b7bd3f7720 ReHLDS API: Implemented SV_ActivateServer hook and added GetResourcesNum, GetDecalNameNum
Fix: using defines instead of magic numbers
Added include qlimits.h
Reduced the size global variable localinfo, ipfilters, userfilters
2015-11-13 04:42:47 +06:00
s1lentq
2a24337eee Cut of nicknames '+' if next there is something digit or alphanumeric character.
Added prefix Q_* for functions strlen/strcmp/strpcy/memset/memcpy/memmove etc.
Added for solution configuration (Debug Swds Play/Release Swds Play) the path to libacof32.lib in linker.
2015-10-27 21:14:08 +06:00
s1lentq
2531c8f8af Added missing EXT_FUNC functions to ReHLDS API 2015-07-13 23:34:33 +06:00
dreamstalker
131d43a15e Added missing EXT_FUNC marks 2015-07-13 00:01:02 +04:00
s1lentq
a5d278fb1e Implemented unregisterHook for hookchain and added some functions to ReHLDS API 2015-07-07 23:33:50 +06:00
dreamstalker
ed575d9b7d Fixed: all functions that could be called from outside must realign the stack
Removed NOINLINE from MSG_Write*Bits functions since stack alignment issue is resolved
2015-06-30 17:09:22 +04:00