From efb06a7a201829bdbe13218bc5f5342e1f2ed8f1 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Thu, 16 Jul 2020 18:07:34 +0700 Subject: [PATCH] Fixed bug when the client reconnects, his body doesn't disappear. --- regamedll/dlls/multiplay_gamerules.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/regamedll/dlls/multiplay_gamerules.cpp b/regamedll/dlls/multiplay_gamerules.cpp index 9880ac0ee..b0a8ebdb7 100644 --- a/regamedll/dlls/multiplay_gamerules.cpp +++ b/regamedll/dlls/multiplay_gamerules.cpp @@ -3583,6 +3583,12 @@ void CHalfLifeMultiplay::ClientDisconnected(edict_t *pClient) pObserver->Observer_SetMode(iMode); } } + +#ifdef REGAMEDLL_FIXES + // Client is gone, make sure that his body disappeared and became not solid + pPlayer->MakeDormant(); +#endif + } } @@ -3594,7 +3600,7 @@ LINK_HOOK_CLASS_CUSTOM_CHAIN(float, CHalfLifeMultiplay, CSGameRules, FlPlayerFal float EXT_FUNC CHalfLifeMultiplay::__API_HOOK(FlPlayerFallDamage)(CBasePlayer *pPlayer) { -#ifdef REGAMEDLL_ADD +#ifdef REGAMEDLL_ADD if (!falldamage.value) { return 0.0f;