Block traffic protection (#2688)

* fix: don't randomize components if we're cloning an existing ped
* feat(protections): add traffic manipulation protection
* fix(protections): add a mission check
This commit is contained in:
maybegreat48
2024-02-09 14:34:45 +00:00
committed by GitHub
parent 70875b31ab
commit d030bcbf4e
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -564,6 +564,11 @@ namespace big
g_pointers->m_gta.m_send_event_ack(event_manager, source_player, target_player, event_index, event_handled_bitset);
return;
}
else if (type == WorldStateDataType::PopMultiplierArea && g.protections.stop_traffic && !NETWORK::NETWORK_IS_ACTIVITY_SESSION())
{
g_pointers->m_gta.m_send_event_ack(event_manager, source_player, target_player, event_index, event_handled_bitset);
return;
}
buffer->Seek(0);
break;