refactor(reaction): rework reaction code (#2331)

1. Allow interloper_reaction to use timeout.
2. Fix crash reaction(except TSE) cannot use announce in chat.
3. Allow all friends to bypass auto kick spammers, modder flag and  reactions.
Provides an alternative for users who experience this weird bug https://github.com/YimMenu/YimMenu/issues/2266 . They can just trust their friends until someone provides valuable information for developers to fix.
4. Allow trusting specific players (bypass auto kick spammers, modder flag and reactions).
5. Trust the whole session temporarily (Avoid team members being kicked when in mission).
6. Remove duplicate logs when blocking crash (except for TSE crash)
7. remove unused gamer_instruction_kick in reaction list
8. Allow announce in team only chat
This commit is contained in:
HCR-750F
2023-11-04 21:54:32 +08:00
committed by GitHub
parent 4f45ec7033
commit 7aad4c5860
19 changed files with 135 additions and 62 deletions

View File

@ -80,6 +80,7 @@ namespace big
bool m_block_permanent_vehicles = false;
bool is_modder = false;
bool is_trusted = false;
bool block_join = false;
int block_join_reason = 0;
bool is_spammer = false;