Valve Source Code 2013 Tutorial (Episode 10): Creating a Laser Weapon

Channel:
Subscribers:
17,500
Published on ● Video Link: https://www.youtube.com/watch?v=BBTCGmEzi74



Half-Life
Game:
Half-Life (1998)
Category:
Tutorial
Duration: 34:04
887 views
23


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


2022-02-21Gareth Plays: Ready or Not Part 2 (Trying Out the Dealership and the Farm!)
2022-02-18Gareth Plays: Ready or Not Part 1 (Sucking at an Awesome Tactical Shooter!)
2022-02-03Valve Source Code 2013 Tutorial (Episode 11): Sphere of Sprites P1 [Creating a Sphere of Sprites]
2022-01-16Crash Bandicoot (PS1) - Stormy Ascent Gem and Fails!
2022-01-09Gareth Plays: The Matrix Awakens (A Very Impressive Unreal Engine 5 Tech Demo!)
2022-01-02Glitch-Life: Source (What on Earth is Happening Here?)
2021-12-31Gazzatron - New Year's Eve
2021-12-12A Bumpy Ride in Half-Life 2
2021-11-16Bugged Halo Infinite Multiplayer Stream
2021-11-12Gareth Plays: Bright Memory (An Entertaining FPS/Action Game!)
2021-11-10Valve Source Code 2013 Tutorial (Episode 10): Creating a Laser Weapon
2021-11-04Half-Life 2 Beta - Streetwars (Rooftops, sniper_029, e3_strider & Various LeakNet Maps Playthrough)
2021-10-21Valve Source Code 2013 Tutorial (Episode 9): Mathematical Function Visualizer Idea
2021-10-17Gareth Plays: Lego Builder's Journey (Full Playthrough)
2021-10-08My Thoughts on Halo Infinite - Insider | A GarethTheGamer Promo
2021-09-20Hammer Tutorial 19 Alternative - Using The mdlconverter Tool
2021-09-08Quake Remaster - Secret Level Achievements Guide
2021-08-31Quake Remaster - Slipgate Pacifist Achievement Footage
2021-08-21Gareth Plays: MINERVA: Metastasis Part 4 (A Daring Escape!)
2021-08-20Gareth Plays: MINERVA: Metastasis Part 3 (The Heart of the Facility)
2021-08-19Gareth Plays: MINERVA: Metastasis Part 2 (A Disturbing Discovery...)



Tags:
TheMaster974
Valve
Source
Code
2013
Singleplayer
Tutorial
Creating
Laser
Gun
Weapon
Adding
Scratch
Client
Server
Idea
Half
Life
Half-Life 2
Coding
Visual
Studio
Guide
How To
Episode 10



Other Statistics

Half-Life Statistics For TheMaster974

At present, TheMaster974 has 4,302 views spread across 28 videos for Half-Life, and about 8 hours worth of Half-Life videos were uploaded to his channel. This is 2.49% of the total watchable video on TheMaster974's YouTube channel.