Garry's Mod

Garry's Mod

591 个评价
TTT Grappling Hook only for Detectives CustomPlayerModel lua-error fix
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐, 风景
文件大小
发表于
更新日期
11.255 KB
2015 年 5 月 17 日 上午 11:21
2017 年 2 月 12 日 上午 10:57
13 项改动说明 ( 查看 )

订阅以下载
TTT Grappling Hook only for Detectives CustomPlayerModel lua-error fix

描述
original file - http://psteamcommunity.yuanyoumao.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://psteamcommunity.yuanyoumao.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 条留言
DeathWalkR die Einhornprinzessin  [作者] 2020 年 3 月 27 日 上午 1:00 
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 2020 年 3 月 26 日 下午 4:47 
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  [作者] 2017 年 12 月 22 日 上午 1:26 
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 2017 年 12 月 21 日 下午 5:20 
oh ok thanks
but can you use it in sand box?
DeathWalkR die Einhornprinzessin  [作者] 2017 年 12 月 20 日 下午 12:40 
--> play TTT
--> become detective
--> buy the weapon in the detective-shop with your detective credits :)
Bio-EngineeredAssaultTurtle 2017 年 12 月 18 日 下午 8:33 
how do you get it?
DeathWalkR die Einhornprinzessin  [作者] 2017 年 2 月 11 日 下午 4:28 
aaaaaaaaaaaaand it's gone. :>

(it was my fault, when porting some other codes)
problem when merging old code with new one
DeathWalkR die Einhornprinzessin  [作者] 2017 年 2 月 11 日 上午 5:15 
Needs some fixing ... It seems like, there are additional errors appearing now, which flood the server-console

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