This is a mod that fires electrode needles from a Taser.
Please see the README for details.
INSTALL
Please place only the two files in the ZIP—the CSand the INI—into the “scripts” folder for GTA V. They will work with the already installed ScriptHookVDotNet.
Here's how to use it:
Use the weapon attachment toggle key to show or hide the laser sight.
To hide the electrode needles, press the Backspace key.
Check out the showcase here.
Edited by SuperPyroManiac
What's New in Version 1.1.0
Released
In this version, we’ve fixed bugs identified through your valuable feedback and added new features based on your requests.
Comment from mnbvm: Works well! Nice mod, congrats on the release—but you might want to fix a small thing in your code. It parses ini values using the system’s current culture. In locales where , is the decimal separator and . is the thousands separator (pt-BR, de-DE, es-ES, most of Europe and Latin America), a value like 0.002 is misinterpreted as 2 (the dot is treated as a thousands separator), rather than 0.002. Every float value in [Visual]/[Laser] is affected, resulting in strange visual effects like these.
If you parse ini floats using float.TryParse(raw, NumberStyles.Float, CultureInfo.InvariantCulture, out value) instead of relying on ScriptSettings.GetValue<float>’s culture-dependent parsing, this will resolve the issue :)
I’ve fixed this font-related issue.
I’ve also added support for weapons other than the Tazer, which was previously complex. (e.g., add-on weapons, etc.)
Finally, regarding the request from Agent's Workshop: "Cool idea, I really like it!
Is there a chance that, in the future, we'll be able to connect the pins individually, just like in real life, so that the shock doesn't occur until the second pin hits the target?"—while this should be possible in the code, we haven't been able to test it in-game yet.
This is because it's impossible to hit just one pin accurately.
Thank you for downloading the mod.
Short Description
AI disclosure
The author has disclosed that AI tools were used in creating the following aspects of this file:
- Mod and Mod Content (Substantial)
Help with Writing Code
Recommended Comments
Create an account or sign in to comment