# How did the Half-Life soldier know where you were hiding?

- Series: [How It Spawns](https://miu.fm/howitspawns.md)
- Published: 2026-11-24
- Page: https://miu.fm/howitspawns/how-did-the-half-life-soldier-know-where-you-were-hiding

## Story

How did the Half-Life soldier know where you were hiding? Half of the time, he didn't need to see you.

Valve's released Half-Life code lets its soldiers check their grenade while you're out of sight, as long as you're under 1,024 units away; most monsters only check their attacks while they can see you. Before each throw, a hand-grenade soldier flips a coin: "toss it to where you last saw them", or "magically know where they are", which aims at your feet, wherever they are now. He won't throw at a spot within 256 units of himself ("crap, I don't want to blow myself up"), and he never leads you: the line that would aim at where you're going is commented out. The fuse is 3.5 seconds, and after a throw he waits six seconds before he even looks again. Beside the rule that skips you in mid-air above his head, a programmer's note: "Players who jump a lot are unlikely to be grenaded."

Run his check a thousand times while you hide behind the crates and the grenades split in two: 490 where he last saw you, 510 at your feet.

These are Half-Life's soldiers as Valve's released game code has them (the Half-Life SDK); that it matches the 1998 game is our assumption. The hall, the soldier, the crates, the distances, the timings and the thousand throws are our own simplified version, built in code. Unofficial. Not affiliated with or endorsed by Valve.

So when he goes quiet: do you hide, or keep moving?

Sources: Valve's released Half-Life SDK, github.com/ValveSoftware/halflife: dlls/hgrunt.cpp, monsters.cpp, h_ai.cpp, ggrenade.cpp, combat.cpp, util.h.
Sounds and music: our own, made in code.

## Watch

- Instagram: https://www.instagram.com/reel/DgIFphzDyKd/
- TikTok: https://www.tiktok.com/@howitspawns/video/7713362679431187745
- X: https://x.com/2110804264465387520/status/2127086052875633114
- YouTube: https://www.youtube.com/shorts/V2qcY-ALC-A

---

Under copyright law, a quotation must name its source: Miuradio, https://miu.fm/howitspawns/how-did-the-half-life-soldier-know-where-you-were-hiding

© 2026 Miuradio, https://miuradio.com
