Valve Source Code 2013 Tutorial (Episode 10): Creating a Laser Weapon
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 go over how to create a laser gun from scratch that has code on both the server and client, with inspiration from the Tau Cannon, Physgun and Fire Extinguisher Beta weapons. Please let me know what you think and see you for whatever I decide to do next, thanks for watching!
At around 13:00, I screw up in the video and did not include a ! symbol, so the line should read something like: if (tr.DidHitWorld() && !(tr.surface.flags & SURF_SKY)) [I do a crude job of highlighting this in the video on a couple of occasions!]
00:00 Introduction
00:48 Server Code
19:52 Client Code
30:05 Weapon Script (Brief Outline)
30:38 Client Side Decal Drawing
32:52 Testing!
► Follow me on Twitch here: https://www.twitch.tv/themaster974streams
► Follow me on Twitter here: https://twitter.com/TheTheMaster974
► Subscribe to my stream archive channel here: https://www.youtube.com/channel/UCvwTzywm9GOLQKv494LBX4Q
Other Videos By TheMaster974
Other Statistics
Half-Life 2 Statistics For TheMaster974
At present, TheMaster974 has 78,348 views spread across 111 videos for Half-Life 2, and roughly a days worth of Half-Life 2 videos were uploaded to his channel. This is 9.78% of the total watchable video on TheMaster974's YouTube channel.