NPC Weapon Changer 1.5
686
29
-
12 августа 2024
The NPCWeaponChanger script is 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 NPC were not equiping 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 NPC 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 here:-
Weapons:-https://docs.altv.mp/gta/articles/weapons/models.html#pistol
WeaponAttachments:- https://wiki.rage.mp/index.php?title=Weapons_Components#Pistols
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
Первая загрузка: 9 августа 2024
Последнее обновление: 23 августа 2024
Последнее скачивание: 15 часов назад
37 комментариев
More mods by GogetaSsj4:
The NPCWeaponChanger script is 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 NPC were not equiping 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 NPC 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 here:-
Weapons:-https://docs.altv.mp/gta/articles/weapons/models.html#pistol
WeaponAttachments:- https://wiki.rage.mp/index.php?title=Weapons_Components#Pistols
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
Первая загрузка: 9 августа 2024
Последнее обновление: 23 августа 2024
Последнее скачивание: 15 часов назад
-
If all you could manage was speed that'd be amazing! Both would obviously be ideal but whatever you can do, I really appreciate this.
9 августа 2024 -
@CoronaPrime you can try speed for now i will see the strength tomorrow. https://drive.google.com/file/d/1hkcyyQLK0x8OFYchQi6sY5HHKbjAdMfx/view?usp=drive_link
9 августа 2024 -
@GogetaSsj4 That works perfectly, exactly what I had in mind! Brilliant!
Also, zero pressure at all, but it would be great if the super strength worked for weapon melee as well (e.g. if they punch an enemy, or butt them with their gun, the enemy goes flying). But again, anything you can do is totally appreciated, just throwing out ideas!
9 августа 2024 -
-
@GogetaSsj4 one more thing, can you make an exception for player? i play as npc model sometime and it removes my weapons... in fact, could you also add an extra feature for variations of the freemode ped? i.e. npc is EUP, could add a feature so a certain component combination specified in the ini file could determine what weapon they get (army, police, armed police) - i know this can take a bit of work but would be fabulous if you could!
10 августа 2024 -
-
@Double Doppler I think this can be done. But will require lot of time to do it
11 августа 2024 -
-
@GogetaSsj4 Ok mate, I have this request from you & maybe you're up to the challenge, since I believe this mod features may make this project worthwhile.
Is it possible for you to create a mod like this, but only to equip players bodyguards (no matter the number of squads/group followers) with Parachutes when on any airplane or Cargo planes, where the guards are able to pull out there parachutes alongside game player upon skydiving jump scenarios?
I say this because there isn't such a simple mod like this out there.
13 августа 2024 -
Instead of a shotgun, am I able to have them equip any close-range weapon? For example, if I wanted the character to switch to a melee weapon when they get close to enemies, would that be possible with the current mod?
13 августа 2024 -
@CoronaPrime yes you can do it. It will work. I am trying to add melee class weapons and snipers too. Till then you can use Shotgun slot as melee slot
13 августа 2024 -
-
Major improvement idea
Allow multiple models to use the same loadout without copying each entry in the ini
In other words, make it loadout focussed, not NPC focussed.
So each entry in the ini is no longer ‘NPC’ but ‘Loadout’ and has a field for models it’ll give that loadout to (a list)
Using from this perspective makes it far more productive as many peds we want could be unarmed and thus this will stop copy pasting lots of entries
Users can custom name loadout names for their convenience rather than ‘NPC1’ etc
15 августа 2024 -
@Double Doppler That is actually fine idea to save user's time. You are right its quite lengthy work to add so many entries. By having a loadout which can be used by multiple NPCs sounds good. i will work on that.
15 августа 2024 -
I love the idea of this mod, however I'm having issues with NPCs actually firing their weapons (they don't).
30 августа 2024 -
-
@GogetaSsj4 I added a couple of NPCs to the .ini config (like Merryweather, The Lost, Cops and NOOSE). They're holding the correct guns, except they don't fire them. They just aim and move around. If I move to a "shotgun distance", they correctly swap to their shotguns. These are the .ini additions I added: https://pastebin.com/jGN1t2em . I'm on the latest version of GTA V and use ScriptHookVDotNet-nightly-117.
31 августа 2024 -
@Veee Thanks for letting me know about this , i will look what is causing this
1 сентября 2024 -
What files control this in the base game though? Like how does the game determine what weapons to give npcs in vanilla GTA?
20 октября 2024
Version 1.4 Out Now:
-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.