Garry's Mod

Garry's Mod

TnT Launcher!
30 Comments
shotgundiplomat1993 2 Aug, 2016 @ 8:25pm 
thoguh i wish the tnt stayed if they didnt hit the target since an alt fire can detonate it
sort of like the TF2 Stickybomb Launcher minus the sticky part about it.
DrengUP™  [author] 2 Aug, 2016 @ 12:50pm 
Wow, 7k subscribers! Thanks a lot :heart:
shotgundiplomat1993 1 Aug, 2016 @ 9:50pm 
feels like a dead space 2 detonator on steroids!even though i never used it in that game, ive heard its a great trap weapon
Simply Cinclair 1 Aug, 2016 @ 3:14pm 
anyway great gun for a first swep pretty good one thing we need rapid fire sounds like fun
naranara | Flutterpony 1 Aug, 2016 @ 3:09pm 
...which I misread as tit launcher.
Simply Cinclair 1 Aug, 2016 @ 3:00pm 
-_- nothing...
DrengUP™  [author] 1 Aug, 2016 @ 12:59pm 
W-what?
Simply Cinclair 31 Jul, 2016 @ 10:10pm 
nothing...is...perfect...but me...THE GOD OF DEATH AND DARKNESS! THE MAKER OF ALL THINGS DEADLY!!!
Slapshot300 30 Jul, 2016 @ 4:56pm 
good job! im also a new-timer at making sweps (accept sound guns on garrysmod.org , but those dont count) This is worth your effort
𝑲𝒖𝒅𝒆𝒍 29 Jul, 2016 @ 8:00am 
I like it!
Subset_ 29 Jul, 2016 @ 7:06am 
"New weapon is good!" C Heavy
DrengUP™  [author] 28 Jul, 2016 @ 6:29pm 
**Update Released! Now TnT Launcher can kill players!!**
DrengUP™  [author] 28 Jul, 2016 @ 6:09pm 
ιɢ★ ℭℴ𝓂𝓂นภเຮ𝓂 and Darken217: Thank both of you! it worked! No more lua erros! and thanks Darken217 for the compliment:heart:! Now that everything is working fine i will clean up the comments and make a update for the swep :hthappy:
Hedron 28 Jul, 2016 @ 6:03pm 
There. The line should look like this.
timer.Simple( 7, function() if ( IsValid( self ) ) then self.Entity:Remove() end end )

I'd have a few suggestions, but it's a good start.
Also, you don't have to put everything into as less lines as possible.
As your code is pretty much only for you, try to keep it clean so you spend less time tracking down typos and mistakes.
But like I said. A good start. My SWEPs were no way better when they first released.
DrengUP™  [author] 28 Jul, 2016 @ 5:23pm 
Slenderbrine: Just click with your mousewheel in the swep icon, it will spawn ammo.


ιɢ★ ℭℴ𝓂𝓂นภเຮ𝓂 and Darken217: I did what you told to me but still wont work, it says "function arguments expected near 'end'".

the timer looks like this:
"timer.Simple( 7, function() if ( !IsValid( ent ) ) then self.Entity:Remove end)"

and its inside "function ENT:Initialize()"

may i'm stupid and i'm doing wrong...
Slenderbrine 28 Jul, 2016 @ 4:57pm 
Uhhhhhh.......what ammo does it use (Cause it ran out)
roachisserie chicken 28 Jul, 2016 @ 4:08pm 
Oh hey Darken.
Hedron 28 Jul, 2016 @ 3:59pm 
Good to see more people showing off their work in the workshop. Keep it up.
(also @ ιɢ★ ℭℴ𝓂𝓂นภเຮ𝓂 : Good you pointed that out)
roachisserie chicken 28 Jul, 2016 @ 3:04pm 
To fix the timer error just put an IsValid before any of the code.
[code]
if !IsValid( VariableForTnT ) then return end
[/code]
kimberlycunningham25 28 Jul, 2016 @ 2:58pm 
cool
DrengUP™  [author] 28 Jul, 2016 @ 11:15am 
Well if you guys want i can enable it to kill players again!
Benabob__d 28 Jul, 2016 @ 6:24am 
This is amazing but i would love it to kill players. Me and my friend play multiplay using hamachi and this would really P him off
DrengUP™  [author] 27 Jul, 2016 @ 2:59pm 
I come with TnT because i had no idea for other name. Dynamite Launcher sounds good!
Feriy 27 Jul, 2016 @ 1:42pm 
Wouldn't this be called the Dynamite Launcher? It sounds cooler.
DrengUP™  [author] 27 Jul, 2016 @ 11:57am 
Thanks! One day i may recreate the swep into a c_model.
Grixis 27 Jul, 2016 @ 8:48am 
Even if you saved, I think you'd still have to rebuild the weapon onto a c_model anyways. Model looks pretty good for a beginner weapon too.
ballsaSTEEL2001 26 Jul, 2016 @ 10:26am 
Okay, thanks bro!
DrengUP™  [author] 26 Jul, 2016 @ 10:23am 
c_model is the playermodel's hand displayed on the swep right? Well i think i'm not going to change the swep's model because i'm a dumbass and i forgot to save the model in the construction kit. Maybe one day i will do it!
ballsaSTEEL2001 26 Jul, 2016 @ 3:27am 
Good Idea, and could you also some time get c_models up in this bitch?
DrengUP™  [author] 25 Jul, 2016 @ 10:44pm 
To make the lua erro stop i will need remove a string that makes the TnT dissapear after 6 seconds. If you guys want i can remove it so the error will stop showing up but the TnTs will stay on the map until you use the option "Clean Up Everything" or an NPC touch it.