def __setWhiteFog(self): if base.wantFog: self.fog.setColor(Vec4(0.8, 0.8, 0.8, 1.0)) self.fog.setLinearRange(0.0, 400.0) render.setFog(self.fog) self.loader.hood.sky.setFog(self.fog) SZUtil.stopUnderwaterFog()
def setWhiteFog(self): if base.wantFog: self.fog.setColor(self.whiteFogColor) self.fog.setLinearRange(0.0, 400.0) render.clearFog() render.setFog(self.fog) self.sky.clearFog() self.sky.setFog(self.fog) SZUtil.stopUnderwaterFog()
def load(self): self.notify.debug('load') DistributedMinigame.load(self) self.itText = OnscreenText.OnscreenText('itText', fg=(0.95, 0.95, 0.65, 1), scale=0.14, font=ToontownGlobals.getSignFont(), pos=(0.0, -0.8), wordwrap=15, mayChange=1) self.itText.hide() safezoneId = self.getSafezoneId() self.sky = loader.loadModel(TagGameGlobals.getSky(safezoneId)) self.ground = loader.loadModel(TagGameGlobals.getGround(safezoneId)) self.music = base.loadMusic('phase_4/audio/bgm/MG_toontag.ogg') self.tagSfx = base.loadSfx('phase_4/audio/sfx/MG_Tag_C.ogg') self.itPointer = loader.loadModel('phase_4/models/minigames/bboard-pointer') self.tracks = [] self.initialPositions = TagGameGlobals.getDropPoints(safezoneId) self.IT = None if TagGameGlobals.isSnowHood(safezoneId): self.snow, self.snowRender = SZUtil.createSnow(self.ground) return
def startSky(self): if not self.sky.getTag('sky') == 'Regular': self.endSpookySky() SZUtil.startCloudSky(self)
def skyTrack(self, task): return SZUtil.cloudSkyTrack(task)
def startSky(self): if self.hasFog: SZUtil.startCloudSky(self, parent=self.dummyNode, effects=CompassEffect.PRot) else: SZUtil.startCloudSky(self, parent=render)
def startSky(self): SZUtil.startCloudSky(self) if base.cloudPlatformsEnabled: self.loader.startCloudPlatforms()
def __setUnderwaterFog(self): if base.wantFog: self.fog.setLinearRange(0.1, 100.0) render.setFog(self.fog) self.loader.hood.sky.setFog(self.fog) SZUtil.startUnderwaterFog()
def setNoFog(self): if base.wantFog: render.clearFog() self.sky.clearFog() SZUtil.stopUnderwaterFog()
def startSky(self): if not self.sky.getTag('sky') == 'Regular': self.endSpookySky() SZUtil.startCloudSky(self) if base.cloudPlatformsEnabled: self.loader.startCloudPlatforms()
def __setFaintFog(self): if base.wantFog: self.fog.setColor(Vec4(0.8, 0.8, 0.8, 1.0)) self.fog.setLinearRange(0.0, 700.0) render.setFog(self.fog) SZUtil.stopUnderwaterFog()