X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=dpdefs%2Fcsprogsdefs.qc;h=39d7024668360edd435e7bdfa50e0e88600e38ae;hb=c4cba77a1452975e9e8482a2df29cac4259c418f;hp=9b00de12adc9314559ae93c99e9f6152e140f0b2;hpb=9b501a50da3a1c4dc70b19dd32496176019654b1;p=xonotic%2Fdarkplaces.git diff --git a/dpdefs/csprogsdefs.qc b/dpdefs/csprogsdefs.qc index 9b00de12..39d70246 100644 --- a/dpdefs/csprogsdefs.qc +++ b/dpdefs/csprogsdefs.qc @@ -430,7 +430,7 @@ void(float fhandle) fclose = #111; string(float fhandle) fgets = #112; void(float fhandle, string s) fputs = #113; float(string s) strlen = #114; -string(...) strcat = #115; +string(string s, string...) strcat = #115; string(string s, float start, float length) substring = #116; vector(string) stov = #117; string(string s) strzone = #118; @@ -1443,12 +1443,23 @@ void(float fh, entity e) writetofile = #606; float(string s) isfunction = #607; void(entity e, string s) parseentitydata = #608; +//DP_QC_FINDCHAIN_TOFIELD +//see: dpextensions.qc +entity(vector org, float rad, .entity tofield) findradius_tofield = #22; +entity(.string fld, string match, .entity tofield) findchain_tofield = #402; +entity(.float fld, float match, .entity tofield) findchainflags_tofield = #450; +entity(.float fld, float match, .entity tofield) findchainfloat_tofield = #403; + //DP_COVERAGE //idea: divVerent //darkplaces implementation: divVerent //function definitions: void coverage() = #642; // Reports a coverage event. The engine counts for each of the calls to this builtin whether it has been called. +//DP_RM_CLIPGROUP +//see: dpextensions.qc +.float clipgroup; + //DP_QC_FS_SEARCH_PACKFILE //idea: Mario //darkplaces implementation: Mario @@ -1458,6 +1469,15 @@ float(string pattern, float caseinsensitive, float quiet, string packfile) searc //extension to search_begin (DP_QC_FS_SEARCH), performs a filename search with the specified pattern (for example "maps/*.bsp") and stores the results in a search slot (minimum of 128 supported by any engine with this extension), the other functions take this returned search slot number, be sure to search_free when done (they are also freed on progs reload). //only searches for files within the specified packfile, which is expected to match the results of whichpack(). +//DP_QC_FINDBOX +//see: dpextensions.qc +entity(vector mins, vector maxs) findbox = #566; +entity(vector mins, vector maxs, .entity tofield) findbox_tofield = #566; + +//DP_QC_NUDGEOUTOFSOLID +//see: dpextensions.qc +float(entity ent) nudgeoutofsolid = #567; + // assorted builtins const float STAT_MOVEVARS_TICRATE = 240; const float STAT_MOVEVARS_TIMESCALE = 241;