Caricamento...

Non Lethal Stun Gun [.NET] 1.0.1

568

Why: I feel a stun gun should only stun not kill. I'm sure in real life someone could die from that but not trying to be overly realistic right now. I also ran into an issue where I manually edited my weapons meta only to run into this one mission (so far) that requires damage to be done. Instead of messing around with the game files directly, I wanted to provide a scripted approach so people can delete the scripts instead of having to backup files and replace.

About
Very simple script that makes the stun gun non lethal.

Basically what it does is grab nearby peds and gets their health. It sets the stun gun damage to 0. From the many times of testing, the visible damage seen in the video is calculated euphoria damage (maybe I can figure out a way to remove that while getting stunned)

It does check to see if you're on a mission so certain missions like a particular strangers and freaks mission that uses a stun gun will allow to damage the ped to complete said mission. Otherwise it just zaps them.

=========================================
Compatibility

Tested with and without PDO (Pedestrian Damage Overhaul) and there are some minor side effects.

1. if you have leg injuries enabled, the stun likes to make them trip - change in the ini to lower percentage (I made both legs disabled and did like 10 percent per leg). Otherwise they're gonna be tripping a lot trying to run away from you.

2. Some Peds kept the health amount set in that ini as well. Not all but I imagine something somewhere is bugging that out or conflicting but they still die to other types of damage, like I said minor and doesn't really affect the gameplay that much.

=========================================
Bug
The way I wrote my script (either the variable or the ontick is too slow) but when zapping scenario pedestrians they can take a few hits then die. These are the ones that refuse to run away and I'm not quite sure how to handle them just yet but they keep going back to being static pedestrians.

This is an issue because right now, when they get zapped, they technically die but I catch it and give them max hp. Theoretically they should remain alive and once in a while they break free of their scenario and run away (jacuzzi at resort on beach and the food vendor in sandy shores are some of the ones I ran into). Maybe I can run a faster update but don't know how performance heavy that will turn out.

I think for now its good for lore that theres a small handful that can still die to less than lethal methods.

=========================================
Requirements
SHV, SHVDN, tested on game version 1868.0

=========================================
Versions

v1.0.0 - Early unreleased build, due to requirements to post a video, I held off on releasing and redid the script. Basically it kept setting Hp to max every time it got shocked, short and simple but never resolved the issue with static peds (mostly the sitting kind) always died.

v1.0.1 -First public release. Checks to see if player is on a mission or not, in a vehicle and how fast they are driving and adjusts the search area for nearby peds (hopefully you wont be able to shoot very far at high speeds).

Pulls HP from Ped and uses it through each encounter. Instead of healing the ped, in cases like the ped running into traffic and getting hit, the damage remains until they are dead. Any damage the ped receives while free roaming will either be other weapon types or the environment.

Moderately tested and results are good, please provide feedback as it helps improves the mod.
Show Full Description

Primo Caricamento: 10 giorni fa
Ultimo Aggiornamento: 10 giorni fa
Last Downloaded: 35 minuti fa

All Versions

 1.0.1 (current)

568 downloads , 2 KB
10 giorni fa

8 Commenti