14 # define TAG_ENTITY_NAME tag_networkentity 15 # define TAG_ENTITY_TYPE float 16 .float tag_networkentity;
18 # define TAG_VIEWLOC_NAME tag_networkviewloc 19 # define TAG_VIEWLOC_TYPE int 20 .float tag_networkviewloc;
22 # define ALPHA m_alpha 25 # define GROUNDENTITY_NAME ground_networkentity 26 # define GROUNDENTITY_TYPE float 27 .float ground_networkentity;
29 # define TAG_ENTITY_NAME tag_entity 30 # define TAG_ENTITY_TYPE entity 32 # define TAG_VIEWLOC_NAME viewloc 33 # define TAG_VIEWLOC_TYPE entity 37 # define GROUNDENTITY_NAME groundentity 38 # define GROUNDENTITY_TYPE entity 45 #define CSQCMODEL_EXTRAPROPERTIES \ 46 CSQCMODEL_PROPERTY(BIT(0), int, ReadShort, WriteShort, colormap) \ 47 CSQCMODEL_PROPERTY(BIT(1), int, ReadInt24_t, WriteInt24_t, effects) \ 48 CSQCMODEL_PROPERTY(BIT(2), int, ReadByte, WriteByte, modelflags) \ 49 CSQCMODEL_PROPERTY(BIT(2), int, ReadByte, WriteByte, skin) \ 50 CSQCMODEL_PROPERTY(BIT(2), int, ReadByte, WriteByte, traileffect) \ 51 CSQCMODEL_PROPERTY(BIT(3), int, ReadByte, WriteByte, move_movetype) \ 52 CSQCMODEL_PROPERTY_SCALED(BIT(3), float, ReadByte, WriteByte, ALPHA, 254, -1, 254) \ 53 CSQCMODEL_PROPERTY(BIT(3), float, ReadByte, WriteByte, solid) \ 54 CSQCMODEL_PROPERTY(BIT(4), int, ReadByte, WriteByte, multijump_count) \ 55 CSQCMODEL_PROPERTY(BIT(4), int, ReadByte, WriteByte, clipgroup) \ 56 CSQCMODEL_PROPERTY(BIT(5), float, ReadApproxPastTime, WriteApproxPastTime, death_time) \ 57 CSQCMODEL_IF(isplayer) \ 58 CSQCMODEL_PROPERTY(BIT(6), GROUNDENTITY_TYPE, ReadShort, WriteEntity, GROUNDENTITY_NAME) \ 60 CSQCMODEL_IF(!isplayer) \ 61 CSQCMODEL_PROPERTY(BIT(7), TAG_ENTITY_TYPE, ReadShort, WriteEntity, TAG_ENTITY_NAME) \ 62 CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, glowmod_x, 254, -1, 254) \ 63 CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, glowmod_y, 254, -1, 254) \ 64 CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, glowmod_z, 254, -1, 254) \ 66 CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, colormod_x, 16, 0, 255) \ 67 CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, colormod_y, 16, 0, 255) \ 68 CSQCMODEL_PROPERTY_SCALED(BIT(8), float, ReadByte, WriteByte, colormod_z, 16, 0, 255) \ 69 CSQCMODEL_IF(isplayer) \ 70 CSQCMODEL_PROPERTY(BIT(7), int, ReadByte, WriteByte, anim_state) \ 71 CSQCMODEL_PROPERTY(BIT(7), float, ReadApproxPastTime, WriteApproxPastTime, anim_time) \ 72 CSQCMODEL_IF(!islocalplayer) \ 73 CSQCMODEL_PROPERTY(BIT(8), float, ReadChar, WriteChar, anim_lower_action) \ 74 CSQCMODEL_PROPERTY(BIT(8), float, ReadApproxPastTime, WriteApproxPastTime, anim_lower_time) \ 76 CSQCMODEL_PROPERTY(BIT(9), float, ReadChar, WriteChar, anim_upper_action) \ 77 CSQCMODEL_PROPERTY(BIT(9), float, ReadApproxPastTime, WriteApproxPastTime, anim_upper_time) \ 79 CSQCMODEL_PROPERTY(BIT(10), float, ReadAngle, WriteAngle, v_angle_x) \ 80 CSQCMODEL_PROPERTY(BIT(11), TAG_VIEWLOC_TYPE, ReadShort, WriteEntity, TAG_VIEWLOC_NAME) \ 81 CSQCMODEL_PROPERTY(BIT(12), float, ReadCoord, WriteCoord, scale) \ 82 CSQCMODEL_PROPERTY(BIT(13), int, ReadInt24_t, WriteInt24_t, dphitcontentsmask) \ 89 #define CSQCPLAYER_HOOK_POSTCAMERASETUP() \ 90 viewloc_SetViewLocation() 93 #ifndef CSQCPLAYER_FORCE_UPDATES 94 #define CSQCPLAYER_FORCE_UPDATES 4 106 # define CSQCMODEL_AUTOINIT(e) CSQCModel_LinkEntity(e) 107 # define CSQCMODEL_AUTOUPDATE(e) CSQCModel_CheckUpdate(e) 110 #define CSQCMODEL_EF_RESPAWNGHOST EF_SELECTABLE