DVARs (MW2): Difference between revisions
Aerosoul94 (talk | contribs) Created page with "Category:DVARs Category:MW2 union DvarLimits { struct { int stringCount; const char **strings; } enumeration; struct { int min; int max; } int..." |
No edit summary |
||
| Line 39: | Line 39: | ||
#define DVAR_TYPE_STRING 7 | #define DVAR_TYPE_STRING 7 | ||
#define DVAR_TYPE_COLOR 8 | #define DVAR_TYPE_COLOR 8 | ||
#define | #define DVAR_TYPE_DEV_TWEAK 9 | ||
#define DVAR_TYPE_COUNT 10 | #define DVAR_TYPE_COUNT 10 | ||
| Line 45: | Line 45: | ||
{ | { | ||
const char *name; | const char *name; | ||
// description was removed for the latest updates | //The description was removed for the latest updates (TU7 and TU8 on Xbox 360) | ||
// const char *description; | // const char *description; | ||
unsigned __int16 flags; | unsigned __int16 flags; | ||
Revision as of 16:04, 1 January 2014
union DvarLimits
{
struct {
int stringCount;
const char **strings;
} enumeration;
struct {
int min;
int max;
} integer;
struct {
float min;
float max;
} value, vector;
};
union DvarValue
{
bool enabled;
int integer;
unsigned int unsignedInt;
float value;
float vector[4];
const char *string;
char color[4];
};
#define DVAR_TYPE_BOOL 0
#define DVAR_TYPE_FLOAT 1
#define DVAR_TYPE_FLOAT_2 2
#define DVAR_TYPE_FLOAT_3 3
#define DVAR_TYPE_FLOAT_4 4
#define DVAR_TYPE_INT 5
#define DVAR_TYPE_ENUM 6
#define DVAR_TYPE_STRING 7
#define DVAR_TYPE_COLOR 8
#define DVAR_TYPE_DEV_TWEAK 9
#define DVAR_TYPE_COUNT 10
struct dvar_s
{
const char *name;
//The description was removed for the latest updates (TU7 and TU8 on Xbox 360)
// const char *description;
unsigned __int16 flags;
char type;
bool modified;
DvarValue current;
DvarValue latched;
DvarValue reset;
DvarLimits domain;
dvar_s * next;
};