]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/cl_client.qc
Make saturation depend on the amount of armor the player has (post process effect)
[voretournament/voretournament.git] / data / qcsrc / server / cl_client.qc
index 1fb6ab0a7f7951eb01ac47eba0b92f5f18278659..8f058155c16a32c95245724dd31d9a967fafb382 100644 (file)
@@ -1044,6 +1044,13 @@ float ClientInit_SendEntity(entity to, float sf)
 \r
        WriteCoord(MSG_ENTITY, cvar("g_vore"));\r
        WriteCoord(MSG_ENTITY, g_balance_vore_swallow_limit);\r
+\r
+       // tell the client if this server uses armor\r
+       float armor_enabled;\r
+       if(cvar("g_balance_armor_start") || (cvar("g_lms") && cvar("g_lms_start_armor")) || (inWarmupStage && cvar("g_warmup_start_armor")) || cvar("g_balance_armor_regen") || cvar("g_balance_armor_regenlinear"))\r
+               armor_enabled = TRUE;\r
+       WriteByte(MSG_ENTITY, armor_enabled);\r
+\r
        return TRUE;\r
 }\r
 \r