PROP(false, origin, \
{ WriteShort(MSG_ENTITY, this.origin.x); WriteShort(MSG_ENTITY, this.origin.y); \
WriteShort(MSG_ENTITY, this.origin.z); }, \
- { this.has_origin = true; vector v; v.x = ReadShort(); v.y = ReadShort(); v.z = ReadShort(); setorigin(this, v); }) \
+ { this.has_sv_origin = true; vector v; v.x = ReadShort(); v.y = ReadShort(); v.z = ReadShort(); setorigin(this, v); }) \
\
PROP(false, angles_y, \
{ WriteByte(MSG_ENTITY, this.angles.y / 360 * 256); }, \
this.model = strzone(e.model);
}
}
+ else
+ {
+ this.has_origin = this.has_sv_origin;
+ }
}
NET_HANDLE(ENT_CLIENT_ENTCS, bool isnew)
}
InterpolateOrigin_Undo();
int sf = ReadShort();
- this.has_origin = false;
+ this.has_sv_origin = false;
this.m_entcs_private = boolean(sf & 1);
int i = 1;
#define X(public, fld, sv, cl) { if (sf & BIT(i)) cl; } i += 1;
/** True when private information such as origin is available */
.bool m_entcs_private;
-
-/** True when a recent origin is available */
+/** True when origin is available */
.bool has_origin;
+/** True when a recent server sent origin has been received */
+.bool has_sv_origin;
#ifdef SVQC
/**