itsjustcurtis / MenyooSP

[or Menyoo PC] - Trainer/mod menu for Grand Theft Auto V (single-player).
https://www.gta5-mods.com/scripts/menyoo-2-0
GNU General Public License v3.0
48 stars 8 forks source link

Rappel from any helicopter #151

Open Chris2-Shine opened 3 months ago

Chris2-Shine commented 3 months ago

Something I noticed while flying the Maverick helicopter is that I have the option to rappel, is there a way you could add this to all the helicopters? Cause this only applies to the Maverick, it'd be really helpful for machinimas too.

itsjustcurtis commented 3 months ago

This should be a relatively easy swap; https://github.com/itsjustcurtis/MenyooSP/blob/5d6eaa7b41e35dbf37d3d3c4e13bcab85eef52fc/Solution/source/Submenus/VehicleOptions.cpp#L143 This line has hard-coded the Maverick check for whether Rappel is available

changing to use BOOL DOES_VEHICLE_ALLOW_RAPPEL(Vehicle vehicle) // 0x4E417C547182C84D b757 should be adaptable to any other vehicles that allow the function.

Worth noting that there is an additional check within the rappel function that checks if the vehicle is a heli; this is likely redundant with the above check, so can probably be removed (just in case something like a boat can be rappelled from. )