]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a hook to add new entcs networked properties in mods
authorMario <mario@smbclan.net>
Tue, 14 Mar 2017 21:14:29 +0000 (07:14 +1000)
committerMario <mario@smbclan.net>
Tue, 14 Mar 2017 21:14:47 +0000 (07:14 +1000)
qcsrc/common/ent_cs.qc

index f308530d50d7d475e020257e67503bc5606dc858..f50f03b5f79dfa8a1cfb89e9c9f2cd2347a19268 100644 (file)
@@ -1,5 +1,8 @@
 #include "ent_cs.qh"
 
+// for use in mods
+#define ENTCS_EXTRAPROPS
+
 #define ENTCS_SET_NORMAL(var, x) MACRO_BEGIN \
        var = x; \
 MACRO_END
@@ -48,6 +51,8 @@ MACRO_END
     PROP(true, frags, ENTCS_SET_NORMAL, \
        { WriteShort(chan, ent.frags); }, \
        { ent.frags = ReadShort(); }) \
+    \
+    ENTCS_EXTRAPROPS \
     \
        /**/