feat(mobile): Helicopter Pickup, Request Ammo Drop (#605)

This commit is contained in:
Rimmuru 2022-11-17 17:05:47 +00:00 committed by GitHub
parent 9877164591
commit 18611361fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 1 deletions

View File

@ -42,6 +42,19 @@ namespace big::mobile
}
}
namespace merry_weather
{
inline void request_ammo_drop()
{
*script_global(mechanic_global).at(874).as<int*>() = 1;
}
inline void request_helicopter_pickup()
{
*script_global(mechanic_global).at(876).as<int*>() = 1;
}
}
namespace mors_mutual
{
inline bool fix_index(int veh_idx, bool spawn_veh = false)

View File

@ -14,6 +14,20 @@ namespace big
ImGui::Separator();
components::sub_title("Merryweather");
ImGui::Separator();
components::button("Request Ammo Drop", [] {
mobile::merry_weather::request_ammo_drop();
});
components::button("Helicopter Pickup", [] {
mobile::merry_weather::request_helicopter_pickup();
});
ImGui::Separator();
components::button("Mors Mutual Fix All Vehicles", [] {
int amount_fixed = mobile::mors_mutual::fix_all();
g_notification_service->push("Mobile",