Garry's Mod

Garry's Mod

913 个评价
TTT Detective Rifle
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐, 写实
文件大小
发表于
更新日期
3.117 MB
2015 年 1 月 24 日 上午 9:57
2015 年 1 月 24 日 下午 5:07
3 项改动说明 ( 查看 )

订阅以下载
TTT Detective Rifle

描述
A Rifle I made that can be used on TTT. It's a Detective Rifle so only the Detective can buy it.


I got the model and materials from the M9K Packs but coded the lua file myself (with a little help from some friends).
20 条留言
Niesson 2022 年 6 月 29 日 下午 2:53 
To fix the gun missing all sounds but the actual shot you need to perform two steps:
Extract the addon file using gmad.exe from the garrysmod/bin folder.
Then look for
ttt_detective_rifle_380655813\lua\weapons\weapon_ttt_m98b.lua
and change line 48 to
SWEP.Primary.Sound = Sound("M98.Single")
save the file and put it into garrysmods\addons\ttt_detective_rifle_380655813\lua\weapons and your server.
Niesson 2022 年 6 月 29 日 下午 2:44 
Create a lua file (e.g. detective_sniper.lua) in the path garrysmod/addons/ttt_detective_rifle_380655813/lua/autorun on your server.

Put the following lines in the .lua file and save it:


sound.Add({

name = "M98.Single",
channel = CHAN_STATIC,
volume = 1.0,
sound = "weapons/M98/shot-1.wav"
})

sound.Add({
name = "M98_Bolt",
channel = CHAN_ITEM,
volume = 1.0,
sound = "weapons/M98/bolt.mp3"
})


sound.Add({
name = "M98_Handle",
channel = CHAN_ITEM,
volume = 1.0,
sound = "weapons/M98/handle.mp3"
})

sound.Add({
name = "M98_Deploy",
channel = CHAN_ITEM,
volume = 1.0,
sound = "weapons/M98/draw.mp3"
})

sound.Add({
name = "M98_Draw",
channel = CHAN_ITEM,
volume = 1.0,
sound = "weapons/M98/draw_2.mp3"
})
Niesson 2022 年 6 月 29 日 下午 2:44 
sound.Add({
name = "M98_Foley",
channel = CHAN_ITEM,
volume = 1.0,
sound = "weapons/M98/foley.mp3"
})

sound.Add({
name = "M98_Clipout",
channel = CHAN_ITEM,
volume = 1.0,
sound = "weapons/M98/clipout.mp3"
})

sound.Add({
name = "M98_Clipin",
channel = CHAN_ITEM,
volume = 1.0,
sound = "weapons/M98/clipin.mp3"
})

sound.Add({
name = "M98_Boltback",
channel = CHAN_ITEM,
volume = 1.0,
sound = "weapons/M98/boltback.mp3"
})

sound.Add({
name = "M98_Boltforward",
channel = CHAN_ITEM,
volume = 1.0,
sound = "weapons/M98/boltforward.mp3"
})
JandarGame 2019 年 10 月 13 日 下午 10:37 
What is TTT?
JohnnyPC 2018 年 6 月 8 日 下午 5:47 
can you make a versoin that uses the 7th slot (like any other Traitor/Detective weapon)
Arcane 2015 年 2 月 21 日 上午 7:27 
ok it works now XD thanks tho
Zuko  [作者] 2015 年 2 月 19 日 下午 3:13 
Wierd, That isn't my fault its the steam workshops fault. It is broken sometimes.
Arcane 2015 年 2 月 19 日 下午 1:01 
doesnt want to download...
Zuko  [作者] 2015 年 2 月 4 日 下午 9:51 
You are spawning it in sandbox, it only works in ttt
Dirty-B 2015 年 2 月 4 日 下午 9:46 
so i can hold the gun in my hands but sights wont work and fire wont work it says to check the console any help?