Skip to content

Commit

Permalink
Fixed bug when the client reconnects, his body doesn't disappear.
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Jul 16, 2020
1 parent cbfe8a1 commit efb06a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
}

Expand All @@ -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;
Expand Down

0 comments on commit efb06a7

Please sign in to comment.