self.tur_head.move_avelocity_y = ReadShort();
}
- if(sf & TNSF_AVEL)
- {
- //WriteShort(MSG_ENTITY, rint(self.tur_head.avelocity_x));
- //WriteShort(MSG_ENTITY, rint(self.tur_head.avelocity_y));
- }
-
if(sf & TNSF_MOVE)
{
self.origin_x = ReadShort();
self.move_velocity = self.velocity;
self.move_origin = self.origin;
}
-
+
+ if(sf & TNSF_ANIM)
+ {
+ self.frame1time = ReadCoord();
+ self.frame = ReadByte();
+ }
+
if(sf & TNSF_STATUS)
{
vz = self.velocity_z;
if (self.tur_head.frame != 0)
- self.tur_head.frame = self.tur_head.frame +1;
+ self.tur_head.frame = self.tur_head.frame + 1;
if (self.tur_head.frame > 12)
self.tur_head.frame = 0;
+ if(self.frame != self.animflag)
+ {
+ self.SendFlags |= TNSF_ANIM;
+ self.anim_start_time = time;
+ }
+
switch (self.animflag)
{