Safe Electric Self-Defense Tool (.NET) 1.0.1

.Net Gameplay Weapons


Description


Safe Electric Self-Defense Tool (.NET)

Why: I wanted to create a stun gun that only stuns, not kills. While it's possible someone could die from a stun in real life, I'm focusing on creating a less lethal experience in this context. Additionally, I encountered an issue where manually editing weapon damage would conflict with certain missions requiring damage output. This scripted approach allows for easy removal of the dll file instead of constant game file manipulation. About: This is a simple script that modifies the stun gun to be non-lethal. It identifies nearby pedestrians and retrieves their health data. The stun gun's damage is then set to 0. While visible "damage" may still appear, it's likely due to euphoria calculations. I'm exploring ways to remove this visual effect during stuns. The script checks if the player is on a mission. Certain missions, like some Strangers and Freaks quests requiring stun gun usage, will allow damage to pedestrians for completion. Otherwise, the stun gun only incapacitates them. Compatibility: Tested with and without Pedestrian Damage Overhaul (PDO) with minor side effects. 1. If leg injuries are enabled in PDO, stunned pedestrians may trip frequently. Adjusting the percentage chance of leg injury in the ini file can mitigate this issue. 2. Some pedestrians retain the health value set in the ini file. This bug may be due to conflicts or inconsistencies but doesn't significantly impact gameplay as they remain vulnerable to other damage types. Bug: The script's execution speed (possibly due to variable updates or ontick frequency) can lead to scenario pedestrians taking multiple hits before dying. These are typically the pedestrians who refuse to flee. I'm working on a solution but for now, they may temporarily die before regaining full health. This inconsistency might be acceptable from a lore perspective, as it suggests some individuals are more susceptible to less lethal methods. Requirements: SHV, SHVDN, tested on game version 1868.0 Versions: * **v1.0.0:** Early unreleased build. Kept resetting HP to maximum upon each stun, resulting in the death of static pedestrians. * **v1.0.1:** First public release. Checks for mission status, vehicle usage, and driving speed to adjust the search radius for nearby pedestrians. Pulls HP from Ped and applies it throughout each encounter. Damage from other sources (traffic accidents, environment) remains until the pedestrian dies. Moderate testing shows promising results. Please provide feedback to help improve the mod.
First Upload: November 12, 2024 Last Updated: November 12, 2024


0 Comments