Non Lethal Stun Gun [.NET] 1.0.1
7.089
112
7.089
112
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 (it actually became about 3 missions or so) that requires damage to be done. Instead of messing around with the game files constantly, I wanted to provide a scripted approach so people can easily delete the dll instead of editing their game files.
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.
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.
Primul incarcat: 10 Septembrie 2020
Ultimul incarcat: 10 Septembrie 2020
Last Downloaded: 1 hour ago
18 Comentarii
More mods by dimedius:
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 (it actually became about 3 missions or so) that requires damage to be done. Instead of messing around with the game files constantly, I wanted to provide a scripted approach so people can easily delete the dll instead of editing their game files.
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.
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.
Primul incarcat: 10 Septembrie 2020
Ultimul incarcat: 10 Septembrie 2020
Last Downloaded: 1 hour ago
In the video, you can tell when I have PDO installed, the Peds max health is 150. Other values indicated instances where it was tested without PDO and recorded
This file has been approved automatically. If you think this file should not be here for any reason please report it.
very useful! thank you
@tramter You are most welcome!
added [.NET] to title as I fear most users would take this a meta edit rather than a scripted solution
Awesome, I was looking for a mod like this and finally here it is! Great work bro!
@ReNNie thanks! Didn't realize it was missing.
@WolfFire23309 Thanks dude!
A much needed addition, keep them coming!
this is amazing love it thanks a lot five stars! I don't always enjoy to kill people
Perfect! How it should've been in vanilla honestly.
I didn't understand why people die when I shoot the stun gun. Then, by accident I found this mod and I solved the problem. It's a perfect mod.
@dimedius Could you release the 1.0.0 version? Because there is no lightning fx when damage is set to 0. And there is no .ini file in the current version!
The previous version could be the only way to get the sparks!
What's the performance impact like?
Where do I drop the files?
Great mod! Work well with LSPDFR!
what mod that showing ped status on the bottom with only text
@elleboi06 I have the same question
@zurufikarsan its not a mod that I know of but a little debugging script while making this mod so I could actually see the damage etc.
@LOLOMAN_999 have to drag the dll into the scripts folder. Make sure to have the script hook dot net installed. If no scripts folder, then you need to create one. Double check with updated guides, I haven't looked at any of this since about 2020 (4 years), I have to redo all my modding setup etc.