Garry's Mod

Garry's Mod

Molotov Cocktail for TTT
78 Comments
Zassa May 29, 2021 @ 5:56am 
Apparently the weapon is creating Lua errors, been using it for a while but today's the first time they popped up. Any ideas what it could be?
Lets_Twist Feb 17, 2021 @ 2:10am 
lmao no, this is the finnish weapon that they used against the ussr
hawky_ Mar 2, 2020 @ 10:35pm 
I confirm that this mod is still working perfectly normal, even in my own hosted server and private server.
kuma7 May 2, 2019 @ 5:28am 
I remenber using this weapon on several servers some years ago, but the managers winded up uninstalling the addon because of the "too many indices for index buffer" error (too many particles I guess). Was it fixed?
Maul Pax  [author] Nov 27, 2018 @ 8:05am 
It's still working, I just set up a completely new client and server (also because I didn't have GM installed anymore, so it really is a fresh install) ...the addon shouldn't need any external textures or models, but just to mention, I have CS:GO installed.

Can somebody else confirm it to be working?

I'd guess it's your server not transfering the textures/models to the client...

Please answer in the bug tracking thread.
Maul Pax  [author] Nov 27, 2018 @ 5:25am 
Thank you for reporting the bug, I've moved your comment to the bugtracking thread in order to keep the comment section clean.
crook Nov 26, 2018 @ 5:17pm 
I'm not sure if the material is missing or whaaaaat. It's missing on my server.
Lets_Twist Jun 9, 2017 @ 2:38pm 
You must write books :D I write about problems as they arise
Maul Pax  [author] Jun 9, 2017 @ 1:34pm 
I fixed the molotov and reworked a significant part of the visuals because I wasn't content with the particle effects anymore. The result is more realistic smoke and the fire not being stuck mid-air when you throw it against a wall.
Please let me know if you encounter further issues. I would also be grateful if you could test the addon in multiplayer because I myself have a very limited setup and testing environment.
Lets_Twist May 15, 2017 @ 6:15am 
Write here when you fix it pls
Maul Pax  [author] May 13, 2017 @ 10:46am 
I've not played Gmod in a while and didn't check whether the molotov is still working as intended for quite a long time now. But I'll definitely try to fix it as soon as possible.
Lets_Twist May 12, 2017 @ 11:26am 
When i take molotov i cant use "last weapon used"
sankecult Nov 9, 2016 @ 1:56pm 
Hey this thing is OP af in ZARP rn
Blast Shadow Mar 12, 2016 @ 12:16pm 
Well, I have a lot of time on my hands after today since the restaurant I work at closes for the season... reopening at the end of june for the 4th of july :p so I have a huge amount of time to work on a map, and maybe this time I wont mess it up real bad :P I need to know what the code/model is for the molotov when I go to add it in, so I'll message you about that later, but for now I'll get working on it :)
Maul Pax  [author] Mar 12, 2016 @ 12:49am 
Yeah I won't be a great help creating maps though but I'll try to be of use if you need help regarding the molotov :)
Blast Shadow Mar 11, 2016 @ 7:26pm 
Awesome, thanks, yeah sorry I wasn't able to help you, I was at work myself :P It'll be amazing being able to keep the addon, because I wanted to make maps and making one with the molotov in it (kinda like the secret knife) might be cool :) (Or go horribly wrong and cause a lot of RDM) I'll keep in touch with you on that in case I ever do :)
Maul Pax  [author] Mar 11, 2016 @ 2:53pm 
Ok my server is actually working - against all my expectations - and the addon should do it's thing as well!
I hope that satisfies your needs and those of the community :)
Maul Pax  [author] Mar 11, 2016 @ 2:36pm 
Oh nevermind I'll just do it right now are you able to test it in a few minutes? My server isn't working at the moment ...
Maul Pax  [author] Mar 11, 2016 @ 2:34pm 
I generally am fine with updating the addon as a whole because I think it would be of use for everyone. As you pointed out it probably is a bit unfair being able to buy a molotov for each kill.
Give me a day or so I'm facing a lot of work recently :)
Blast Shadow Mar 11, 2016 @ 2:11pm 
So, although what you put is accurate, it can't help me, as my server host works addons by having me make a collection and subscribing to addons, then putting them in the collection. It's a really easy way to get addons, except that non of the .gma files are labeled properly in the addons folder, and they seem compacked in some way, as non of the .gma files have the same file size as the one on my client side. Is there any way you know of that can help me, I really like the addon but it's a bit of a pain when the server is constantly on fire from the 5 moli's 2 t's can throw in one round. At this point the only thing I know that can help me is if you re-released the addon with a limited stock setting (have 2 addons, one with unlimited stock, one with limited stock) or if you gave me a direct link to download the entire addon and that way I can install it into the addon folder by uploading the file.
Blast Shadow Mar 11, 2016 @ 9:47am 
Yeah, I was exploring and found it after many google attempts. The server is deticated and not on my hard drive so it was annoying to find on service's website but I found it and copied the limited stock line from the knife to the moli (meanwhile I changed the knife damage from 50 to 999) but what you said here is accurate for anyone who downloads the mod in the future and needs this information :)
Maul Pax  [author] Mar 11, 2016 @ 7:11am 
Then open the file with notepad or whatever you prefer and search for "LimitedStock" which in the addon uploaded here is set to false meaning you're allowed to buy countless molotovs. Set this option to true and save the file. If I recall it correctly the molotov should now be limited to only be bought once per round. I don't know whether custom values are allowed or if there's another option for it but that should pretty much do it for you.
You of course have to put the whole addon folder into your server's "addons" folder. That's it, however I would recommend you to make use of fast download because it takes hours for players to get the server's local addons.
I hope this was helpful to you, have fun and don't hesitate to ask further questions :)
Oh yeah sorry for my english I hope it's understandable.
Maul Pax  [author] Mar 11, 2016 @ 7:11am 
I'm not sure whether I can give a full description because I don't remember everything I did back then but the following may help you:
You have to subscribe to the addon, it will then be downloaded to the garrysmod folder which can be found in your SteamApps folder (in "common").
I suppose you have your own gameserver running, so I won't describe where your steam library is located on your hard drive. If you need help on this please google it. What you want to do is searching for a path that looks like ../SteamApps/common/GarrysMod/garrysmod/addons. There should be a file called molotov_cocktail or molotov_cocktail_for_ttt with a random number at the end. You are able to unpack this file with several tools, I think I used GmadExtractor.
Unpacked, there will be several folders, one of them called "lua". Navigate to ../lua/weapons/molotov_cocktail.lua
Blast Shadow Mar 10, 2016 @ 5:01pm 
Hey I want to change it so that the moli can't be bought more than once, how do I do that?
Feexy Feb 25, 2016 @ 7:04am 
i downloaded and i loved it 10/10
Maul Pax  [author] May 13, 2015 @ 9:33am 
Ok I hope the problem is solved now. If any further issues occur please inform me. Thanks in advance :-)
Sigma May 12, 2015 @ 12:09pm 
i tested it in my server, and it works with that solution
Maul Pax  [author] May 12, 2015 @ 7:48am 
And this solution is working? Because spectators should still be ignited during the second statement

elseif v:IsWeapon() == 0 then
v:Ignite( 10 , 0 )

This isn't the case? If it's actually working I'll just add this and upload it ...
Sigma May 6, 2015 @ 5:38am 
it seems like gmod doesn't recognize spectators as death players, so they can still ignite with the explosion, so i had to add

and (not v:IsSpec())

in the same line 104
silky May 1, 2015 @ 9:01pm 
what servers is it on anyone know
Luk Apr 7, 2015 @ 8:25am 
Thanks for the fix! :)
Maul Pax  [author] Apr 7, 2015 @ 7:44am 
Ok basically thats what I did :-) thanks for answering ...
Luk Apr 7, 2015 @ 7:34am 
I've fixed it yesterday xD What a timing :P

In sent_molotov.lua on line 104 find
if v:IsPlayer() then
and replace with
if v:IsPlayer() and v:Alive() then

same with sent_molotov_timed.lua in line 108

That fixed it reliably here on my server.
Maul Pax  [author] Apr 7, 2015 @ 7:30am 
I tried to fix the burning ghosts ... But at the moment I am not able to arrange the mentioned situation with several players. When you play the next time I really would appreciate if you could try this again (I assume you have an own server) and report whether dead players can be ignited or not :-)
Luk Mar 31, 2015 @ 2:29pm 
Late, but still a big thanks for fixing this error.

However, we've come across another problem. The molotov can ignite spectators (dead players) entities, which show as burning "ghosts". When these spectators then "touch" a living player, they are being damaged by fire. These damages do not show in the log and I suspect that there is a check missing for IsAlive when igniting entities close to the impact position.
drachy ♥ Mar 16, 2015 @ 4:15pm 
Appreciate you taking your time to fix it, though!
Maul Pax  [author] Mar 16, 2015 @ 1:29pm 
Hmm did it. Wasn't a big deal, just a command that has been removed with the update.
Maul Pax  [author] Mar 16, 2015 @ 11:39am 
I am sorry for the addon causing problems. As I do not play Gmod that often at the moment it will take some time for me to look after the issue.

Nevertheless I appreciate that you reported the error. Thanks.
drachy ♥ Mar 16, 2015 @ 8:40am 
Can confirm the lua error below. Nothing game-breaking but it is irritatingly flashing that warning.
Luk Mar 9, 2015 @ 12:38pm 
The latest gmod update causes this error:

[ERROR] lua/effects/molotov_explosion/init.lua:31: attempt to call method 'VelocityDecay' (a nil value)
1. unknown - lua/effects/molotov_explosion/init.lua:31
CYBERVIPER Oct 4, 2014 @ 5:43pm 
"its not a molotov its a fucking nuke molotov"-Gassy Mexican
freedom man Sep 6, 2014 @ 4:51pm 
OFFICIAL SEANANNERS SEAL OF APPROVAL
Fryman Aug 26, 2014 @ 7:39am 
Works fine but shows in hand after using it when selecting another weapon. Not sure why it does that. Works great though
roBolo Aug 17, 2014 @ 2:13am 
Seananners (Y)
unkee Jul 23, 2014 @ 4:20pm 
Seananners approved!
TheLazyRock Jul 20, 2014 @ 7:13am 
its okay man its too good already
Maul Pax  [author] Jul 20, 2014 @ 7:12am 
I tried to but I wasn't able to solve the kill credit problem. Maybe i will try it again in a few days.
The problem is that I don't know how to refer to the player that threw the molotov in the SetPhysicsAttacker() command and i don't know how to use this command for ent:Ignite() and didn't find a working alternative.
TheLazyRock Jul 19, 2014 @ 8:39am 
brilliant my friends scream while the burining 11/10- ing
DUCE Jul 17, 2014 @ 12:17am 
which button is the one that is used to buy weapons. i totaly forgot
zerf Jul 16, 2014 @ 8:20pm 
If a player is killed by fire created by the molotov, the kill is not credited to the molotov thrower, but the world.