Equip NPCs with Weapons 1.5

.Net Gameplay


Description


Equip NPCs with Weapons

Description

The NPCWeaponChanger script provides a customizable weapon management system for NPCs in GTA 5. This mod allows you to control and dynamically change the weapons NPCs use based on various conditions and settings defined in an INI configuration file.

Changelogs

1.0

-Initial Release.

1.1

-Fixed an issue where NPCs were not equipping some weapons.

1.2

-Fixed an issue where the player’s weapon would change if both the player and an NPC had the same model.

1.3

-Fixed an issue where NPCs were sometimes prioritizing Secondary Weapon over Primary

1.4

-NPCs can automatically switch to a shotgun.

1.5

- Added Feature to allow Multiple NPCs to use the same Loadout.

Important

You can find Weapon and Weapon Attachments in game resource files.

Key Features

- Primary, Secondary, and Heavy Weapons: Assign different weapons to NPCs as primary, secondary, or heavy weapons. Customize weapon attachments and switching logic. - Shotgun Logic: NPCs can automatically switch to a shotgun when within a specified range of their target, and revert to their primary weapon when the target is out of range. - Heavy Weapon Management: NPCs can use heavy weapons with configurable delay, duration, and cooldown times. This feature includes a random chance mechanism, making each encounter unique. - Full Customization via INI File: All weapons, attachments, chances, ranges, and cooldowns are fully customizable through an easy-to-edit INI file. - Dynamic Weapon Switching: NPCs will switch between weapons based on combat scenarios, distance to targets, and configured cooldown periods, providing a more immersive and tactical experience.

INI Configuration

The mod uses a flexible INI file to define NPC behaviors. You can specify different settings for each NPC, including:

- ModelName: Define the NPC model. - Weapon Hashes: Set the weapon hash for primary, secondary, heavy, and shotgun weapons. - Weapon Attachments: Add attachments to each weapon. - Weapon Chances: Control the probability of NPCs using certain weapons. - Range and Cooldowns: Set range for shotgun use, delay before heavy weapon use, duration of heavy weapon activity, and cooldowns

Installation

- Place the NPCWeaponChanger.dll file into your scripts folder. - Edit the NPCWeaponChanger.ini file to configure NPCs and their weapons. - Launch the game and enjoy!

Requirements

- Script Hook V - Script Hook V .NET
First Upload: November 11, 2024 Last Updated: November 11, 2024


0 Comments