RemoveSpawnProtection() little fix#695
RemoveSpawnProtection() little fix#695wopox1337 merged 2 commits intorehlds:masterfrom aleeperezz16:spawn-protection-fix
RemoveSpawnProtection() little fix#695Conversation
|
I can't trace the exact origin of the bug. My assumptions were wrong, or at least not accurate. I am not sure that the suggested changes will help to get rid of the problem 100%. I need a more detailed explanation. |
|
You mean that the bug's happening to you but don't know why? I don't know how reliable and unreliable channels work, like if one is faster than the other or has an order of execution. Maybe |
|
Have you tried instead changing this https://github.com/s1lentq/ReGameDLL_CS/blob/c30fe01f8e60ea1a6a4896bc9e0beb09ae0db580/regamedll/dlls/player.cpp#L10239 to MSG_ONE_UNRELIABLE , maybe they work better when in the same channel? |
|
Yeah, I tested using that channel and sometimes got removed, others didn't or even not showed up the icon |
Co-authored-by: Sergey Shorokhov <[email protected]>
So the actual problem of this happens when you hold any of the
IN_ACTIVEbuttons while you're dead and respawn afterwards. The icon fromStatusIconset doesn't get removed and even if you don't have protection anymore, the icon still stands on your HUD.These commands can help replicate the issue:
mp_respawn_immunitytime 3.0mp_respawn_immunity_effects 1mp_respawn_immunity_force_unset 1mp_forcerespawn 1The "fix" I found is changing
MSG_ONE_UNRELIABLEtoMSG_ONEonce it is set fromSetSpawnProtection().I tried to replicate the same problem and never ever occured.