Valve Source Code 2013 Tutorial (Episode 27): Miscellaneous Flashlight Features

Channel:
Subscribers:
18,100
Published on ● Video Link: https://www.youtube.com/watch?v=EWai2uiF-ss



Half-Life 2
Game:
Duration: 0:00
623 views
40


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 outline how to restore the jeep's headlight functionality, how to make it so the flashlight originates from a viewmodel attachment instead of the player, how to add a flashlight lagging effect and how to incorporate said effect to vehicle headlights. I have to give a massive shout-out and thank you to WadDelZ for providing me with the flashlight lagging code! I wanted to do some testing with my audio for this video, but I screwed it up and that's why the audio sounds different, I apologize for fucking up! Please let me know what you think and see you for whatever I decide to do next, thanks for watching!

Jeep headlights guide: https://developer.valvesoftware.com/w...

Timestamps
00:00 Introduction
00:37 Restoring the Jeep's Headlights
03:40 Changing the Flashlight's Origin to a Viewmodel Attachment
06:29 Adding Flashlight Lag
10:22 Adding Vehicle Headlight Lag

► You can buy me a coffee to support the effort of creating videos on my new channel! -- https://www.buymeacoffee.com/garethth...
► My new channel: GarethTheGamer --    / @gareththegamer1  




Other Videos By TheMaster974


2024-11-11Project Borealis: Prologue Playthrough (Exploring Wintery Ravenholm!)
2024-11-06Source Shorts #15 - Adding a Dynamic Skybox Swapper
2024-10-31Happy Halloween! Here's Some More Half-Life 2: Alone!
2024-10-21Valve Source Code 2013 Tutorial (Episode 28): Adding Glow Effects & Extending Functionality
2024-10-19Source Mod Showcase #1: Half-Life 2: Alone
2024-10-13Source Shorts #14 - Restoring The In-game MP3 Player
2024-10-11October 2024 Update (What I've Been Up To Recently)
2024-09-20Source Shorts #13 - Adding a Claustrophobia View
2024-09-19Source Shorts #12 - Adding a Cinematic Camera
2024-09-18Source Shorts #11 - Fixing Flashlight Sounds Stopping Weapon Sounds
2024-09-13Valve Source Code 2013 Tutorial (Episode 27): Miscellaneous Flashlight Features
2024-09-08Source Shorts #10 - Changing The Fire Rate & Reload Speed Of The Shotgun (Source 2013 MP)
2024-09-05Valve Source Code Tutorial GitHub Page Is Now Live!
2024-08-30Source Shorts #9 - Making SMG1 Grenades Go Through Breakable Glass
2024-08-28Source Shorts #8 - Fixing Inactive Flare Die Function Crash (Mapbase)
2024-08-24Valve Source Code 2013 Tutorial (Episode 16.5): Fixing SLAM Satchel Charges & Floating Tripmines
2024-08-09Gareth Plays: Aperture Tag Part 4 (The WORST Test Chamber EVER!?)
2024-08-07Gareth Plays: Aperture Tag Part 3 (Testing In The Fake Outdoors!)
2024-08-05Gareth Plays: Aperture Tag Part 2 (Dealing With An ALSSER & An Epic Escape Sequence?)
2024-08-03Gareth Plays: Aperture Tag Part 1 (Now I'm Thinking With Paint!)
2024-08-01August 2024 Update (Upcoming Playthrough and Channel Monetization Goal)



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.