feat(notifications): add missing options for tse sender mismatch (#478)
This commit is contained in:
parent
ce9d81d2ca
commit
7ca0eacd98
@ -61,6 +61,7 @@ namespace big
|
||||
pair spectate{};
|
||||
pair transaction_error{};
|
||||
pair tse_freeze{};
|
||||
pair tse_sender_mismatch{};
|
||||
pair vehicle_kick{};
|
||||
pair teleport_to_warehouse{};
|
||||
pair start_activity{};
|
||||
@ -477,6 +478,8 @@ namespace big
|
||||
script_handler.transaction_error.notify = script_handler_j["transaction_error"]["notify"];
|
||||
script_handler.tse_freeze.log = script_handler_j["tse_freeze"]["log"];
|
||||
script_handler.tse_freeze.notify = script_handler_j["tse_freeze"]["notify"];
|
||||
script_handler.tse_sender_mismatch.log = script_handler_j["tse_sender_mismatch"]["log"];
|
||||
script_handler.tse_sender_mismatch.notify = script_handler_j["tse_sender_mismatch"]["notify"];
|
||||
script_handler.vehicle_kick.log = script_handler_j["vehicle_kick"]["log"];
|
||||
script_handler.vehicle_kick.notify = script_handler_j["vehicle_kick"]["notify"];
|
||||
script_handler.teleport_to_warehouse.log = script_handler_j["teleport_to_warehouse"]["log"];
|
||||
@ -733,6 +736,7 @@ namespace big
|
||||
{ "spectate", return_notify_pair(script_handler_notifications.spectate) },
|
||||
{ "transaction_error", return_notify_pair(script_handler_notifications.transaction_error) },
|
||||
{ "tse_freeze", return_notify_pair(script_handler_notifications.tse_freeze) },
|
||||
{ "tse_sender_mismatch", return_notify_pair(script_handler_notifications.tse_sender_mismatch) },
|
||||
{ "vehicle_kick", return_notify_pair(script_handler_notifications.vehicle_kick) },
|
||||
{ "teleport_to_warehouse", return_notify_pair(script_handler_notifications.teleport_to_warehouse) },
|
||||
{ "start_activity", return_notify_pair(script_handler_notifications.start_activity) }
|
||||
|
@ -27,7 +27,7 @@ namespace big
|
||||
if (*(int*)&args[1] != player->m_player_id && player->m_player_id != -1)
|
||||
{
|
||||
LOG(INFO) << "Hash = " << (int)args[0];
|
||||
format_string(player_name, "Wrong TSE sender", notify.ceo_kick.log, notify.ceo_kick.notify);
|
||||
format_string(player_name, "TSE sender mismatch", notify.tse_sender_mismatch.log, notify.tse_sender_mismatch.notify);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -75,16 +75,17 @@ namespace big
|
||||
draw_pair_option("Rotate Cam", script_event_handler.rotate_cam);
|
||||
draw_pair_option("Send to Cutscene", script_event_handler.send_to_cutscene);
|
||||
draw_pair_option("Send to Location", script_event_handler.send_to_location);
|
||||
draw_pair_option("Sound Spam", script_event_handler.sound_spam);
|
||||
ImGui::EndGroup();
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
ImGui::BeginGroup();
|
||||
draw_pair_option("Sound Spam", script_event_handler.sound_spam);
|
||||
draw_pair_option("Spectate", script_event_handler.spectate);
|
||||
draw_pair_option("Transaction Error", script_event_handler.transaction_error);
|
||||
draw_pair_option("TSE Crash", script_event_handler.crash);
|
||||
draw_pair_option("TSE Freeze", script_event_handler.tse_freeze);
|
||||
draw_pair_option("TSE Sender Mismatch", script_event_handler.tse_sender_mismatch);
|
||||
draw_pair_option("Vehicle Kick", script_event_handler.vehicle_kick);
|
||||
draw_pair_option("Wanted Level", script_event_handler.clear_wanted_level);
|
||||
ImGui::EndGroup();
|
||||
|
Reference in New Issue
Block a user