From f49f4161626dba1cef9f517f6adeab7c8beca7e9 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 6 Aug 2020 22:48:15 +1000 Subject: [PATCH] Add a note about reusing bitflags in csqcmodel_settings.qh --- qcsrc/common/csqcmodel_settings.qh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2