- WriteByte(MSG_ENTITY, self.health);
- WriteByte(MSG_ENTITY, self.max_health);
- WriteByte(MSG_ENTITY, self.count);
- WriteByte(MSG_ENTITY, self.team);
+ WriteByte(MSG_ENTITY, GetResource(this, RES_HEALTH));
+ WriteByte(MSG_ENTITY, this.max_health);
+ WriteByte(MSG_ENTITY, this.count);
+ WriteByte(MSG_ENTITY, this.team);