Huge protection improvements and other stuff (#1963)

* feat(protections): add a fuzzer
* feat(protections): improve protections
* feat(spoofing): add warning
* feat(world): force object cleanup
* fix(weapons): fix custom weapon code
* fix(weapons): fix for #1983
This commit is contained in:
maybegreat48
2023-08-19 11:01:08 +00:00
committed by GitHub
parent 62c0c30c1a
commit 4a5dccd547
119 changed files with 15159 additions and 20135 deletions
@@ -167,17 +167,6 @@ namespace big
}
break;
}
case rage::eNetMessage::MsgNetComplaint:
{
uint64_t host_token{};
buffer.ReadQWord(&host_token, 64);
if (player && host_token != player->get_net_data()->m_host_token && !player->exposed_desync_protection)
{
session::add_infraction(player, Infraction::DESYNC_PROTECTION);
player->exposed_desync_protection = true;
}
return true;
}
case rage::eNetMessage::MsgScriptHostRequest:
{
CGameScriptId script;
@@ -205,16 +194,6 @@ namespace big
}
break;
}
case rage::eNetMessage::MsgTransitionGamerInstruction:
{
// it doesn't work but a certain p2c uses it
if (is_kick_instruction(buffer))
{
g.reactions.gamer_instruction_kick.process(player);
return true;
}
break;
}
case rage::eNetMessage::MsgKickPlayer:
{
KickReason reason = buffer.Read<KickReason>(3);