From: Mario Date: Thu, 6 Aug 2020 12:48:15 +0000 (+1000) Subject: Add a note about reusing bitflags in csqcmodel_settings.qh X-Git-Tag: xonotic-v0.8.5~784 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f49f4161626dba1cef9f517f6adeab7c8beca7e9;p=xonotic%2Fxonotic-data.pk3dir.git Add a note about reusing bitflags in csqcmodel_settings.qh --- diff --git a/qcsrc/common/csqcmodel_settings.qh b/qcsrc/common/csqcmodel_settings.qh index 503cc1f22..ac427e877 100644 --- a/qcsrc/common/csqcmodel_settings.qh +++ b/qcsrc/common/csqcmodel_settings.qh @@ -71,12 +71,14 @@ CSQCMODEL_PROPERTY(BIT(12), float, ReadCoord, WriteCoord, scale) \ CSQCMODEL_PROPERTY(BIT(13), int, ReadInt24_t, WriteInt24_t, dphitcontentsmask) \ CSQCMODEL_PROPERTY(BIT(14), TAG_VIEWLOC_TYPE, ReadShort, WriteEntity, TAG_VIEWLOC_NAME) \ + /* bit 15 should NOT be reused, it is large enough sending the model's hitbox vectors! */ \ CSQCMODEL_PROPERTY(BIT(16), int, ReadByte, WriteByte, multijump_count) \ CSQCMODEL_PROPERTY(BIT(16), int, ReadByte, WriteByte, move_movetype) \ CSQCMODEL_IF(isplayer) \ CSQCMODEL_PROPERTY(BIT(17), GROUNDENTITY_TYPE, ReadShort, WriteEntity, GROUNDENTITY_NAME) \ CSQCMODEL_ENDIF \ CSQCMODEL_PROPERTY(BIT(17), int, ReadByte, WriteByte, clipgroup) +// NOTE: bits above 15 are defined in lib/csqcmodel/common.qh, avoid reusing them if possible // TODO get rid of colormod/glowmod here; also get rid of some useless properties on non-players that only exist for CopyBody // add hook function calls here