const float CONTENT_LAVA = -5;
const float CONTENT_SKY = -6;
-// Boolean Constants
-const float true = 1;
-const float false = 0;
-const float TRUE = 1;
-const float FALSE = 0;
-
// Vector / Hull Constants
const vector VEC_1 = '1 1 1';
const vector VEC_0 = '0 0 0';
#ifndef NOCOMPAT
# define COMPAT_NO_MOD_IS_XONOTIC
#endif
+
+#ifndef QCC_SUPPORT_INT
+#define int float
+#endif
+
+#ifndef QCC_SUPPORT_BOOL
+#define bool float
+
+// Boolean Constants
+const float true = 1;
+const float false = 0;
+const float TRUE = 1;
+const float FALSE = 0;
+#endif
const float MOVE_NOMONSTERS = 1;
const float MOVE_MISSILE = 2;
-// Boolean Constants
-const float true = 1;
-const float false = 0;
-const float TRUE = 1;
-const float FALSE = 0;
-
const float EXTRA_LOW = -99999999;
const float EXTRA_HIGH = 99999999;
string(string s) precache_file = #68;
void(entity e) makestatic = #69;
-void(string var, string val) cvar_set = #72;
+void(string name, string value) cvar_set = #72;
void(vector pos, string samp, float vol, float atten) ambientsound = #74;
string(string s) precache_model2 = #75;
float FILE_APPEND = 1;
float FILE_WRITE = 2;
-///////////////////////////
-// logical constants (just for completeness)
-
-float TRUE = 1;
-float FALSE = 0;
-
-///////////////////////////
-// boolean constants
-
-float true = 1;
-float false = 0;
-
///////////////////////////
// msg constants
// constants
//
-float FALSE = 0;
-float TRUE = 1;
-
// edict.flags
float FL_FLY = 1;
float FL_SWIM = 2;
//#71 was removed
-void(string var, string val) cvar_set = #72; // sets cvar.value
+void(string name, string value) cvar_set = #72; // sets cvar.value
void(entity client, string s, ...) centerprint = #73; // sprint, but in middle
#undef cvar_string
#undef cvar
-var float(string var) cvar;
-var string(string var) cvar_string;
-var void(string var, string val) cvar_set;
+var float(string name) cvar;
+var string(string name) cvar_string;
+var void(string name, string value) cvar_set;
// The commented-out functions need no implementation because DarkPlaces offers
// them as builtins. They are listed here anyway for completeness sake.
-#define int float
-
#define FP_NAN 0
#define FP_INFINITE 1
#define FP_ZERO 2