Garry's Mod

Garry's Mod

TTT Detective Rifle
20 Comments
Niesson 29 Jun, 2022 @ 2:53pm 
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 29 Jun, 2022 @ 2:44pm 
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 29 Jun, 2022 @ 2:44pm 
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 13 Oct, 2019 @ 10:37pm 
What is TTT?
JohnnyPC 8 Jun, 2018 @ 5:47pm 
can you make a versoin that uses the 7th slot (like any other Traitor/Detective weapon)
Arcane 21 Feb, 2015 @ 7:27am 
ok it works now XD thanks tho
Zuko  [author] 19 Feb, 2015 @ 3:13pm 
Wierd, That isn't my fault its the steam workshops fault. It is broken sometimes.
Arcane 19 Feb, 2015 @ 1:01pm 
doesnt want to download...
Zuko  [author] 4 Feb, 2015 @ 9:51pm 
You are spawning it in sandbox, it only works in ttt
Dirty-B 4 Feb, 2015 @ 9:46pm 
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  [author] 31 Jan, 2015 @ 12:30pm 
They should be working.
Karma 30 Jan, 2015 @ 5:20pm 
10/10 would rate again.
Zuko  [author] 30 Jan, 2015 @ 6:24am 
Ill check it out this afternoon.
Rat 29 Jan, 2015 @ 11:40pm 
Bolt pull sounds are silent for me. Am I doin it wrong?
Zuko  [author] 27 Jan, 2015 @ 9:16am 
It does around 60 damage bodyshot and instakill if headshot.
Phill_Cipher 27 Jan, 2015 @ 8:52am 
kill*
Phill_Cipher 27 Jan, 2015 @ 8:52am 
is this a one hit kil sniper (not headshoot)?
Zuko  [author] 25 Jan, 2015 @ 2:45pm 
No, Its for TTT.
LiminalSpaces 25 Jan, 2015 @ 1:55pm 
does it work for sandbox?
Zuko  [author] 24 Jan, 2015 @ 7:18pm 
If you have any problems, let me know.