Quote Originally Posted by kleinma
yeah i have to imagine lots of games get hacks here and there just to "make stuff work" I found a website that a guy had posted a lot of the comments from the original half-life source code that was released to the MOD community. The comments were funny as hell and even displayed the primitive AI in the game (although to credit it, it is like 7-8 years old now)

comments were like
//this is the ugliest hack I have ever seen, how does this even work?
or
//enemy grunts, looks left, fires once, ducks, fires 2 more times
Haha. This is Botmans Old website, where he puts the comments from the Half-Life 1 SDK. I thought it had been taken down, but anyway, its still here. That used to be a very good site for Half-Life programming (not hacks, but bot AI, MOD making, etc).

Others:
Code:
//No platform specific code in vgui\lib-src\vgui dir. Code in vgui\lib-src\vgui should 
//only include from vgui\include or standard C includes. ie, if I see windows.h included
//anywhere but vgui\lib-src\win32 I will hunt you down and kill you. Don't give me any crap
//that mfc is platform inspecific.
utils\vgui\include\vgui.h (line 24-27)

// why does this work?
dlls\controller.cpp (line 556)

// this is the most hacked, evil, bastardized thing I've ever seen. kjb
dlls\doors.cpp (line 744)

// CheckRangeAttack1  - drop a cap in their ass
dlls\hassassin.cpp (line 653)

// UNDONE: blah, this is bad, we should use a stack but I'm too lazy to code one.
dlls\monsters.cpp (line 1178)
chem