From db61b1ff8576fb671ed7ddc76adadac05d86c88d Mon Sep 17 00:00:00 2001 From: gir489 <100792176+gir489returns@users.noreply.github.com> Date: Wed, 13 Dec 2023 17:43:18 -0500 Subject: [PATCH] Added the ability to use guns in airplanes with allow_all_weapons. (#2536) --- src/backend/looped/vehicle/allow_all_weapons.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backend/looped/vehicle/allow_all_weapons.cpp b/src/backend/looped/vehicle/allow_all_weapons.cpp index 107c9d73..a97557ed 100644 --- a/src/backend/looped/vehicle/allow_all_weapons.cpp +++ b/src/backend/looped/vehicle/allow_all_weapons.cpp @@ -44,6 +44,12 @@ namespace big if (num_seats > 3 && seat_info->m_rear_right->m_drive_by_info != defaults->m_driveby_standard_rear_right) seat_info->m_rear_right->m_drive_by_info = defaults->m_driveby_standard_rear_right; + vehicle_model_info->set_vehicle_model_flag(CVehicleModelInfoFlags::DRIVER_NO_DRIVE_BY, false); + if (PAD::IS_CONTROL_PRESSED(0, (int)ControllerInputs::INPUT_AIM)) + { + PAD::DISABLE_CONTROL_ACTION(0, (int)ControllerInputs::INPUT_VEH_FLY_MOUSE_CONTROL_OVERRIDE, 1); + } + if (g_pointers->m_gta.m_driveby_metadata_mgr->m_drive_by_weapon_groups->m_drive_by_default ->m_driveby_default_one_handed_weapon_group_names.size() == 1) {