Garry's Mod

Garry's Mod

Molotov Cocktail for TTT
78 kommentarer
Zassa 29. maj 2021 kl. 5:56 
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 17. feb. 2021 kl. 2:10 
lmao no, this is the finnish weapon that they used against the ussr
hawky_ 2. mar. 2020 kl. 22:35 
I confirm that this mod is still working perfectly normal, even in my own hosted server and private server.
kuma7 2. maj 2019 kl. 5:28 
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  [ophavsmand] 27. nov. 2018 kl. 8:05 
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  [ophavsmand] 27. nov. 2018 kl. 5:25 
Thank you for reporting the bug, I've moved your comment to the bugtracking thread in order to keep the comment section clean.
crook 26. nov. 2018 kl. 17:17 
I'm not sure if the material is missing or whaaaaat. It's missing on my server.
Lets_Twist 9. juni 2017 kl. 14:38 
You must write books :D I write about problems as they arise
Maul Pax  [ophavsmand] 9. juni 2017 kl. 13:34 
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 15. maj 2017 kl. 6:15 
Write here when you fix it pls
Maul Pax  [ophavsmand] 13. maj 2017 kl. 10:46 
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 12. maj 2017 kl. 11:26 
When i take molotov i cant use "last weapon used"
sankecult 9. nov. 2016 kl. 13:56 
Hey this thing is OP af in ZARP rn
Blast Shadow 12. mar. 2016 kl. 12:16 
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  [ophavsmand] 12. mar. 2016 kl. 0:49 
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 11. mar. 2016 kl. 19:26 
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  [ophavsmand] 11. mar. 2016 kl. 14:53 
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  [ophavsmand] 11. mar. 2016 kl. 14:36 
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  [ophavsmand] 11. mar. 2016 kl. 14:34 
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 11. mar. 2016 kl. 14:11 
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 11. mar. 2016 kl. 9:47 
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  [ophavsmand] 11. mar. 2016 kl. 7:11 
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  [ophavsmand] 11. mar. 2016 kl. 7:11 
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 10. mar. 2016 kl. 17:01 
Hey I want to change it so that the moli can't be bought more than once, how do I do that?
Feexy 25. feb. 2016 kl. 7:04 
i downloaded and i loved it 10/10
Maul Pax  [ophavsmand] 13. maj 2015 kl. 9:33 
Ok I hope the problem is solved now. If any further issues occur please inform me. Thanks in advance :-)
Sigma "One of a Kind" 12. maj 2015 kl. 12:09 
i tested it in my server, and it works with that solution
Maul Pax  [ophavsmand] 12. maj 2015 kl. 7:48 
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 "One of a Kind" 6. maj 2015 kl. 5:38 
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 1. maj 2015 kl. 21:01 
what servers is it on anyone know
Luk 7. apr. 2015 kl. 8:25 
Thanks for the fix! :)
Maul Pax  [ophavsmand] 7. apr. 2015 kl. 7:44 
Ok basically thats what I did :-) thanks for answering ...
Luk 7. apr. 2015 kl. 7:34 
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  [ophavsmand] 7. apr. 2015 kl. 7:30 
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 31. mar. 2015 kl. 14:29 
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 ♥ 16. mar. 2015 kl. 16:15 
Appreciate you taking your time to fix it, though!
Maul Pax  [ophavsmand] 16. mar. 2015 kl. 13:29 
Hmm did it. Wasn't a big deal, just a command that has been removed with the update.
Maul Pax  [ophavsmand] 16. mar. 2015 kl. 11:39 
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 ♥ 16. mar. 2015 kl. 8:40 
Can confirm the lua error below. Nothing game-breaking but it is irritatingly flashing that warning.
Luk 9. mar. 2015 kl. 12:38 
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 4. okt. 2014 kl. 17:43 
"its not a molotov its a fucking nuke molotov"-Gassy Mexican
freedom man 6. sep. 2014 kl. 16:51 
OFFICIAL SEANANNERS SEAL OF APPROVAL
Fryman 26. aug. 2014 kl. 7:39 
Works fine but shows in hand after using it when selecting another weapon. Not sure why it does that. Works great though
roBolo 17. aug. 2014 kl. 2:13 
Seananners (Y)
unkee 23. juli 2014 kl. 16:20 
Seananners approved!
TheLazyRock 20. juli 2014 kl. 7:13 
its okay man its too good already
Maul Pax  [ophavsmand] 20. juli 2014 kl. 7:12 
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 19. juli 2014 kl. 8:39 
brilliant my friends scream while the burining 11/10- ing
DUCE_ 17. juli 2014 kl. 0:17 
which button is the one that is used to buy weapons. i totaly forgot
zerf 16. juli 2014 kl. 20:20 
If a player is killed by fire created by the molotov, the kill is not credited to the molotov thrower, but the world.