Half-Life SDK Programming #3: Tracelines

Опубликовано: 14 Май 2026
на канале: Admer456
5,319
204

Tracelines. Very powerful things they are. It sure took me a while to do this, due to exams and everything, but I'm here now. Here you'll see how to use UTIL_TraceLine to write a very simple camera entity.

I accidentally skipped part 2.5, which was supposed to be about enhancing existing entities, because I simply happened to be editing this one first, so yeah. Going out of order is okay in this instance though, since the two videos are pretty much independent from each other. Both have been recorded though, and I am now writing the scripts for 3.1 and 3.2.

Timestamps:
00:00 - Intro gag
00:33 - Introduction
00:54 - UTIL_TraceLine function
01:34 - TraceResult vars
02:34 - Example
03:24 - Camera entity using tracelines
04:32 - Camera rotation?
04:54 - Result
05:12 - A lil request
05:21 - What's next
05:49 - Outro gag

My Discord server for HL SDK stuff, among other things:   / discord  
The Whole Half-Life: https://twhl.info/