diff --git a/toontown/safezone/DDSafeZoneLoader.py b/toontown/safezone/DDSafeZoneLoader.py index 5ba6d683..78e9eacd 100755 --- a/toontown/safezone/DDSafeZoneLoader.py +++ b/toontown/safezone/DDSafeZoneLoader.py @@ -41,6 +41,11 @@ class DDSafeZoneLoader(SafeZoneLoader.SafeZoneLoader): random.shuffle(TTLocalizer.DonaldChatter) self.donaldSpeech = self.donald.createTalkSequence(TTLocalizer.DonaldChatter, 15) self.donaldSpeech.loop(0) + + water = self.geom.find('**/water') + + water.setColorScale(1, 1, 1, 0.7) + water.setTransparency(1) def unload(self): SafeZoneLoader.SafeZoneLoader.unload(self) diff --git a/toontown/safezone/Walk.py b/toontown/safezone/Walk.py index d00831c6..81321d6a 100755 --- a/toontown/safezone/Walk.py +++ b/toontown/safezone/Walk.py @@ -90,7 +90,13 @@ class Walk(StateData.StateData): self.swimSoundPlaying = 0 self.swimSound.stop() + saturation = min(max((base.localAvatar.getZ() / -12.3), 0.51), 1) + self.getFog().setColor(*colorsys.hsv_to_rgb(0.616, saturation, 0.5)) + return Task.cont + + def getFog(self): + return base.cr.playGame.hood.fog if hasattr(base.cr.playGame.hood, 'fog') else base.cr.playGame.place.fog def enterSlowWalking(self): self.accept(base.localAvatar.uniqueName('positiveHP'), self.__handlePositiveHP)