Garry's Mod

Garry's Mod

TTT Grav Nade
27 Comments
Irish Dragon 25 Feb, 2023 @ 4:28pm 
@ForgetfulCat thanks! will give it a try
ForgetfulCat  [author] 25 Feb, 2023 @ 3:04pm 
@Irish Dragon, I believe if you put "SWEP.detonate_timer = 2" in the shared.lua (without the quotation marks), that would do it. The default timer is 5 for all TTT grenades, you can change this value to whatever you want, 2 would be pretty quick.
Don't quote me on this tho, it's been a looong time since i did any gmod coding. :)
Irish Dragon 25 Feb, 2023 @ 2:17pm 
doubt you still pay attention to this but any way to lower the cooktimer ?
Cattos 24 Feb, 2022 @ 6:50pm 
Please make american dad map next.


Love the content!
fskin 7 Mar, 2019 @ 8:33am 
The addon doesn't save Perks (Body Armor, other addons like Zombie Perks, Hermes Boots etc.) after unragdolling.
ForgetfulCat  [author] 25 Aug, 2017 @ 7:11pm 
Oh, good catch! I'll take a gander at that, I didn't even think of that happening.
Lykrast 25 Aug, 2017 @ 4:52pm 
Ok probably better with the actual behavior my bad :
If you get to next round while ragdolled, your camera get stuck and you're basically no longer here, and your console spams

[ERROR] gamemodes/terrortown/gamemode/cl_targetid.lua:43: attempt to call method 'GetTraitor' (a nil value)
1. unknown - gamemodes/terrortown/gamemode/cl_targetid.lua:43
Lykrast 25 Aug, 2017 @ 4:27pm 
There's some big issues that happen when a new round starts and you're ragdolled. Probably be worth to add something to automatically unragdoll people just before the next round starts.
ForgetfulCat  [author] 11 Dec, 2016 @ 12:05pm 
If you use Steam Workshop for your server, yes. I don't though; I prefer working with files I can modify.
Vis 11 Dec, 2016 @ 9:24am 
Oh, and by the way, you don't need to extract the addon to install it if the server has a steam workshop collection you can just add this to the collection.
http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers
ForgetfulCat  [author] 10 Dec, 2016 @ 2:33pm 
That'd be cool. If you figure out ways to fix those two things, you could definitely upload it to workshop, and I'd delete this one. I just reuploaded this from someone else anyway.
Vis 10 Dec, 2016 @ 1:33pm 
As a note to my last comment: I can take a look at the ragdoll sticking/losing credits and porting to Sandbox. Shouldn't be too difficult.
Vis 10 Dec, 2016 @ 1:33pm 
I could take a look at it if you want. I might be able to figure something out.
ForgetfulCat  [author] 30 Nov, 2016 @ 8:38am 
It can't be used in Sandbox in its current state, but the code may be able to be modified so that it could be. That's a task well beyond my capabilities though. :/
chroamor 29 Nov, 2016 @ 12:02pm 
is it posible to use/port it to sandbox?
Lykrast 3 Dec, 2015 @ 11:13am 
Well if that's the case then it's alright. Good luck with it.
ForgetfulCat  [author] 3 Dec, 2015 @ 9:26am 
I was thinking the unstuck command that is used most commonly in Prop Hunt could be automatically run after the player unragdolls. However, I'm not enough of a coder to know how to do it. I've tried some things, but nothing has worked yet. I have people who can help though, so it's most likely only a matter of time until this issue is fixed.
Lykrast 1 Dec, 2015 @ 10:26pm 
For the credit part, I think you could just store the credits as integers for each player before you ragdoll them, then once they unragdoll check for that stored value and change their credit to the appropriate number.

The per-player storage could be done using this : http://wiki.garrysmod.com/page/Entity/SetNWInt
As for the fuctions to know the number of credits and how to set them, you'll probably have to dig in the TTT files, but I'm sure that won't take that long.

The stuck part is gonna be much more of an hassle to fix if you want my advice, but I know the default TTT teleporter has a check to see if the player can fit into the teleported location. Problem is the teleporter just cancels the teleport, whereas here it would need to find a valid position, but I'm sure it's still doable if you (or someone else) can figure it out.
ForgetfulCat  [author] 1 Dec, 2015 @ 9:18pm 
@Cryoraptor That is probably why. That and if you're a traitor or detective, you lose your credits after you unragdoll. Those two things can be pretty annoying, but this addon is so dang fun to mess with that it usually doesn't matter too much.
If you could learn how to fix it though, that'd be awesome!
Cryoraptor 1 Dec, 2015 @ 6:21pm 
I think the reason he took it down is he couldn't figure out how to fix the problems with it perhaps? It sends players flying all over but when they are unragdolled they get stuck in any part of the map they are near. I"m not sure how to fix this but I'll have to disect it.
Lykrast 25 Apr, 2015 @ 12:48pm 
Cool enough, I'll take it.
ForgetfulCat  [author] 25 Apr, 2015 @ 10:33am 
@Lykrast It's a weapon for the traitor shop that has interesting effects. It's hard to describe, so I'll upload a video of what it does.
Lykrast 25 Apr, 2015 @ 7:02am 
So... what does it do exactly ?
DimitrisTheGentlemanGreece 17 Apr, 2015 @ 11:42pm 
Its realy cool illusion
DimitrisTheGentlemanGreece 17 Apr, 2015 @ 11:42pm 
yea
ForgetfulCat  [author] 17 Apr, 2015 @ 9:49am 
@Jim-SnoopDog That's actually really cool xD. I know what I'm going to be doing for the next few days.
DimitrisTheGentlemanGreece 17 Apr, 2015 @ 7:34am 
scroll up and down the photo and u will see is moving