X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=data%2Fqcsrc%2Fclient%2FMain.qc;h=90dce734b673441ad82db7c2dcb771a03272f977;hb=77d29eac76182305794f3ba98da5c1624617f394;hp=f7b08497e608a85ca1af56dcae63ead97fc968b2;hpb=748ddc43b328660e11fb54634f3d4141074e6c1b;p=voretournament%2Fvoretournament.git diff --git a/data/qcsrc/client/Main.qc b/data/qcsrc/client/Main.qc index f7b08497..90dce734 100644 --- a/data/qcsrc/client/Main.qc +++ b/data/qcsrc/client/Main.qc @@ -683,11 +683,9 @@ void Ent_ReadEntCS() self.angles_x = self.angles_z = 0; } if(sf & 8) - self.healthvalue = ReadByte() * 10; + self.healthvalue = ReadShort(); if(sf & 16) - self.armorvalue = ReadByte() * 10; - if(sf & 32) - self.predator = ReadByte(); + self.armorvalue = ReadShort(); entcs_receiver[self.sv_entnum] = self; self.entremove = Ent_RemoveEntCS; @@ -1049,17 +1047,20 @@ void Ent_Init() strunzone(forcefog); forcefog = strzone(ReadString()); - g_campaign = ReadCoord(); + g_campaign = ReadShort(); armorblockpercent = ReadByte() / 255.0; g_weaponswitchdelay = ReadByte() / 255.0; - g_vore = ReadCoord(); - g_balance_vore_swallow_limit = ReadCoord(); - g_healthsize = ReadCoord(); + g_vore = ReadShort(); + g_balance_vore_swallow_limit = ReadShort(); + g_healthsize = ReadShort(); + g_healthsize_min = ReadShort(); + g_healthsize_max = ReadShort(); armor_max = ReadCoord(); + teamheal_max = ReadCoord(); if(!postinit) PostInit();