vivatuta.blogg.se

Half life source codes
Half life source codes








half life source codes

Reworking Ripent's code to avoid use of exit should solve this problem. This may have to do with the fact that it's implemented using atexit, so it may not work on Linux due to differences in how console resources are managed during program shutdown. The other is Ripent's -pause parameter which was implemented only on Windows for some reason. It's not that hard to replace it with a cross platform alternative. One is game_text's UTF8 conversion support, which relies on a Windows API function. There are 2 definitions left in place because they depend on platform specific functionality. The cmdlib.h header is where all of these definitions were, it used to be 712 lines and is now 172 lines.

  • HLBSP_SUBDIVIDE_INMID: seems to be intended to reduce the number of faces, but contributes to AllocBlock:Full errors so it was disabled.
  • You can do this by ending a texture name with _HIDDEN, so i guess it was obsolete
  • ZHLT_HIDDENSOUNDTEXTURE: would allow you to mark faces as hidden by setting zhlt_hidden on an entity.
  • ZHLT_NSBOB: the only thing i found was the definition, no code appears to exist for it.
  • half life source codes

    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:

    half life source codes

    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. P.I've cleaned up the VHLT V34 source code to make it easier to read: You can find the read me with more detail inside the release folder. I really hope all of us can start modding for SMOD again and bring back the old days. Please provide feedback on bugs and features, I really need to know Proper documentation of code and features will be released sometime in the future but for now, just have fun! This could mean daily, or a week in between. I post updates whenever I worked on something. The mod was coded from ground up without reference to other SMOD source codes (so expect lotsa bugs). This mod is made as a hobby and at the same time I'm learning how to code Source. If you haven't been tracking my progress at, you can do so there. This is the first of many releases to hopefully bring back SMOD on Source SDK 2013. Welcome to SMOD 2013: Brutal Half-Life 2!










    Half life source codes