From 18611361fc66d22655bd6b6c1da61d618d9fb85b Mon Sep 17 00:00:00 2001 From: Rimmuru <81404937+Rimmuru@users.noreply.github.com> Date: Thu, 17 Nov 2022 17:05:47 +0000 Subject: [PATCH] feat(mobile): Helicopter Pickup, Request Ammo Drop (#605) --- src/util/mobile.hpp | 15 ++++++++++++++- src/views/self/view_mobile.cpp | 14 ++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/util/mobile.hpp b/src/util/mobile.hpp index e5778da0..67bac1e7 100644 --- a/src/util/mobile.hpp +++ b/src/util/mobile.hpp @@ -41,6 +41,19 @@ namespace big::mobile *script_global(2703735).at(56).as() = NETWORK::GET_NETWORK_TIME() + 1; } } + + namespace merry_weather + { + inline void request_ammo_drop() + { + *script_global(mechanic_global).at(874).as() = 1; + } + + inline void request_helicopter_pickup() + { + *script_global(mechanic_global).at(876).as() = 1; + } + } namespace mors_mutual { @@ -123,4 +136,4 @@ namespace big::mobile } } } -} \ No newline at end of file +} diff --git a/src/views/self/view_mobile.cpp b/src/views/self/view_mobile.cpp index 75074b18..ba2fef7c 100644 --- a/src/views/self/view_mobile.cpp +++ b/src/views/self/view_mobile.cpp @@ -12,6 +12,20 @@ namespace big ImGui::Checkbox("Off Radar", &g->self.off_radar); + 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", [] {