PivityGmodStore

⚡The Taser Gun

(37)(231)

You can always read the reviews or discuss this product

LPN64posted edited

Optimize your addon


Function : player.GetAll (Wiki page : https://wiki.garrysmod.com/page/player/GetAll )

  Hook : GM:PostDrawOpaqueRenderables (Wiki page : https://wiki.garrysmod.com/page/GM/PostDrawOpaqueRenderables )

    File : addons/customhq-stungun/lua/weapons/weapon_stungun/shared.lua

      └►Line #247-> 27241 calls

        Call History

        #1 File:addons/customhq-stungun/lua/weapons/weapon_stungun/shared.lua, Line #264

        #2 File:addons/customhq-stungun/lua/weapons/weapon_stungun/shared.lua, Line #247



You don't need to call player.GetAll on each frame.


And yes i checked the code, and yes you can do it in much better ways than "scanning for player that got this weapon"

MaxAuthorposted

There would be another one soon. :D

AvoxPainePurchasedposted

an update after 2 years holy

Cykaposted

my taser is an error ?

InvictusPurchasedposted

Is there any planned release for better aiming when hitting running targets?

theindustrialrpPurchasedposted

@nissaN I may be late, but they are compatible. They actually work really good.

MaxAuthorposted

I personally didnt tested it together. Can't say for sure.

nissaNposted

it's compatible? https://www.gmodstore.com/scripts/view/2979/v170-realistic-handcuffs-jailer-bailer

MaxAuthorposted

Yeah you gotta aim hard to hit the running target, yet it's possible. However we are planning to add a some kind of a simplifying feature.

Tracksterposted

Sadly a pretty bad addon...when people jum paround and run away its impossible to hit them, and even if you do finally, sometimes you cant taze them completley so tey can just keep run...

burnettposted

would be better to make the person pretty much ragdolled after being tazed

ahshop3Purchasedposted

The taser isn't broken, there is a reason i'm co author. Been patching errors and reported bugs & so far as i know, the script is in a fully working condition.

{HGN-EO} Hero.EXEposted

An amazing stungun, sadly it is now broken

CoZmoTheGodPurchasedposted

Is there a server running this i can test it on?

Reckerposted

Hi Im a dev of a SWRP server, would I be able to change the model of this to another? (starwars pistol)?

Misterbobbieposted

Wow, CustomHQ is back xD

AoKitsunePurchasedposted

So I guess it added itself in my weapons category, can I remove that?

MaxAuthorposted

BakobGaming, Yes that is how it works. You cant move while being tazed, and if you gave someone a full charge he wont be able to move after too for some secs.

BakobGamingposted

is it possible to make so the player cant move for 2 seconds when hes done being tazed

AvoxPainePurchasedposted

Are there any custom sound files for this script that aren't on the workshop? I noticed the workshop is only the models.

MaxAuthorposted

Thanks!

SevanPurchasedposted

Welcome back Max!

Sir ZacPurchasedposted

is there a way to make it so that it doesn't create a weapon to buy (f4 menu)

AndersonPurchasedposted

That's good news

Showing 24 of 118 total results