X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil.qh;h=2033aa94b7eeeaa7a226ac516757cfbac84cd0cd;hp=3900349e34058201cae76c9491a459ef977c58ee;hb=45d8904a100765555e622598a39967963733df1d;hpb=05d2779856eda44ed6c8779ab55380fa006cfcb4 diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 3900349e34..2033aa94b7 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -1,12 +1,33 @@ #pragma once +#ifdef SVQC + #include +#endif + +#ifdef SVQC +float tracebox_inverted (vector v1, vector mi, vector ma, vector v2, float nomonsters, entity forent, float stopatentity, entity ignorestopatentity); // returns the number of traces done, for benchmarking + +void traceline_inverted (vector v1, vector v2, float nomonsters, entity forent, float stopatentity, entity ignorestopatentity); +#endif + #ifdef GAMEQC +/* +================== +findbetterlocation + +Returns a point at least 12 units away from walls +(useful for explosion animations, although the blast is performed where it really happened) +Ripped from DPMod +================== +*/ +vector findbetterlocation (vector org, float mindist); + vector real_origin(entity ent); #endif #ifdef SVQC -// temporary array used to dump weapon and turret settings -const int MAX_CONFIG_SETTINGS = 256; +// temporary array used to dump settings for each weapon / turret +const int MAX_CONFIG_SETTINGS = 70; string config_queue[MAX_CONFIG_SETTINGS]; #endif @@ -114,6 +135,8 @@ string getcurrentmod(); float matchacl(string acl, string str); // matches str against ACL acl (with entries +foo*, +foo, +*foo, +*foo*, and same with - for forbidding) +void write_String_To_File(int fh, string str, bool alsoprint); + string get_model_datafilename(string mod, float skn, string fil); // skin -1 will return wildcard, mod string_null will also put wildcard there string get_model_parameters_modelname; float get_model_parameters_modelskin;