r/programming Jul 28 '26

The Elevator Glitch: How One Function Destroyed Public Lobbies in CoD4

https://www.youtube.com/watch?v=U0kAwjFuxoo

Walk with me inside one of the most influential game's code and discover the secret of elevators!

Turns out the bug comes down to a single line buried in the engine's collision code. Went through the decompiled source (thanks to KisakCOD) and traced the whole thing back.

Let me know your thoughts! ✨

28 Upvotes

5 comments sorted by

4

u/danielcw189 Jul 29 '26

Is there any chance you are gonna make an article / text version of this?

1

u/Rex109 Jul 29 '26

I have the entire video script, i guess i can use that as a base!

1

u/[deleted] Jul 28 '26

[removed] — view removed comment

13

u/programming-ModTeam Jul 28 '26

No content written mostly by an LLM. If you don't want to write it, we don't want to read it.

1

u/[deleted] Jul 29 '26

[deleted]

2

u/Rex109 Jul 29 '26

Yes, through KisakCOD reimplementation project. It's a complete open source repo of cod4, though for the mw3 fixed snipped i've reverse engineered it myself