]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/extensions.qh
remove electro beam if you get frozen
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / extensions.qh
index ac774837299c5ce528f61e5ba84e86a44d474608..feb60217aa050b7d441dd5f897501e4cbd552f20 100644 (file)
@@ -1,60 +1,60 @@
 
-       //DarkPlaces supported extension list, draft version 1.04
-
-       //things that don't have extensions yet:
-       .float disableclientprediction;
-
-       //definitions that id Software left out:
-       //these are passed as the 'nomonsters' parameter to traceline/tracebox (yes really this was supported in all quake engines, nomonsters is misnamed)
-       float MOVE_NORMAL = 0; // same as FALSE
-       float MOVE_NOMONSTERS = 1; // same as TRUE
-       float MOVE_MISSILE = 2; // save as movement with .movetype == MOVETYPE_FLYMISSILE
-
-       //checkextension function
-       //idea: expected by almost everyone
-       //darkplaces implementation: LordHavoc
-       float(string s) checkextension = #99;
-       //description:
-       //check if (cvar("pr_checkextension")) before calling this, this is the only
-       //guaranteed extension to be present in the extension system, it allows you
-       //to check if an extension is available, by name, to check for an extension
-       //use code like this:
-       //// (it is recommended this code be placed in worldspawn or a worldspawn called function somewhere)
-       //if (cvar("pr_checkextension"))
-       //if (checkextension("DP_SV_SETCOLOR"))
-       //      ext_setcolor = TRUE;
-       //from then on you can check ext_setcolor to know if that extension is available
-
-       //BX_WAL_SUPPORT
-       //idea: id Software
-       //darkplaces implementation: LordHavoc
-       //description:
-       //indicates the engine supports .wal textures for filenames in the textures/ directory
-       //(note: DarkPlaces has supported this since 2001 or 2002, but did not advertise it as an extension, then I noticed Betwix was advertising it and added the extension accordingly)
-
-       //DP_BUTTONCHAT
-       //idea: Vermeulen
-       //darkplaces implementation: LordHavoc
-       //field definitions:
-       .float buttonchat;
-       //description:
-       //true if the player is currently chatting (in messagemode, menus or console)
-
-       //DP_BUTTONUSE
-       //idea: id Software
-       //darkplaces implementation: LordHavoc
-       //field definitions:
-       .float buttonuse;
-       //client console commands:
-       //+use
-       //-use
-       //description:
-       //made +use and -use commands work, they now control the .buttonuse field (.button1 was used by many mods for other purposes).
-
-       //DP_CL_LOADSKY
-       //idea: Nehahra, LordHavoc
-       //darkplaces implementation: LordHavoc
-       //client console commands:
+//DarkPlaces supported extension list, draft version 1.04
+
+//things that don't have extensions yet:
+.float disableclientprediction;
+
+//definitions that id Software left out:
+//these are passed as the 'nomonsters' parameter to traceline/tracebox (yes really this was supported in all quake engines, nomonsters is misnamed)
+float MOVE_NORMAL = 0; // same as FALSE
+float MOVE_NOMONSTERS = 1; // same as TRUE
+float MOVE_MISSILE = 2; // save as movement with .movetype == MOVETYPE_FLYMISSILE
+
+//checkextension function
+//idea: expected by almost everyone
+//darkplaces implementation: LordHavoc
+float(string s) checkextension = #99;
+//description:
+//check if (cvar("pr_checkextension")) before calling this, this is the only
+//guaranteed extension to be present in the extension system, it allows you
+//to check if an extension is available, by name, to check for an extension
+//use code like this:
+//// (it is recommended this code be placed in worldspawn or a worldspawn called function somewhere)
+//if (cvar("pr_checkextension"))
+//if (checkextension("DP_SV_SETCOLOR"))
+//     ext_setcolor = TRUE;
+//from then on you can check ext_setcolor to know if that extension is available
+
+//BX_WAL_SUPPORT
+//idea: id Software
+//darkplaces implementation: LordHavoc
+//description:
+//indicates the engine supports .wal textures for filenames in the textures/ directory
+//(note: DarkPlaces has supported this since 2001 or 2002, but did not advertise it as an extension, then I noticed Betwix was advertising it and added the extension accordingly)
+
+//DP_BUTTONCHAT
+//idea: Vermeulen
+//darkplaces implementation: LordHavoc
+//field definitions:
+.float buttonchat;
+//description:
+//true if the player is currently chatting (in messagemode, menus or console)
+
+//DP_BUTTONUSE
+//idea: id Software
+//darkplaces implementation: LordHavoc
+//field definitions:
+.float buttonuse;
+//client console commands:
+//+use
+//-use
+//description:
+//made +use and -use commands work, they now control the .buttonuse field (.button1 was used by many mods for other purposes).
+
+//DP_CL_LOADSKY
+//idea: Nehahra, LordHavoc
+//darkplaces implementation: LordHavoc
+//client console commands:
 //"loadsky" (parameters: "basename", example: "mtnsun_" would load "mtnsun_up.tga" and "mtnsun_rt.tga" and similar names, use "" to revert to quake sky, note: this is the same as Quake2 skybox naming)
 //description:
 //sets global skybox for the map for this client (can be stuffed to a client by QC), does not hurt much to repeatedly execute this command, please don't use this in mods if it can be avoided (only if changing skybox is REALLY needed, otherwise please use DP_GFX_SKYBOX).
@@ -1806,14 +1806,14 @@ float Q3SURFACEFLAG_LADDER = 8; // climbable surface
 float Q3SURFACEFLAG_NOIMPACT = 16; // projectiles should remove themselves on impact (this is set on sky)
 float Q3SURFACEFLAG_NOMARKS = 32; // projectiles should not leave marks, such as decals (this is set on sky)
 float Q3SURFACEFLAG_FLESH = 64; // projectiles should do a fleshy effect (blood?) on impact
-//float Q3SURFACEFLAG_NODRAW = 128; // compiler hint (not important to qc)
+float Q3SURFACEFLAG_NODRAW = 128; // compiler hint (not important to qc)
 //float Q3SURFACEFLAG_HINT = 256; // compiler hint (not important to qc)
 //float Q3SURFACEFLAG_SKIP = 512; // compiler hint (not important to qc)
 //float Q3SURFACEFLAG_NOLIGHTMAP = 1024; // compiler hint (not important to qc)
 //float Q3SURFACEFLAG_POINTLIGHT = 2048; // compiler hint (not important to qc)
 float Q3SURFACEFLAG_METALSTEPS = 4096; // walking on this surface should make metal step sounds
 float Q3SURFACEFLAG_NOSTEPS = 8192; // walking on this surface should not make footstep sounds
-//float Q3SURFACEFLAG_NONSOLID = 16384; // compiler hint (not important to qc)
+float Q3SURFACEFLAG_NONSOLID = 16384; // compiler hint (not important to qc)
 //float Q3SURFACEFLAG_LIGHTFILTER = 32768; // compiler hint (not important to qc)
 //float Q3SURFACEFLAG_ALPHASHADOW = 65536; // compiler hint (not important to qc)
 //float Q3SURFACEFLAG_NODLIGHT = 131072; // compiler hint (not important to qc)