Garry's Mod

Garry's Mod

Molotov Cocktail
正在显示第 1 - 8 项,共 8 项条目
更新于:2014 年 11 月 30 日 上午 7:47

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.

更新于:2014 年 10 月 12 日 上午 7:35

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.

更新于:2014 年 10 月 11 日 下午 4:31

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.

更新于:2014 年 3 月 7 日 下午 4:07

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

更新于:2013 年 4 月 9 日 上午 5:57

Fixed a LUA error when Molotov was thrown.

更新于:2013 年 4 月 7 日 下午 3:52

Changed the spawn icon.

更新于:2013 年 4 月 7 日 下午 3:30

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

更新于:2013 年 4 月 6 日 上午 5:37

Getting it ready for workshop.
Nothing to see here.