]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/csqc_constants.qc
Declare ints as ints
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / csqc_constants.qc
index 3889603aa8867679a4ba23cc4cf6d69150664f6e..1794d6e42d73a08bdd0cc352f4fd774baa7fd912 100644 (file)
@@ -1,5 +1,3 @@
-#define world world
-
 // Mask Constants (set .drawmask on entities; use R_AddEntities to add all entities based on mask)
 const float            MASK_ENGINE                                             = 1;
 const float            MASK_ENGINEVIEWMODELS                   = 2;
@@ -41,29 +39,6 @@ const float          VF_CL_VIEWANGLES_X                              = 34;   //(float)
 const float            VF_CL_VIEWANGLES_Y                              = 35;   //(float)
 const float            VF_CL_VIEWANGLES_Z                              = 36;   //(float)
 
-// Server Autosent Stat Constants
-const float            STAT_HEALTH                                             = 0;
-const float            STAT_WEAPONMODEL                                = 2;
-const float            STAT_AMMO                                               = 3;
-const float            STAT_ARMOR                                              = 4;
-const float            STAT_WEAPONFRAME                                = 5;
-const float            STAT_SHELLS                                             = 6;
-const float            STAT_NAILS                                              = 7;
-const float            STAT_ROCKETS                                    = 8;
-const float            STAT_CELLS                                              = 9;
-const float            STAT_ACTIVEWEAPON                               = 10;
-const float            STAT_TOTALSECRETS                               = 11;
-const float            STAT_TOTALMONSTERS                              = 12;
-const float            STAT_SECRETS                                    = 13;
-const float            STAT_MONSTERS                                   = 14;
-const float            STAT_ITEMS                                              = 15;
-const float            STAT_VIEWHEIGHT                                 = 16;
-const float            STAT_MOVEVARS_TICRATE           = 240;
-const float            STAT_MOVEVARS_TIMESCALE         = 241;
-const float            STAT_FRAGLIMIT                                  = 235;
-const float            STAT_TIMELIMIT                                  = 236;
-const float     STAT_MOVEVARS_GRAVITY           = 242;
-
 // Quake-style Point Contents
 const float            CONTENT_EMPTY                                   = -1;
 const float            CONTENT_SOLID                                   = -2;
@@ -72,12 +47,6 @@ const float          CONTENT_SLIME                                   = -4;
 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';
@@ -152,12 +121,12 @@ const float BUTTON_14 = 65536;
 const float BUTTON_15 = 131072;
 const float BUTTON_16 = 262144;
 
-#define        SOLID_NOT                               0               // no interaction with other objects
-#define        SOLID_TRIGGER                   1               // touch on edge, but not blocking
-#define        SOLID_BBOX                              2               // touch on edge, block
-#define        SOLID_SLIDEBOX                  3               // touch on edge, but not an onground
-#define        SOLID_BSP                               4               // bsp clip, touch on edge, block
-#define        SOLID_CORPSE                    5               // same as SOLID_BBOX, except it behaves as SOLID_NOT against SOLID_SLIDEBOX objects (players/monsters)
+const float SOLID_NOT          = 0; // no interaction with other objects
+const float SOLID_TRIGGER      = 1; // touch on edge, but not blocking
+const float SOLID_BBOX                 = 2; // touch on edge, block
+const float SOLID_SLIDEBOX     = 3; // touch on edge, but not an onground
+const float SOLID_BSP          = 4; // bsp clip, touch on edge, block
+const float SOLID_CORPSE       = 5; // same as SOLID_BBOX, except it behaves as SOLID_NOT against SOLID_SLIDEBOX objects (players/monsters)
 
 const float MOVE_NORMAL = 0; // same as FALSE
 const float MOVE_NOMONSTERS = 1; // same as TRUE