Carregant...

Enable Weapons for Helicopter Pilot and Passenger 1.0

546

Mod description/features:
So you spawned an enemy pilot in a buzzard and you want it to fire its weapons at you, but all it does is just fly around you...NOT ANYMORE!

This script forces pilots to use their assigned helicopter weapons. Now, that pilot will fire its weapon at you! This script works for all available weaponized helicopters.

This script also works for special helicopters such as the Hunter where the passenger seat has an MG which without this script, the ped does not use the mounted MG.

Please note that this script uses a degree of vision so if a ped is not within 90 degrees of vision of the front nose of the helicopter, the ped will not fire which I've purposely set to add realism(sort of) because wouldn't it be weird if a pilot was shooting bullets from its butt.

So far, this script only utilizes the main weapon of that helicopter. For example, when you first enter the buzzard, your first main weapon is the machine guns, so the pilot will use that only. I'm currently experimenting on ways to enable the PED to cycle its weapons. You can change the main starting weapon of a helicopter by editing its
VehicleWeaponHandlingData in their handling.meta.

Example: I want the Hunter to use its barrage against me (very dangerous btw), but it uses the default homing rockets as its first main weapon. Simply change the starting weaponhash for it. For the Hunter, the MG is for the passenger so don't change the order for it. See below or screenshots.

Before:


VEHICLE_WEAPON_HUNTER_MG
VEHICLE_WEAPON_HUNTER_MISSILE
VEHICLE_WEAPON_HUNTER_CANNON

VEHICLE_WEAPON_HUNTER_BARRAGE

After:


VEHICLE_WEAPON_HUNTER_MG
VEHICLE_WEAPON_HUNTER_BARRAGE
VEHICLE_WEAPON_HUNTER_CANNON

VEHICLE_WEAPON_HUNTER_MISSILE


I've added in an ini that can let you play around with this degree of vision while also allowing you set whether or not, the pilot can target the player.

Requirements:
Script Hook V
Script Hook V Dot Net

How to install:
Place all contents within the ZIP into your Scripts folder.

Release notes:
Version 1.0 - First release

Enjoy!

Disclaimer:
This script was created using ChatGPT so I did not "make" this script, but helped guide it in the direction for this script to function.
Show Full Description

Carregat per primera vegada: 18 de Desembre de 2023
Actualització més recent: 18 de Desembre de 2023
Últim descarregat: fa 1 dia

All Versions

 1.0 (current)

546 descàrregues , 4 KB
18 de Desembre de 2023

17 Comentaris