From 888995b630e97d6771e268a25b8027b0db607e04 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 18 Aug 2019 23:36:03 +1000 Subject: [PATCH] Set r_water_resolutionmultiplier to 1 on maps with warpzones, to ensure visibility through them --- qcsrc/lib/warpzone/client.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcsrc/lib/warpzone/client.qc b/qcsrc/lib/warpzone/client.qc index 7f8b0cdc8..df1ab6b80 100644 --- a/qcsrc/lib/warpzone/client.qc +++ b/qcsrc/lib/warpzone/client.qc @@ -29,7 +29,10 @@ void WarpZone_Touch(entity this, entity toucher); NET_HANDLE(ENT_CLIENT_WARPZONE, bool isnew) { if(!warpzone_warpzones_exist) + { cvar_settemp("r_water", "1"); // HACK for DarkPlaces: always enable reflections when a map has warpzones + cvar_settemp("r_water_resolutionmultiplier", "1"); // HACK for DarkPlaces: enforce full quality so entities can be seen clearly through warpzones + } warpzone_warpzones_exist = 1; if (!this.enemy) { @@ -87,7 +90,10 @@ NET_HANDLE(ENT_CLIENT_WARPZONE, bool isnew) NET_HANDLE(ENT_CLIENT_WARPZONE_CAMERA, bool isnew) { if(!warpzone_cameras_exist) + { cvar_settemp("r_water", "1"); // HACK for DarkPlaces: always enable reflections when a map has cameras + cvar_settemp("r_water_resolutionmultiplier", "1"); // HACK for DarkPlaces: enforce full quality so entities can be seen clearly through warpzones + } warpzone_cameras_exist = 1; this.classname = "func_warpzone_camera"; -- 2.39.2