Added more spam messages to the filter. (#2488)
* Added more spam messages to the filter. * Removed duplicate remote control vehicle button from the player vehicle menu. * Added heuristical spam detector. * Fixed clock in spam logger. * Added date output to the chat logger. * Added a message to show the user when someone is spamming. More static text translations. * Removed redundant mobile global in scr_globals.hpp. * Added a spam reason to the spam logger. * Added team/all to the chat logger. Added a logger call for the user's chats.
This commit is contained in:
@ -71,7 +71,7 @@ namespace big
|
||||
VEHICLE::SET_VEHICLE_ENGINE_ON(m_handle, false, true, false);
|
||||
}
|
||||
else
|
||||
g_notification_service->push_warning("Toxic", "Failed to take control of vehicle.");
|
||||
g_notification_service->push_warning("TOXIC"_T.data(), "VEHICLE_FAILED_CONTROL"_T.data());
|
||||
}},
|
||||
{"FIX VEHICLE",
|
||||
[this] {
|
||||
@ -83,7 +83,7 @@ namespace big
|
||||
VEHICLE::SET_VEHICLE_DIRT_LEVEL(m_handle, 0.f);
|
||||
}
|
||||
else
|
||||
g_notification_service->push_warning("Warning", "Failed to take control of vehicle.");
|
||||
g_notification_service->push_warning("WARNING"_T.data(), "VEHICLE_FAILED_CONTROL"_T.data());
|
||||
}},
|
||||
{"BURST TIRES",
|
||||
[this] {
|
||||
@ -97,7 +97,7 @@ namespace big
|
||||
}
|
||||
}
|
||||
else
|
||||
g_notification_service->push_warning("Toxic", "Failed to take control of vehicle.");
|
||||
g_notification_service->push_warning("TOXIC"_T.data(), "VEHICLE_FAILED_CONTROL"_T.data());
|
||||
}},
|
||||
{"HALT",
|
||||
[this] {
|
||||
@ -106,7 +106,7 @@ namespace big
|
||||
VEHICLE::BRING_VEHICLE_TO_HALT(m_handle, 1, 5, true);
|
||||
}
|
||||
else
|
||||
g_notification_service->push_warning("Toxic", "Failed to take control of vehicle.");
|
||||
g_notification_service->push_warning("TOXIC"_T.data(), "VEHICLE_FAILED_CONTROL"_T.data());
|
||||
}},
|
||||
{"COPY VEHICLE",
|
||||
[this] {
|
||||
@ -119,14 +119,14 @@ namespace big
|
||||
if (entity::take_control_of(m_handle))
|
||||
VEHICLE::SET_VEHICLE_FORWARD_SPEED(m_handle, 79);
|
||||
else
|
||||
g_notification_service->push_warning("Toxic", "Failed to take control of vehicle.");
|
||||
g_notification_service->push_warning("TOXIC"_T.data(), "VEHICLE_FAILED_CONTROL"_T.data());
|
||||
}},
|
||||
{"LAUNCH",
|
||||
[this] {
|
||||
if (entity::take_control_of(m_handle))
|
||||
ENTITY::APPLY_FORCE_TO_ENTITY(m_handle, 1, 0.f, 0.f, 50000.f, 0.f, 0.f, 0.f, 0, 0, 1, 1, 0, 1);
|
||||
else
|
||||
g_notification_service->push_warning("Toxic", "Failed to take control of vehicle.");
|
||||
g_notification_service->push_warning("TOXIC"_T.data(), "VEHICLE_FAILED_CONTROL"_T.data());
|
||||
}},
|
||||
{"EJECT",
|
||||
[this] {
|
||||
|
@ -88,6 +88,7 @@ namespace big
|
||||
std::optional<uint32_t> player_time_value;
|
||||
std::optional<std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds>> player_time_value_received_time;
|
||||
std::optional<uint32_t> time_difference;
|
||||
std::optional<std::chrono::time_point<std::chrono::steady_clock>> last_message_time;
|
||||
uint32_t num_time_syncs_sent = 9999;
|
||||
|
||||
bool block_explosions = false;
|
||||
|
Reference in New Issue
Block a user