Return to site

Half life source codes

broken image

The cmdlib.h header is where all of these definitions were, it used to be 712 lines and is now 172 lines. You can do this by ending a texture name with _HIDDEN, so i guess it was obsolete

broken image

broken image

ZHLT_PROGRESSFILE: never implemented beyond command line argument handling, so didn't work at all.ZHLT_DETAIL: some kind of old func_detail variant, was already obsolete.Some features were disabled, so their code was removed. Some of it is Xash specific, but it's not that much. So about 16500 lines of code in the regular version of VHLT is dead code, never used at all. I ran a tool that counts lines of code on it, here are the results.įor the original codebase with no changes:įor the cleaned up version in the remove-xash branch:

broken image

There's also a branch remove-xash that removes all Xash specific code. So where originally there was a #define feature and #ifdef feature #endif there is either just the code the ifdef surrounded, or if the feature was disabled the code was removed. The branch remove-ifdef removes all ifdefs for features. I've cleaned up the VHLT V34 source code to make it easier to read: