Garry's Mod

Garry's Mod

TnT Launcher!
30 条留言
shotgundiplomat1993 2016 年 8 月 2 日 下午 8:25 
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™  [作者] 2016 年 8 月 2 日 下午 12:50 
Wow, 7k subscribers! Thanks a lot :heart:
shotgundiplomat1993 2016 年 8 月 1 日 下午 9:50 
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 2016 年 8 月 1 日 下午 3:14 
anyway great gun for a first swep pretty good one thing we need rapid fire sounds like fun
naranara | Flutterpony 2016 年 8 月 1 日 下午 3:09 
...which I misread as tit launcher.
Simply Cinclair 2016 年 8 月 1 日 下午 3:00 
-_- nothing...
DrengUP™  [作者] 2016 年 8 月 1 日 下午 12:59 
W-what?
Simply Cinclair 2016 年 7 月 31 日 下午 10:10 
nothing...is...perfect...but me...THE GOD OF DEATH AND DARKNESS! THE MAKER OF ALL THINGS DEADLY!!!
Slapshot300 2016 年 7 月 30 日 下午 4:56 
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
𝑲𝒖𝒅𝒆𝒍 2016 年 7 月 29 日 上午 8:00 
I like it!
Subset_ 2016 年 7 月 29 日 上午 7:06 
"New weapon is good!" C Heavy
DrengUP™  [作者] 2016 年 7 月 28 日 下午 6:29 
**Update Released! Now TnT Launcher can kill players!!**
DrengUP™  [作者] 2016 年 7 月 28 日 下午 6:09 
ιɢ★ ℭℴ𝓂𝓂นภเຮ𝓂 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 2016 年 7 月 28 日 下午 6:03 
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™  [作者] 2016 年 7 月 28 日 下午 5:23 
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 2016 年 7 月 28 日 下午 4:57 
Uhhhhhh.......what ammo does it use (Cause it ran out)
roachisserie chicken 2016 年 7 月 28 日 下午 4:08 
Oh hey Darken.
Hedron 2016 年 7 月 28 日 下午 3:59 
Good to see more people showing off their work in the workshop. Keep it up.
(also @ ιɢ★ ℭℴ𝓂𝓂นภเຮ𝓂 : Good you pointed that out)
roachisserie chicken 2016 年 7 月 28 日 下午 3:04 
To fix the timer error just put an IsValid before any of the code.
[code]
if !IsValid( VariableForTnT ) then return end
[/code]
kimberlycunningham25 2016 年 7 月 28 日 下午 2:58 
cool
DrengUP™  [作者] 2016 年 7 月 28 日 上午 11:15 
Well if you guys want i can enable it to kill players again!
Benabob__d 2016 年 7 月 28 日 上午 6:24 
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™  [作者] 2016 年 7 月 27 日 下午 2:59 
I come with TnT because i had no idea for other name. Dynamite Launcher sounds good!
Feriy 2016 年 7 月 27 日 下午 1:42 
Wouldn't this be called the Dynamite Launcher? It sounds cooler.
DrengUP™  [作者] 2016 年 7 月 27 日 上午 11:57 
Thanks! One day i may recreate the swep into a c_model.
Grixis 2016 年 7 月 27 日 上午 8:48 
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 2016 年 7 月 26 日 上午 10:26 
Okay, thanks bro!
DrengUP™  [作者] 2016 年 7 月 26 日 上午 10:23 
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 2016 年 7 月 26 日 上午 3:27 
Good Idea, and could you also some time get c_models up in this bitch?
DrengUP™  [作者] 2016 年 7 月 25 日 下午 10:44 
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.