]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/util.qh
Merge remote branch 'origin/terencehill/ons_cp_animation_stuff'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util.qh
index 49afad22d7f19bc62f552b8dcdbf3884f7e8654d..9071c1c7cc1ae5aa4ab29d592e713e6621195be2 100644 (file)
@@ -258,3 +258,14 @@ string prvm_language;
 string language_filename(string s);
 string CTX(string s);
 #define ZCTX(s) strzone(CTX(s))
+
+// x-encoding (encoding as zero length invisible string)
+// encodes approx. 14 bits into 5 bytes of color code string
+const float XENCODE_MAX = 21295; // 2*22*22*22-1
+const float XENCODE_LEN = 5;
+string xencode(float f);
+float xdecode(string s);
+
+#ifndef COMPAT_XON010_CHANNELS
+#define sound(e,c,s,v,a) sound7(e,c,s,v,a,0,0)
+#endif