ReGameDLL_CS/regamedll/dlls/bot
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
..
states Introduce end-of-line normalization 2019-09-23 04:09:58 +07:00
cs_bot_chatter.cpp bot chatter: use filesystem to check exists filename instead of _access, cuz filesystem uses search paths such as cstrike_downloads, cstrike_german, cstrike_russian etc 2019-06-05 21:06:02 +07:00
cs_bot_chatter.h Introduce end-of-line normalization 2019-09-23 04:09:58 +07:00
cs_bot_event.cpp Bot fixes (#659) 2021-08-31 23:17:28 +03:00
cs_bot_init.cpp ZBot: Implemented cvar bot_freeze 2020-01-15 20:05:13 +07:00
cs_bot_init.h ZBot: Implemented cvar bot_freeze 2020-01-15 20:05:13 +07:00
cs_bot_learn.cpp Add workflows/build.yml (Migrate to Github CI) 2021-04-13 04:16:21 +07:00
cs_bot_listen.cpp Introduce end-of-line normalization 2019-09-23 04:09:58 +07:00
cs_bot_manager.cpp FIX: Unexpected behavior with mp_forcerespawn (#653) 2022-12-17 19:45:04 +03:00
cs_bot_manager.h Fix newlines 2019-09-22 21:29:29 +07:00
cs_bot_nav.cpp Introduce end-of-line normalization 2019-09-23 04:09:58 +07:00
cs_bot_pathfind.cpp Refactoring 2017-11-23 00:43:30 +07:00
cs_bot_radio.cpp Introduce end-of-line normalization 2019-09-23 04:09:58 +07:00
cs_bot_statemachine.cpp ZBot: Implemented cvar bot_freeze 2020-01-15 20:05:13 +07:00
cs_bot_update.cpp Bots can switch weapons underwater (#631) 2021-06-06 19:13:55 +07:00
cs_bot_vision.cpp Introduce end-of-line normalization 2019-09-23 04:09:58 +07:00
cs_bot_weapon.cpp Bots can switch weapons underwater (#631) 2021-06-06 19:13:55 +07:00
cs_bot.cpp Bot fixes (#659) 2021-08-31 23:17:28 +03:00
cs_bot.h Refactoring 2017-11-23 00:43:30 +07:00
cs_gamestate.cpp Refactoring 2017-11-23 00:43:30 +07:00
cs_gamestate.h Introduce end-of-line normalization 2019-09-23 04:09:58 +07:00