From: Mario Date: Sun, 18 Aug 2019 13:36:03 +0000 (+1000) Subject: Set r_water_resolutionmultiplier to 1 on maps with warpzones, to ensure visibility... X-Git-Tag: xonotic-v0.8.5~1383 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=888995b630e97d6771e268a25b8027b0db607e04 Set r_water_resolutionmultiplier to 1 on maps with warpzones, to ensure visibility through them --- diff --git a/qcsrc/lib/warpzone/client.qc b/qcsrc/lib/warpzone/client.qc index 7f8b0cdc83..df1ab6b806 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";