From: Mario Date: Tue, 14 Mar 2017 21:14:29 +0000 (+1000) Subject: Add a hook to add new entcs networked properties in mods X-Git-Tag: xonotic-v0.8.2~55 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=64b9c27175c86421b243e76e89a6ef4925a75414;p=xonotic%2Fxonotic-data.pk3dir.git Add a hook to add new entcs networked properties in mods --- diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index f308530d5..f50f03b5f 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -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 \ \ /**/