Garry's Mod

Garry's Mod

Molotov Cocktail
Showing 1-8 of 8 entries
Update: 30 Nov, 2014 @ 7:47am

More FPS optimization for the fire that is created by the Molotov.
Slight edits to the code in terms of readability, again. Also added more isValid checks just in-case.
Reduced the FOV slightly to HL2-esque levels.
Set the material of the Molotov Cocktail world model to something more resembling of the view model.
The bug where a bottle appears to have been shoved up your player's back is now fixed.
The weapon now has a more-or-less proper world model - thank you SWEP Construction Kit (NOTE: Please read the below!)

There is but only one bug that I have found, the world model only appears in your hand IF you re-equip the weapon again. This is not my doing (as far as I am aware), but it is a problem with GMod's base code. SWEP:Deploy() is not called on the client on a player's first equip for reasons unknown. This bug is not game breaking.

If you encounter any other problems excluding the one above, please report them in the bugs discussion.

Update: 12 Oct, 2014 @ 7:35am

More optimization added for when the fire entities are created (less FPS lag when the molotov is spammed in a single location) and the spinning code for the molotov itself when it's thrown.
The explosion created by the molotov is now owned by the player who threw the molotov in the first place, this is mainly for logging or prop protection purposes.
Metal props are no longer directly ignited by the molotov, sorry.
Added more fail-safes to stop weird crap from happening such as one-self being ignited upon respawn.
The molotov will now explode in water but not ignite the surroundings.

Update: 11 Oct, 2014 @ 4:31pm

Made the Molotov Cocktail model spin when thrown.
Gave the Molotov Cocktail a world model when spawned via toolgun - mostly focused at people who add this to stuff like DarkRP shipments.
Very slightly changed the FOV - it was too high.
REDUCED THE FILE SIZE BY A WHOPPING 0.09MB

You can pretty much stop reading here, it isn't interesting at all.

Added legal/copyright stuff to whom it may concern.
Small adjustment to the description in-game.
Readability of code improved once again to my own liking/style in case I need to update the addon again in future.

Update: 7 Mar, 2014 @ 4:07pm

Increased readability of the code, optimized slightly and re-checked the code for any errors.

Update: 9 Apr, 2013 @ 5:57am

Fixed a LUA error when Molotov was thrown.

Update: 7 Apr, 2013 @ 3:52pm

Changed the spawn icon.

Update: 7 Apr, 2013 @ 3:30pm

Added a custom model from HL2 Beta (Valve Corporation).
Added a very small delay when throwing the Molotov.
Slightly optimized the addon.
Changed the Molotov Cocktail's model when thrown to something more suitable

Update: 6 Apr, 2013 @ 5:37am

Getting it ready for workshop.
Nothing to see here.