]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Use Shorts instead of Coords, for fewer bandwidth usage. Also tweak the healthsize...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 12:30:00 +0000 (15:30 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 12:30:00 +0000 (15:30 +0300)
data/defaultVT.cfg
data/qcsrc/client/Main.qc
data/qcsrc/server/cl_client.qc

index ce3b29fd0de7048f0a6319113f98775b28850457..ffcedac42a0d95a2755366a0d95cc5b78091ab68 100644 (file)
@@ -1160,7 +1160,7 @@ seta hud_shownames_maxdistance 1500 "alpha/size is 0 at this distance"
 seta hud_shownames_antioverlap 1 "if two tags get too close to each other, fade out the one further away from you"\r
 seta hud_shownames_antioverlap_distance 125 "2d distance to other tag after which to fade out"\r
 seta hud_shownames_offset 52 "offset (along z-axis) tag from player origin by this many units"\r
-seta hud_shownames_offset_healthsize 0.25 "offset (along z-axis) tag from player origin by this many units, based on player size"\r
+seta hud_shownames_offset_healthsize 0.5 "offset (along z-axis) tag from player origin by this many units, based on player size"\r
 \r
 sbar_info_pos 50\r
 seta sbar_alpha_bg 0.8 "alpha value of the HUD background"\r
index 626a56c27b692c0315e7ea7b88b178d52e25faf4..6e731232c8ec3639d439858ac040af8e5e6acdcf 100644 (file)
@@ -1049,17 +1049,17 @@ void Ent_Init()
                strunzone(forcefog);\r
        forcefog = strzone(ReadString());\r
 \r
-       g_campaign = ReadCoord();\r
+       g_campaign = ReadShort();\r
 \r
        armorblockpercent = ReadByte() / 255.0;\r
 \r
        g_weaponswitchdelay = ReadByte() / 255.0;\r
 \r
-       g_vore = ReadCoord();\r
-       g_balance_vore_swallow_limit = ReadCoord();\r
-       g_healthsize = ReadCoord();\r
-       g_healthsize_min = ReadCoord();\r
-       g_healthsize_max = ReadCoord();\r
+       g_vore = ReadShort();\r
+       g_balance_vore_swallow_limit = ReadShort();\r
+       g_healthsize = ReadShort();\r
+       g_healthsize_min = ReadShort();\r
+       g_healthsize_max = ReadShort();\r
 \r
        armor_max = ReadCoord();\r
        teamheal_max = ReadCoord();\r
index e020cddbd9cf6e7afc491f980d16facff6404215..0e5a1ac3c11db6c32f764058457a66371f7aa2fb 100644 (file)
@@ -1038,15 +1038,15 @@ float ClientInit_SendEntity(entity to, float sf)
                WriteString(MSG_ENTITY, world.fog);\r
        else\r
                WriteString(MSG_ENTITY, "");\r
-       WriteCoord(MSG_ENTITY, cvar("g_campaign"));\r
+       WriteShort(MSG_ENTITY, cvar("g_campaign"));\r
        WriteByte(MSG_ENTITY, cvar("g_balance_armor_blockpercent") * 255.0);\r
        WriteByte(MSG_ENTITY, cvar("g_balance_weaponswitchdelay") * 255.0);\r
 \r
-       WriteCoord(MSG_ENTITY, cvar("g_vore"));\r
-       WriteCoord(MSG_ENTITY, g_balance_vore_swallow_limit);\r
-       WriteCoord(MSG_ENTITY, cvar("g_healthsize"));\r
-       WriteCoord(MSG_ENTITY, cvar("g_healthsize_min"));\r
-       WriteCoord(MSG_ENTITY, cvar("g_healthsize_max"));\r
+       WriteShort(MSG_ENTITY, cvar("g_vore"));\r
+       WriteShort(MSG_ENTITY, g_balance_vore_swallow_limit);\r
+       WriteShort(MSG_ENTITY, cvar("g_healthsize"));\r
+       WriteShort(MSG_ENTITY, cvar("g_healthsize_min"));\r
+       WriteShort(MSG_ENTITY, cvar("g_healthsize_max"));\r
 \r
        // tell the client if this server uses armor\r
        float armor_max;\r