Valve Source Code 2013 Tutorial (Episode 18.5): Fixing Molotov Issues @TheMaster974
Valve Source Code 2013 Tutorial (Episode 18.5): Fixing Molotov Issues  @TheMaster974
Uploaded October 2025 | Updated September 2026, 14 hours ago
Hello everyone and welcome to a new (probably short) series of videos I do involving the source code from Valve for Half-Life 2, and some guides on how to do stuff with this code. In this episode, I followup on the Molotov tutorial I did a while back by talking about an issue that has been brought to my attention thanks to @soup1.0. This involves giving the Molotov to an NPC to throw, which crashes the game when they try to throw it! I outline how to make changes to the Molotov code to make it work with NPCs while also discussing a possible improvement that could be made, where NPCs don't even need to have the Molotov as a weapon to be able to throw one! I also go over a couple of miscellaneous fixes regarding fire damage and the Molotov viewmodel. Please let me know what you think and see you for whatever I decide to do next, thanks for watching!

GitHub page: github.com/TheMaster974/source-code-tutorials

Timestamps
00:00 Introduction
01:05 Making fires more damaging
01:37 Adding NPC functionality (fixes a game crash)
05:29 Viewmodel fix
06:32 Better functionality for NPCs (Combine soldier example)
09:22 Potential game crash with weapon_frag and NPCs
09:47 Outro

► You can buy me a coffee to support the effort of creating videos on my new channel! -- buymeacoffee.com/gareththegamer
► My new channel: GarethTheGamer -- youtube.com/channel/UC36qEnApR9ua9eDjaRLYcbA

► Episode 18 (Prerequisite): youtu.be/4E_nFhz33QU
Valve Source Code 2013 Tutorial (Episode 18.5): Fixing Molotov IssuesValve Source Code 2013 Tutorial (Episode 35): Implementing Hitmarkers/HitnumbersGareth Plays: Aperture Tag Part 1 (Now Im Thinking With Paint!)Source Shorts #18 - Changing Explosion EffectsHammer Tutorial 28 - Electricity Field From Portal: Still Alive in Portal 1Valve Source Code 2013 Tutorial (Episode 34): Adding a Weapon Drop SystemValve Source Code 2013 Tutorial (Episode 15): Shader Authoring Part 3 [Adding The PBR Shader]Valve Source Code 2013 Tutorial (Episode 17): Adding The Stunstick & Fixing Glow EffectsValve Source Code 2013 Tutorial (Episode 6 Alt): Shader Authoring Part 1.5 [Using SCell555s Version]Source Shorts #32 - Executing Code Based Off The DateGareth Plays: Portal: Prelude RTX Part 2 (Finishing The Test Chamber Course...With Lag!)Playing a Viewer Requested Half-Life 2 Workshop Map! (Bella Bittersweet: Short Circuit)
TheMaster974 |

Valve Source Code 2013 Tutorial (Episode 18.5): Fixing Molotov Issues

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER