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
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 15): Shader Authoring Part 3 [Adding The PBR Shader]
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 demonstrate how to add Thexa4s PBR shader for the Source engine. Unfortunately, this only seems to be an UnlitGeneric version, plus I cannot tell you how to make textures that make use of this shader, so apologies for this! Please let me know what you think and see you for whatever I decide to do next, thanks for watching!
Shader Authoring Part 1 (Prerequisite for this guide): https://youtu.be/yqJHtQ0k9g0
Source PBR Shader Link: https://developer.valvesoftware.com/wiki/Adding_PBR_to_Your_Mod
► You can buy me a coffee to support the effort of creating videos on my new channel! https://www.buymeacoffee.com/gareththegamer
► My new channel: GarethTheGamer https://www.youtube.com/channel/UC36qEnApR9ua9eDjaRLYcbA Valve Source Code 2013 Tutorial (Episode 15): Shader Authoring Part 3 [Adding The PBR Shader]](https://i.ytimg.com/vi/nThOxf-N6D8/mqdefault.jpg)

![Valve Source Code 2013 Tutorial (Episode 6 Alt): Shader Authoring Part 1.5 [Using SCell555s Version]
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 introduce an alternative method for shader authoring and show how to get into a position to be able to compile custom shaders for your mod by using a modified compiler by SCell555. Please let me know what you think and see you for whatever I decide to do next, thanks for watching!
Links:
Guide - https://developer.valvesoftware.com/wiki/Shader_Authoring
SCell555s Shader Compiler - https://github.com/SCell555/ShaderCompile/releases/latest
► You can buy me a coffee to support the effort of creating videos on my new channel! https://www.buymeacoffee.com/gareththegamer
► My new channel: GarethTheGamer https://www.youtube.com/channel/UC36qEnApR9ua9eDjaRLYcbA Valve Source Code 2013 Tutorial (Episode 6 Alt): Shader Authoring Part 1.5 [Using SCell555s Version]](https://i.ytimg.com/vi/ng7pF8JOB-4/mqdefault.jpg)


