Yet Another Taser System -
rootcause - 03.10.2015
Actually a stun gun, oops.
This FS allows people who plays with cop skins(check IsACopSkin) to stun others who don't have a cop skin. You can add a wanted level check/change it however you want.
How to Use:
First of all you need a cop/SWAT/FBI/Army skin.
Then you can use
/taser to enable/disable your stun gun.
After enabling your stun gun, you can press
KEY_FIRE near people to stun them. They'll get stunned according to their health, so if the person who got stunned has low health they'll get stunned for a longer time, minimum being 3 seconds.
(You can change it from #define TASER_BASETIME)
Stun gun only works if you have fists as your current weapon and it'll disappear if you switch to anything else but don't worry it comes back when you switch to fists again.
Also this script has a charge mechanic which prevents players from spamming KEY_FIRE key and easily stun everyone near them.
Important Stuff:
Don't forget to change MAX_PLAYERS on line 4.
Thanks to Crayder because of his
array of nice colors.
This FS uses progress2.inc by [HLF]Southclaw. You can find it
here.
02/06/2016 Update:
* Fixed an epic fail. (allowed players to stun the player with lowest id, no matter how far they are)
Thanks to
knuckleduster5 for reporting this.
* Loops now use GetPlayerPoolSize instead of GetMaxPlayers.
Downloads:
Re: Yet Another Taser System -
ExTaZZ69 - 03.10.2015
Nice script!
Re: Yet Another Taser System -
DarkLored - 03.10.2015
Would work more efficiently if you'd use OnPlayerGiveDamage, instead of checking if there are players near you.
Re: Yet Another Taser System -
ReD_Boii - 04.10.2015
Nice work
Re: Yet Another Taser System -
Max_Andolini - 04.10.2015
Good job bro
Re: Yet Another Taser System -
Colby - 11.10.2015
Pretty interesting, never really liked the handheld taser however.
Re: Yet Another Taser System -
Pvt Steinheimer - 11.10.2015
Nice
Re: Yet Another Taser System -
AbyssMorgan - 11.10.2015
nice
Re: Yet Another Taser System -
codeshadow - 11.10.2015
Good job.
Re: Yet Another Taser System -
rootcause - 01.06.2016
02/06/2016 Update:
* Fixed an epic fail. (allowed players to stun the player with lowest id, no matter how far they are)
Thanks to
knuckleduster5 for reporting this.
* Loops now use GetPlayerPoolSize instead of GetMaxPlayers.
You can get the fixed version from the first post!