ReGameDLL_CS/regamedll/dlls/API
Federico Matías 1c68cb0c98
FIX: Unexpected behavior with mp_forcerespawn (#653)
* Unexpected behavior with mp_forcerespawn leading to a possible exploit

Basically there is an exploit (or bug?) where depending on mp_forcerespawn if his value is higher to 0 and lower than 1, when you respawn you have a brief window to change your team, if you succesfully manage to change your team between the mp_forcerespawn value and WITHOUT closing the change appearance menu, you won't die due to "m_fNextSuicideTime", that will trigger the change team but without actually changing your skin model, you will keep the enemy one but the team change will success.

Thanks https://github.com/metita for helping me with this

Co-Authored-By: metita <33007491+metita@users.noreply.github.com>

* Revert "Unexpected behavior with mp_forcerespawn leading to a possible exploit"

This reverts commit 73d1c16706.

* fix: nullify `m_fNextSuicideTime` before call `ClientKill()`

* ClientKill: refactoring

* add forgotten if-statement

* remove macros

Co-authored-by: metita <33007491+metita@users.noreply.github.com>
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2022-12-17 19:45:04 +03:00
..
CAPI_Impl.cpp Implement CBasePlayer::Observer_FindNextPlayer() hook (#667) 2021-08-31 22:04:32 +03:00
CAPI_Impl.h Implement CBasePlayer::Observer_FindNextPlayer() hook (#667) 2021-08-31 22:04:32 +03:00
CSEntity.cpp Implement CCSEntity::FireBuckshots (#651) 2021-08-31 21:59:28 +03:00
CSPlayer.cpp FIX: Unexpected behavior with mp_forcerespawn (#653) 2022-12-17 19:45:04 +03:00
CSPlayerItem.cpp Enhanced CCSPlayerItem::GetItemInfo 2020-02-12 18:34:40 +07:00