Half-Life: Alyx's lights flicker just like they did in Quake, almost 25 years later

A beardy old scientist in front of some monitors
(Image credit: Valve)

In game development, it's important to recognise when not to reinvent the wheel. And so, 25 years after Id first lit Quake's grimy hallways with blinking lights, we end up with the fluorescent lamps of Half-Life Alyx's City 17 flickering in exactly the same way.

To clarify, this isn't just a similar effect. Spotted by redditor AliYil, the flickering lights in Half-Life: Alyx operate identically to how they did back in the original 1998 Half-Life—two major engine changes and 22 years later.

In Source—and, evidently, both GoldSrc and Source 2—lights have a set list of properties that can be fiddled with in-editor. The flickering in controlled via a string of letters from A to Z (with A being pitch black and Z being full brightness). By changing this string, lights can be made to emulate a candle flickering, a soft LED pulse, or as demonstrated, a harsh, broken fluorescent lamp.

For example, a candle might use the string "nmonqnmomnmomomno", whereas this particular effect is generated with "mmamammmmammamamaaamammma". 

Valve reusing code from Half-Life 1 is one thing. But the developer's engine has its own roots in Id Software's landmark Quake engine. Lo and behold, it turned out this method of breaking lights may have started with John Carmack's engine—but with decades of 2D games preceding it, it's more than possible this technique goes back even further.

We're used to seeing developers talk about taking huge, technically impressive steps forwards, especially when it comes to something as complex as lighting. Even so, it's sometimes nice to see that even after decades of progress, a simple trick can still fit the bill. 

This story has been updated to credit the original poster of the first comparison gif.

TOPICS
Natalie Clayton
Features Producer

20 years ago, Nat played Jet Set Radio Future for the first time, and she's not stopped thinking about games since. Joining PC Gamer in 2020, she comes from three years of freelance reporting at Rock Paper Shotgun, Waypoint, VG247 and more. Embedded in the European indie scene and a part-time game developer herself, Nat is always looking for a new curiosity to scream about—whether it's the next best indie darling, or simply someone modding a Scotmid into Black Mesa. She also unofficially appears in Apex Legends under the pseudonym Horizon.

Read more
Half-Life 2 running on 8 MB VRAM on a tiny resolution in Windows XP with graphics settings disabled or lowered to ridiculously light levels
Getting Half-Life 2 to work on 8 MB of VRAM means turning it into an eerily befitting voidscape: 'there were absolutely no effects left'
Screenshots from Half-Life 2 RTX, showing the various new effects delivered by full ray tracing and enhanced assets.
I just played Half-Life 2 RTX, a fully ray-traced overhaul of the original, and its meaty headcrabs have me hankering for more
A TV with immersive lighting showing a ghost from Phasmophobia on screen.
Terrifying horror nopefest Phasmophobia combined with immersive room lighting looks like an easy way to give yourself a chronic case of the brown trousers
Doomslayer pointing a gun at demons while giants fight in the background
Ray tracing is quickly becoming inescapable and I think it's time we bit the bullet and embraced it
Half-Life wallpaper - Gordon Freeman
Former Valve exec says the company struggled to sell Half-Life until coming up with the ultimate 'one simple trick' of marketing manoeuvres: slapping a 'Game of the Year' sticker on the box
A screenshot of Havok's physics engine, showing a metallic figure in a cave system
Havok, whose software is famed for its use in Half-Life 2 and Elder Scrolls, just showed off its updated physics engine in first YouTube trailer in over ten years
Latest in FPS
Warhammer 40,000: Darktide Ogryn
Warhammer 40,000: Darktide adds a psychic horde murderzone mode and makes Ogryns even smashier
Starfield's companion robot giving a thumbs-up
Former Bethesda dev who quit Starfield to go solo says it's 'much less stressful as an indie' without daily meetings or 'office politics': it's 'very refreshing to just care about the game'
A crew of prospectors in Wildgate, featuring a robot, a rabbit man, and a small aquatic creature in a combination mech/aquarium.
Blizzard co-founder Mike Morhaime's new company is putting Sea of Thieves-style shenanigans in space with a new crew-based shooter
Team Fortress Spy being shocked
An FPS studio pulled its game from Steam after it got caught linking to malware disguised as a demo, but the dev insists it was actually the victim of a labyrinthine conspiracy
Neighbors Suburban Warfare screenshot a child aims a slingshot at a man from across a cul-de-sac.
A beta of backyard FPS Neighbors: Suburban Warfare is out now, and the balance discussion is hysterical: nerf trash can lids and children
Fragpunk
Somebody finally figured out casual Counter-Strike
Latest in News
Image of Cersei Lanniser from Game of Thrones: Kingsroad Steam early access trailer
A new Game of Thrones RPG is coming to Steam today with a cast of 'familiar faces,' which is good because it's really the only way to tell it's a GoT game at all
The new Prime Asset featured in the upcoming update for the Outlast Trials.
The Outlast Trials puts its already paranoid players under surveillance for a time-limited story event
A Viera looking confused in Final Fantasy 14.
Old armor continues to fall victim to Final Fantasy 14's bizarre two-channel dye system, unless you're super into changing the colour of teeny-tiny eyelets: 'Why even bother at this point?'
Starfield: Shattered Space
By the time Bethesda was on Starfield, you'd 'basically get in trouble' for breaking schedule, says former dev: 'A lot of the great stuff within Skyrim came from having the freedom to do what you want'
Otter AI Meeting Agent
As if your work meetings weren't already fun enough, now Otter has a new all-hearing AI agent that remembers everything anyone has said and can join in the discussion
Monster Hunter Wilds' stockpile master studying a manifest
As layoffs and studio closures continue to deathroll the western AAA industry, analyst points out 5 of 8 major Japanese companies hit all-time share prices this year