Garry's Mod

Garry's Mod

591 ratings
TTT Grappling Hook only for Detectives CustomPlayerModel lua-error fix
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Scenic
File Size
Posted
Updated
11.255 KB
17 May, 2015 @ 11:21am
12 Feb, 2017 @ 10:57am
13 Change Notes ( view )

Subscribe to download
TTT Grappling Hook only for Detectives CustomPlayerModel lua-error fix

Description
original file - http://cs2bus.com/sharedfiles/filedetails/?id=295735248

this Grapping Hook is just a re-upload with a tiny bugfix to work with custom player-models (like Pony Playermodel http://cs2bus.com/sharedfiles/filedetails/?id=107155115 )

the original file caused some errors, when having a custom Playermodel during use



NEW STUFF
add - only if you want - the following convars in your server-config-file server.cfg or autoexec.cfg
ttt_grapplehook_sndPowerUp "path/to/your/miss_sound.wav"
ttt_grapplehook_sndPowerDown "path/to/your/hitsoudn.wav"

--> it is absolute necessary, that you either use one of the known sounds ... see
-> https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexd693.html
-> https://wiki.garrysmod.com/page/Common_Sounds
e.g. ttt_grapplehook_sndPowerUp "Weapon_Bugbait.Splat"

--> or use a path, relative to your filesystem, it must be inside the garrysmod-folder (at the same level as the addons-folder etc...)
e.g. ttt_grapplehook_sndPowerUp "/sound/schnitzel.wav"
25 Comments
DeathWalkR die Einhornprinzessin  [author] 27 Mar, 2020 @ 1:00am 
you would need to rewrite some parts of it

to at least remove it from the detective shop
(unpack the mod and place the folders in your local gmod/addons directory - as well on the server)

go to entities/weapons/grapplehook/shared.lua
line 63: SWEP.CanBuy = { ROLE_DETECTIVE } // remove the role (so that the brackets are empty), then it should not be buyable in the credit shop - neither by detective, nor by Ts

if it should be buyable in a different shop (outside the ttt "vanilla" components), it then depends, how that kind of shop does access custom weapons (or how custom weapons need to be written)


(I haven't touched any lua code vor 2 years now but I hope, this helps a bit)
[NEKO] Myzumi | SYD 26 Mar, 2020 @ 4:47pm 
any way to remove it from the credits shop? like to have it in a other shop where you can buy it with "coins"
DeathWalkR die Einhornprinzessin  [author] 22 Dec, 2017 @ 1:26am 
sadly no, otherwise the Name here would be "Sandbox Grappling Hook" or just "Grappling Hook" instead of "TTT Grappling Hook"
I just copied the addon and uploaded a bugfixed version it (see description -> original file) ... or besides that, you can find Sandbox-capable grappling hooks as well, if you use the search-box on the workshop startpage
Bio-EngineeredAssaultTurtle 21 Dec, 2017 @ 5:20pm 
oh ok thanks
but can you use it in sand box?
DeathWalkR die Einhornprinzessin  [author] 20 Dec, 2017 @ 12:40pm 
--> play TTT
--> become detective
--> buy the weapon in the detective-shop with your detective credits :)
Bio-EngineeredAssaultTurtle 18 Dec, 2017 @ 8:33pm 
how do you get it?
DeathWalkR die Einhornprinzessin  [author] 11 Feb, 2017 @ 4:28pm 
aaaaaaaaaaaaand it's gone. :>

(it was my fault, when porting some other codes)
problem when merging old code with new one
DeathWalkR die Einhornprinzessin  [author] 11 Feb, 2017 @ 5:15am 
Needs some fixing ... It seems like, there are additional errors appearing now, which flood the server-console

any comment can help
[XKR] TuXEKRO 28 Jan, 2017 @ 2:38am 
Life goes BBS, no matter what. You have someone waiting, waiting to meet you! Cheer up!
DeathWalkR die Einhornprinzessin  [author] 27 Jan, 2017 @ 7:07am 
as far, as I've seen now, everything should be fixed (including some sound bugs)