X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fcsqc_builtins.qc;h=6ef34f35eab5fa8109e2eda628b889ace10a431d;hb=6c73ec69091cd11bb6e30fa1decf5748c27ef08e;hp=c108a4ca0ab152a2239f0551e8364ab98c343a2f;hpb=0532cf8607bb25cebcf3c75d1748aa0b7df5d143;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/csqc_builtins.qc b/qcsrc/client/csqc_builtins.qc index c108a4ca0..6ef34f35e 100644 --- a/qcsrc/client/csqc_builtins.qc +++ b/qcsrc/client/csqc_builtins.qc @@ -79,6 +79,7 @@ void () R_ClearScene = #300; void (float mask) R_AddEntities = #301; void (entity e) R_AddEntity = #302; float (float property, ...) R_SetView = #303; +vector (float property, ...) R_SetView3fv = #303; void () R_RenderScene = #304; void (vector org, float radius, vector rgb) R_AddDynamicLight = #305; void () R_CalcRefDef = #306; @@ -235,6 +236,7 @@ float (string s) tokenize = #441; string (float argnum) argv = #442; string (string s) cvar_string = #448; +string (string s) cvar_defstring = #482; float () buf_create = #460; void (float bufhandle) buf_del = #461; @@ -281,6 +283,7 @@ string(string info, string key) infoget = #227; string(string info, string key, string value, ...) infoadd = #226; string(string in) uri_escape = #510; +float stringtokeynum(string keyname) = #341; string keynumtostring(float keynum) = #520; string findkeysforcommand(string command) = #521; @@ -291,6 +294,7 @@ entity(vector org, float rad) findradius = #22; string(float uselocaltime, string format, ...) strftime = #478; float(float timer) gettime = #519; +#define GETTIME_REALTIME 1 #define GETTIME_CDTRACK 4 float(string s) tokenize_console = #514; @@ -310,3 +314,37 @@ float log(float f) = #532; void(entity e, entity ignore) tracetoss = #64; float(entity e, float ch) getsoundtime = #533; // (DP_SND_GETSOUNDTIME) + +#define PARTICLES_USEALPHA 1 +float particles_alphamin, particles_alphamax; +#define PARTICLES_USECOLOR 2 +vector particles_colormin, particles_colormax; +void(float effectindex, entity own, vector org_from, vector org_to, vector dir_from, vector dir_to, float countmultiplier, float flags) boxparticles = #502; +string(string format, ...) sprintf = #627; + +float(string name) cvar_type = #495; +float CVAR_TYPEFLAG_EXISTS = 1; +float CVAR_TYPEFLAG_SAVED = 2; +float CVAR_TYPEFLAG_PRIVATE = 4; +float CVAR_TYPEFLAG_ENGINE = 8; +float CVAR_TYPEFLAG_HASDESCRIPTION = 16; +float CVAR_TYPEFLAG_READONLY = 32; + +void (entity e, float chan, string samp, float vol, float atten, float pitchshift, float flags) sound7 = #8; + +float trace_dphitcontents; +float trace_networkentity; + +string(string search, string replace, string subject) strreplace = #484; + +//DP_QC_DIGEST +//idea: motorsep, Spike +//DarkPlaces implementation: divVerent +//builtin definitions: +string(string digest, string data, ...) digest_hex = #639; +//description: +//returns a given hex digest of given data +//the returned digest is always encoded in hexadecimal +//only the "MD4" digest is always supported! +//if the given digest is not supported, string_null is returned +//the digest string is matched case sensitively, use "MD4", not "md4"!