def cleanup(self): localAvatar.b_setInInvasion(False) base.options.setInvasion(False) PooledEffect.setGlobalLimit(200) messenger.send('grid-detail-changed', [base.options.terrain_detail_level]) base.options.setRuntimeSpecialEffects() render.clearFog() base.setNoticeSystem(1) if not localAvatar.belongsInJail(): base.musicMgr.requestFadeOut(SoundGlobals.MUSIC_TORMENTA) base.musicMgr.requestFadeOut(SoundGlobals.MUSIC_TORMENTA_COMBAT) base.musicMgr.requestFadeOut(SoundGlobals.MUSIC_INVASION_VICTORY) base.musicMgr.requestFadeOut(SoundGlobals.MUSIC_INVASION_DEFEAT) if not self.cleanedUp: islandMusic = SoundGlobals.getMainMusic(self.parentObj.uniqueId) if islandMusic and not localAvatar.belongsInJail(): base.musicMgr.request(islandMusic, priority=-1, volume=0.59999999999999998) for minimapObj in self.minimapObjs.values(): minimapObj.destroy() self.minimapObjs = {} if self.brigadeText: self.brigadeText.destroy() self.brigadeText = None if self.shipShowingIval: self.shipShowingIval.pause() self.shipShowingIval = None if self.shipHidingIval: self.shipHidingIval.pause() self.shipHidingIval = None if self.lerpFogIval: self.lerpFogIval.pause() self.lerpFogIval = None self.stopLightingEffects() taskMgr.remove('invasionWinCheer') if self.invasionShip: self.invasionShip.destroy() self.invasionShip = None if self.shipNode: self.shipNode.removeNode() self.shipNode = None self.cleanedUp = True
def cleanup(self): localAvatar.b_setInInvasion(False) base.options.setInvasion(False) PooledEffect.setGlobalLimit(200) messenger.send('grid-detail-changed', [ base.options.terrain_detail_level]) base.options.setRuntimeSpecialEffects() render.clearFog() base.setNoticeSystem(1) if not localAvatar.belongsInJail(): base.musicMgr.requestFadeOut(SoundGlobals.MUSIC_TORMENTA) base.musicMgr.requestFadeOut(SoundGlobals.MUSIC_TORMENTA_COMBAT) base.musicMgr.requestFadeOut(SoundGlobals.MUSIC_INVASION_VICTORY) base.musicMgr.requestFadeOut(SoundGlobals.MUSIC_INVASION_DEFEAT) if not self.cleanedUp: islandMusic = SoundGlobals.getMainMusic(self.parentObj.uniqueId) if islandMusic and not localAvatar.belongsInJail(): base.musicMgr.request(islandMusic, priority = -1, volume = 0.59999999999999998) for minimapObj in self.minimapObjs.values(): minimapObj.destroy() self.minimapObjs = { } if self.brigadeText: self.brigadeText.destroy() self.brigadeText = None if self.shipShowingIval: self.shipShowingIval.pause() self.shipShowingIval = None if self.shipHidingIval: self.shipHidingIval.pause() self.shipHidingIval = None if self.lerpFogIval: self.lerpFogIval.pause() self.lerpFogIval = None self.stopLightingEffects() taskMgr.remove('invasionWinCheer') if self.invasionShip: self.invasionShip.destroy() self.invasionShip = None if self.shipNode: self.shipNode.removeNode() self.shipNode = None self.cleanedUp = True
def announceGenerate(self): DistributedObject.DistributedObject.announceGenerate(self) self.parentObj = self.getParentObj() self.linearFog = Fog('LinearInvasionFog') localAvatar.b_setInInvasion(True) base.options.setInvasion(True) PooledEffect.setGlobalLimit(20) messenger.send('grid-detail-changed', [Options.option_low]) base.options.setRuntimeSpecialEffects() base.setNoticeSystem(0) islandMusic = SoundGlobals.getMainMusic(self.parentObj.uniqueId) if islandMusic: base.musicMgr.requestFadeOut(islandMusic) base.musicMgr.request(SoundGlobals.MUSIC_TORMENTA, looping=True) numCapturePoints = InvasionGlobals.getTotalCapturePoints( self.holidayId) if base.launcher.getPhaseComplete(5): self.canPlaySfx = True else: self.canPlaySfx = False self.cleanedUp = False
def announceGenerate(self): DistributedObject.DistributedObject.announceGenerate(self) self.parentObj = self.getParentObj() self.linearFog = Fog('LinearInvasionFog') localAvatar.b_setInInvasion(True) base.options.setInvasion(True) PooledEffect.setGlobalLimit(20) messenger.send('grid-detail-changed', [ Options.option_low]) base.options.setRuntimeSpecialEffects() base.setNoticeSystem(0) islandMusic = SoundGlobals.getMainMusic(self.parentObj.uniqueId) if islandMusic: base.musicMgr.requestFadeOut(islandMusic) base.musicMgr.request(SoundGlobals.MUSIC_TORMENTA, looping = True) numCapturePoints = InvasionGlobals.getTotalCapturePoints(self.holidayId) if base.launcher.getPhaseComplete(5): self.canPlaySfx = True else: self.canPlaySfx = False self.cleanedUp = False