Garry's Mod

Garry's Mod

TTT Detective Rifle
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?
Zuko  [作者] 2015 年 1 月 31 日 下午 12:30 
They should be working.
Karma 2015 年 1 月 30 日 下午 5:20 
10/10 would rate again.
Zuko  [作者] 2015 年 1 月 30 日 上午 6:24 
Ill check it out this afternoon.
Rat 2015 年 1 月 29 日 下午 11:40 
Bolt pull sounds are silent for me. Am I doin it wrong?
Zuko  [作者] 2015 年 1 月 27 日 上午 9:16 
It does around 60 damage bodyshot and instakill if headshot.
Phill_Cipher 2015 年 1 月 27 日 上午 8:52 
kill*
Phill_Cipher 2015 年 1 月 27 日 上午 8:52 
is this a one hit kil sniper (not headshoot)?
Zuko  [作者] 2015 年 1 月 25 日 下午 2:45 
No, Its for TTT.
LiminalSpaces 2015 年 1 月 25 日 下午 1:55 
does it work for sandbox?
Zuko  [作者] 2015 年 1 月 24 日 下午 7:18 
If you have any problems, let me know.