Skip to content

Commit

Permalink
more stupid shit
Browse files Browse the repository at this point in the history
  • Loading branch information
jvnipers committed May 19, 2024
1 parent d582e94 commit 4ae7f00
Show file tree
Hide file tree
Showing 28 changed files with 92 additions and 2,201 deletions.
4 changes: 2 additions & 2 deletions AMBuilder
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for sdk_target in MMSPlugin.sdk_targets:
try:
version = subprocess.check_output(['git', 'describe', '--tags', '--long']).decode('ascii').strip()
except subprocess.SubprocessError as e:
version = "1.7-dev"
version = "0.0.1-dev"
print("git describe failed as there are no tags")

print(f'Setting version to "{version}"')
Expand Down Expand Up @@ -52,7 +52,7 @@ for sdk_target in MMSPlugin.sdk_targets:


binary.sources += [
'src/cs2fixes.cpp',
'src/cs2uc.cpp',
'src/cvars.cpp',
]

Expand Down
45 changes: 1 addition & 44 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#include "platform.h"

#define VPROF_LEVEL 1

#define CS_TEAM_NONE 0
#define CS_TEAM_SPECTATOR 1
#define CS_TEAM_T 2
Expand All @@ -47,45 +45,4 @@ void UnlockConVars();
void UnlockConCommands();

void Message(const char *, ...);
void Panic(const char *, ...);

// CONVAR_TODO
// Need to replace with actual cvars once available in SDK
#define FAKE_CVAR(name, description, variable_name, variable_type, variable_type_format, variable_default, protect) \
CON_COMMAND_F(name, description, FCVAR_LINKED_CONCOMMAND | FCVAR_SPONLY | (protect ? FCVAR_PROTECTED : FCVAR_NONE)) \
{ \
if (args.ArgC() < 2) \
Msg("%s " #variable_type_format "\n", args[0], variable_name); \
else \
variable_name = V_StringTo##variable_type(args[1], variable_default); \
}

#define FAKE_INT_CVAR(name, description, variable_name, variable_default, protect) \
FAKE_CVAR(name, description, variable_name, Int32, %i, variable_default, protect)

#define FAKE_BOOL_CVAR(name, description, variable_name, variable_default, protect) \
FAKE_CVAR(name, description, variable_name, Bool, %i, variable_default, protect)

#define FAKE_FLOAT_CVAR(name, description, variable_name, variable_default, protect) \
FAKE_CVAR(name, description, variable_name, Float32, %f, variable_default, protect)

// assumes std::string variable
#define FAKE_STRING_CVAR(name, description, variable_name, protect) \
CON_COMMAND_F(name, description, FCVAR_LINKED_CONCOMMAND | FCVAR_SPONLY | (protect ? FCVAR_PROTECTED : FCVAR_NONE)) \
{ \
if (args.ArgC() < 2) \
Msg("%s %s\n", args[0], variable_name.c_str()); \
else \
variable_name = args[1]; \
}

#define FAKE_COLOR_CVAR(name, description, variable_name, protect) \
CON_COMMAND_F(name, description, FCVAR_LINKED_CONCOMMAND | FCVAR_SPONLY | (protect ? FCVAR_PROTECTED : FCVAR_NONE)) \
{ \
if (args.ArgC() < 2) \
Msg("%s %i %i %i\n", args[0], variable_name[0], variable_name[1], variable_name[2]); \
else if (args.ArgC() == 2) \
V_StringToColor(args[1], variable_name); \
else \
V_StringToColor(args.ArgS(), variable_name); \
}
void Panic(const char *, ...);
297 changes: 0 additions & 297 deletions src/cs2_sdk/entity/cbaseentity.h

This file was deleted.

Loading

0 comments on commit 4ae7f00

Please sign in to comment.