Base class code for Team fortress 2 mod