DisarmThePed Mod for GTA V
Description
DisarmThePed is a mod for Grand Theft Auto V, directly inspired by the “DropTheWeapon Mod” from Fenix2525WOT.
This mod allows the player to disarm Peds in the game and make them surrender.
The script has been developed with ‘LSPDFR’ usage in mind, so YOU CAN’T DISARM COPS, firefighters, Swat, Army… By pressing “E”, but YOU CAN STILL DISARM THEM BY SHOOTING IN VALID AREAS.
Features
DisarmThePed.Ini File for Script Configuration: Keyboard and Controller Activation, Disarm Chances.
Disarm Peds by Shooting on Arms: The player can Disarm any Ped in the game if Shoot the Ped on Arms or Some Upper Body Parts.-
- (This feature is ‘Under Revision’ Due to the large number of bones GTA has for Ped skeleton and it not always detecting the injured bone correctly.)
Disarm by Keyboard(E) or Controller(padRight) Input (Configurable in .ini): The player can Disarm any Ped in the game Aiming at Ped and using Keyboard or Controller.-
(Disarm Chances Configurables in DisarmThePed.ini)
[DisarmChance]
BaseChance: This is the base probability of disarming the character when the disarm key is pressed. By default, it is set to 60.
[PedHealth]
PedLessHealthChance: Indicates how much the disarm probability increases when the health of the targeted character is less than that of the player.
[PedWeapon]
PedMeleeArmed: How much the disarm probability decreases if the targeted character is armed with a melee weapon.
PedPistolArmed: How much the disarm probability decreases if the targeted character is armed with a pistol.
PedHeavyArmed: How much the disarm probability decreases if the targeted character is armed with a rifle, sniper, or shotgun.
[SearchRadius]
SearchRadius: This is the radius around the targeted character to search for police officers and armed characters to calculate disarm probabilities.
[CopsInRadius]
MinCopsInRadius: The minimum number of cops in the radius for the disarm probabilities vary.
CopsInRadiusChances: How much the disarm probabilities increase if there are more cops in the radius.
NoCopsInRadiusChances: How much the disarm probabilities decrease if there are fewer cops in the radius.
[ArmedPedsInRadius]
ArmedPedsInRadius: How many armed characters are needed within the search radius for the disarm probabilities to vary.
ArmedPedsInRadiusChances: How much the disarm probabilities decrease if there are armed characters within the search radius.
Make Peds Surrender: After being Disarmed, the Peds will drop their gun to the ground, raise their hands and surrender.
- Depending on Situation, They Will Stay with Hands Up for a Few Seconds, or They Can Flee Running or Walking if For Example, There is an Active ShootOut.
Future Features
This section will be updated with planned features for future versions of the mod.
- Add .Ini Debug Mode for User Config Tests.
Installation
Download the latest release of DisarmThePed from this repository.
Ensure you have the necessary dependencies installed for GTA V:
(ScriptHookV)
Script Hook V - AB Software Development (dev-c.com)
(ScriptHookVDotNet3)
https://github.com/scripthookvdotnet/scripthookvdotnet/releases
Dependencies NOT Included on Download Folder due to Redistribution License.
Place ScriptHookV && ScriptHookVDotNet on your main GTAV Folder.
Place the scripts Folder Files (DisarmThePed.dll && DisarmThePed.ini) in the ‘scripts’ folder of your GTA V directory.
Knowns Bugs / Limitations
Weapon respawn on ped inventory, so they keep Shooting - Some Peds (Like Strip Club Security Guards) Are Hardcoded, so will Spawn a New Weapon After Being Disarmed.
As The Script is LSPDFR Intended, I Have Not missed too much around with that.
Ped Blip or Flick on Ground for a second - Sometimes the Ped can Flick and Blip on The Ground Before or After the Hands Up Animation. Its not very common.
Suggestions / Bug Report
¡BUG REPORTS AND SUGGESTIONS FOR MOD IMPROVEMENTS ARE WELCOME!
License
Please do not reupload this script without permission.
Edited by JuanjitoDevelop
New Script Version Upload
What's New in Version 1.2.0
Released
- Probability Logic Enhancement: The probability logic for disarming characters has been overhauled to incorporate multiple factors.
-
Introduction of Probability Calculation Variables:
- Probability is now calculated based on the type of weapon carried by the targeted character.
- Probability now varies depending on the number of armed characters within the vicinity.
- Probability now adjusts according to the number of police officers present nearby.
- Additional Parameters in INI File: New parameters have been added to DisarmThePed.ini File to allow customization and fine-tuning of the disarming probability calculation process.
- Bug Fix for Key Press: Solved an issue where holding down the activation key would cause unintended behavior, ensuring smoother gameplay experience.
- Performance Optimization: The script has undergone performance optimization to improve its efficiency and reduce any potential impact on game responsiveness.
These changes aim to deliver a more immersive and refined disarming mechanism while ensuring optimal performance within the game environment.
Future Updates:
No major updates are expected in the near future, apart from bug fixes if reported.
A Debug Mode(Configurable in INI File) is planned to allow players to test configurations.
@Fenix2525WOT
for his Mod DropTheWeapon, that has been my inspiration for this mod.
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now