From: Rudolf Polzer Date: Sat, 12 Nov 2011 16:23:02 +0000 (+0100) Subject: fix fteqcc bug X-Git-Tag: xonotic-v0.6.0~74^2~100^2~104 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6bb16c7ba45812406b79928d89ec6ca9454cb989;p=xonotic%2Fxonotic-data.pk3dir.git fix fteqcc bug --- diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 0f22893075..02530c2da3 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -114,6 +114,7 @@ const float ENT_CLIENT_GAUNTLET = 29; const float ENT_CLIENT_ACCURACY = 30; const float ENT_CLIENT_SHOWNAMES = 31; const float ENT_CLIENT_WARPZONE_TELEPORTED = 32; +const float ENT_CLIENT_MODEL = 33; const float ENT_CLIENT_TURRET = 40; const float ENT_CLIENT_AUXILIARYXHAIR = 50; diff --git a/qcsrc/server/csqcmodel.qc b/qcsrc/server/csqcmodel.qc index 793264f039..5ef8d2b119 100644 --- a/qcsrc/server/csqcmodel.qc +++ b/qcsrc/server/csqcmodel.qc @@ -12,10 +12,6 @@ PROPERTY(16, ReadByte, WriteByte, skin) \ PROPERTY(32, ReadInt24_t, WriteInt24_t, effects) \ PROPERTY_SCALED(64, ReadByte, WriteByte, alpha, 255, 0, 255) \ - /* no attachment support */ \ - /* no rtlight support */ \ - /* no glow support */ \ - /* no colormod support */ \ PROPERTY_SCALED(128, ReadByte, WriteByte, glowmod_x, 32, 0, 255) \ PROPERTY_SCALED(128, ReadByte, WriteByte, glowmod_y, 32, 0, 255) \ PROPERTY_SCALED(128, ReadByte, WriteByte, glowmod_z, 32, 0, 255) @@ -31,7 +27,7 @@ float CSQCModel_Send(entity to, float sf) { - WriteByte(MSG_ENTITY, ENT_CS_CSQCMODEL); + WriteByte(MSG_ENTITY, ENT_CLIENT_MODEL); WriteShort(MSG_ENTITY, sf); #define PROPERTY(flag,r,w,f) \ @@ -93,6 +89,7 @@ void CSQCModel_Read() #undef PROPERTY_SCALED #undef PROPERTY + // if it is the local player, prediction and make sure camera gets set up by it // interpolation // draw it }