if(sf & 1)
{
- self.healthvalue = ReadByte();
+ self.healthvalue = ReadByte() * 10;
}
if(sf & 2)
{
- self.armorvalue = ReadByte();
+ self.armorvalue = ReadByte() * 10;
}
if(sf & 128) // same team
void shownames_think()
{
self.origin = self.owner.origin + '0 0 1' * 48;
- if(self.health != max(0, floor(self.owner.health)))
+ if(self.health != max(0, ceil(self.owner.health/10)))
{
- self.health = max(0, floor(self.owner.health));
+ self.health = max(0, ceil(self.owner.health/10));
self.SendFlags |= 1;
}
- if(self.armorvalue != max(0, floor(self.owner.armorvalue)))
+ if(self.armorvalue != max(0, ceil(self.owner.armorvalue/10)))
{
- self.armorvalue = max(0, floor(self.owner.armorvalue));
+ self.armorvalue = max(0, ceil(self.owner.armorvalue/10));
self.SendFlags |= 2;
}
self.nextthink = time;