Garry's Mod

Garry's Mod

208 ratings
Simple Taser SWEP
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
756.192 KB
27 Jun, 2016 @ 3:45pm
14 Apr, 2017 @ 4:21pm
7 Change Notes ( view )

Subscribe to download
Simple Taser SWEP

Description
A really simple Taser SWEP, and it may be buggy.

Note: It works on NPCs but not as well as it does on players or bots

What it does:
Freezes and turns the victims into ragdolls
Plays a cool taser shound when you shoot it
Plays effects at hit locations

What it doesn't do:
Allow for world domination
Cause GabeN to count to 3

Console Variables:
Note: ConVars with boolean values will be true if the value entered is a non-zero number
sv_taser_dmg <number> Changes the ammount of damage the taser will do to people hit by it
sv_taser_duration <number> How long players will be disabled for after getting tased. This is set to 15 seconds by default.
sv_taser_distance <number> The effective range of the taser
sv_taser_firerate <number> The time the player has to wait before the taser can be fired again
sv_taser_screen_fade <boolean> Determines if the screen will fade when you get tased (server-side)
sv_taser_dropweapon <boolean> Determines if players will drop their weapon when getting tased
cl_taser_sparksize <number> The size of the effects at the hit location

Github
Uploaded to github for people who are interested in the code:
https://github.com/JJL772/Garry-s-Mod-Taser

If you have any problems comment with a detailed description of your problem below and I'll try my best to help you.
45 Comments
nicolas.thibaut 21 Feb @ 12:48am 
[[ TFA ] [] Glock-19] lua/weapons/tfa_ins2_glock_19/shared.lua:104: attempt to index global 'TFA' (a nil value)
1. unknown - lua/weapons/tfa_ins2_glock_19/shared.lua:104
CopperNight 22 Dec, 2022 @ 7:31am 
i can't find the taser
skibididdy 10 Jun, 2021 @ 8:45am 
hold right click
BeanSoule 30 Nov, 2020 @ 9:23am 
it would be cool if the ragdoll shaked around on the ground
Xctony145 26 Jul, 2020 @ 11:50pm 
Can you find the model of it :D
Xctony145 26 Jul, 2020 @ 11:46pm 
Why does the Taser look ike a handgun TwT
But I like this addon!Very cool!!!
EvilDude 10 Apr, 2019 @ 7:03pm 
can u add like an admin taser like in the ceds taser mod which is the same but the duration is infinite until you press a button to release the person tased (ceds taser always bugs out and glitches so i cant use it but this is good)
francis 17 Mar, 2019 @ 2:47am 
no it works fine but it says damnhethicc and i dont know what it is
JJl77  [author] 16 Mar, 2019 @ 2:17pm 
Probably a game update broke it
Ill look into fixing it
francis 16 Mar, 2019 @ 10:04am 
what is this and why does it say damnhethicc
[ERROR] lua/autorun/damnhethicc.lua:14: Tried to use a NULL entity!
1. GetClass - [C]:-1
2. SetParent - lua/autorun/damnhethicc.lua:14
3. unknown - lua/weapons/rp_jj_taser.lua:127

Timer Failed! [Simple][@lua/weapons/rp_jj_taser.lua (line 126)]