Giter VIP home page Giter VIP logo

hl2sdk-tf2's Introduction

HL2 SDK - Team Fortress 2 (2013)

The Half-Life 2 TF2 SDK Mirror merged with Source SDK 2013.

Why does this exist?

Currently, the tf2 branch maintains the HL2 SDK that dates all the way back to the Orange Box update; it has only been modified enough towards the needs of SourceMod and its extensions. Aside from those modifications, everything else is out of date.

This fork attempts to solve that problem by merging both the SDK 2013 code and the specific changes made on that branch, allowing SourceMod extensions to utilize a slightly more updated SDK that is usable for modding TF2.

NOTE: Since the goal is for SourceMod extensions only, only the tier1 and mathlib static libraries are meant to be compilable, while tier0 and vstdlib were directly imported from SDK 2013. This project is not meant to be compilable as a whole.

Building extensions

You can execute your build script normally just like with the original TF2 SDK branch. There's only one change that needs to be done.

Scroll down to this section in your build script:

    if sdk.name in ['sdk2013', 'bms'] and compiler.like('gcc'):
      # The 2013 SDK already has these in public/tier0/basetypes.h
      compiler.defines.remove('stricmp=strcasecmp')
      compiler.defines.remove('_stricmp=strcasecmp')
      compiler.defines.remove('_snprintf=snprintf')
      compiler.defines.remove('_vsnprintf=vsnprintf')

Change the first line to:

    if sdk.name in ['sdk2013', 'bms', 'tf2'] and compiler.like('gcc'):

hl2sdk-tf2's People

Contributors

psychonic avatar kitrifty avatar theds avatar kenzzer avatar sapphonie avatar dvander avatar rafradek avatar sigsegv-mvm avatar mikusch avatar headline avatar asherkin avatar klausenbusk avatar maximsmol avatar reuben avatar ayuto avatar infernalxdrm avatar nosoop avatar rumblefrog avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.