Garry's Mod

Garry's Mod

Serious Sam SWEPs
MaxSpec Aug 13, 2015 @ 3:38am
Flamethrower issue.
Flamethrower doesn't have any ammo! And then i can't fire with it. So. I need some help.
< >
Showing 1-15 of 17 comments
MaxSpec Aug 13, 2015 @ 3:38am 
Any ideas why i can't use it?
upset  [developer] Aug 13, 2015 @ 2:20pm 
Is this happening with Cannon too?
MaxSpec Aug 15, 2015 @ 6:15am 
Yes,it does.
upset  [developer] Aug 15, 2015 @ 4:45pm 
Try creating lua file in garrysmod/lua/autorun with these:

game.AddAmmoType({name = "Cannonball"})
game.AddAmmoType({name = "Napalm"})
bsmiller710 Sep 1, 2015 @ 9:42pm 
how do you do that
Geisteskrankenchan Sep 15, 2015 @ 11:17pm 
Originally posted by upset:
Try creating lua file in garrysmod/lua/autorun with these:

game.AddAmmoType({name = "Cannonball"})
game.AddAmmoType({name = "Napalm"})
все сломал
MaxSpec Sep 16, 2015 @ 6:10am 
Исправлено. Глюк был в том,что был DarkRP,который мешал.
Sploink Aug 11, 2016 @ 6:12am 
well the flames are invisable
Arkiss🌟 Oct 29, 2016 @ 7:08am 
To fix this please..

[Serious Sam SWEPs] lua/effects/ss_flamethrower/init.lua:31: bad argument #2 to '__mul' (number expected, got nil)
1. __mul - [C]:-1
2. unknown - lua/effects/ss_flamethrower/init.lua:31
ahnok Jan 4, 2017 @ 1:29am 
[Serious Sam SWEPs] lua/effects/ss_flamethrower/init.lua:31: bad argument #2 to '__mul' (number expected, got nil)
1. __mul - [C]:-1
2. unknown - lua/effects/ss_flamethrower/init.lua:31

Same here. advice is needed
Melody Feb 20, 2017 @ 10:09am 
To author: In order to fix the Flamethrower issue:

[ERROR] lua/effects/ss_flamethrower/init.lua:31: bad argument #2 to '__mul' (number expected, got nil) 1. __mul - [C]:-1 2. unknown - lua/effects/ss_flamethrower/init.lua:31

you should declare the "frametime" variable in lua\effects\ss_flamethrower\init.lua, under "EFFECT:Render()", since it is a nil value:

function EFFECT:Render() local frametime = FrameTime() if self.HitPos and self.Pos:Distance(self.HitPos) <= 32 then self.Pos = self.HitPos + self.Normal*frametime*1200 +self.Normal:Angle():Up()*frametime*self.Size/1.85 end ...

To users: To just avoid the error you can simply drag the file "addons\serious_sam_sweps_258523980.gma" to "bin\gmad.exe", then open "addons\serious_sam_sweps_258523980\lua\effects\ss_flamethrower\init.lua", do the tweak, save the file and just open GMod.
DS-OP Marcia V. May 21, 2017 @ 2:35am 
@Melody~ What do you mean for tweak im not English so i dont understand the mean of Tweak in the files
MaxSpec May 23, 2017 @ 8:56pm 
Guys,this is really an old post.. If you have dark Rp,remove it.
fatty fat Sep 19, 2018 @ 12:00am 
when ever i use the flame thrower it says "Serious Sam SWEP is creating script errors" does anyone know how to fix?
Melody Sep 19, 2018 @ 3:24am 
Originally posted by Don’t talk to me!:
when ever i use the flame thrower it says "Serious Sam SWEP is creating script errors" does anyone know how to fix?
Check my answer above.
< >
Showing 1-15 of 17 comments
Per page: 1530 50