mirror of
https://github.com/rehlds/ReGameDLL_CS.git
synced 2025-10-09 21:11:08 +03:00
Fixed bug when the client reconnects, his body doesn't disappear.
This commit is contained in:
parent
cbfe8a1a0c
commit
efb06a7a20
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue