예제 #1
0
 def load(self):
     SafeZoneLoader.load(self)
     hq = self.geom.find('**/*toon_landmark_hqDL*')
     hq.find('**/doorFrameHoleLeft_0').stash()
     hq.find('**/doorFrameHoleRight_0').stash()
     hq.find('**/doorFrameHoleLeft_1').stash()
     hq.find('**/doorFrameHoleRight_1').stash()
예제 #2
0
 def load(self):
     SafeZoneLoader.load(self)
     hq = self.geom.find('**/*toon_landmark_hqMM*')
     hq.find('**/doorFrameHoleLeft_0').stash()
     hq.find('**/doorFrameHoleRight_0').stash()
     hq.find('**/doorFrameHoleLeft_1').stash()
     hq.find('**/doorFrameHoleRight_1').stash()
예제 #3
0
 def unload(self):
     SafeZoneLoader.unload(self)
     self.flippyBlatherSequence.finish()
     del self.confetti
     del self.confettiRender
     if self.flippy:
         self.flippy.stopBlink()
         self.flippy.removeActive()
         self.flippy.cleanup()
         self.flippy.removeNode()
         del self.flippy
     if self.mickey:
         self.mickey.removeActive()
         self.mickey.stopEarTask()
         self.mickey.delete()
         del self.mickey
     if self.bill:
         self.bill.stopBlink()
         self.bill.removeActive()
         self.billRun.finish()
         self.bill.cleanup()
         self.bill.removeNode()
         del self.bill
     if self.bfs:
         self.bfs.removeActive()
         self.bfs.cleanup()
         self.bfs.removeNode()
         del self.bfs
     if self.vp:
         self.vp.removeActive()
         self.vp.cleanup()
         self.vp.removeNode()
         del self.vp
예제 #4
0
 def __init__(self, hood, parentFSM, doneEvent):
     SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
     self.playgroundClass = Playground
     self.musicFile = 'phase_6/audio/bgm/TF_SZ_1.ogg'
     self.activityMusicFile = 'phase_3.5/audio/bgm/TC_SZ_activity.ogg' # Temporary
     self.dnaFile = 'phase_6/dna/toonfest_sz.xml'
     self.safeZoneStorageDNAFile = 'phase_6/dna/storage_TF.xml'
 def load(self):
     SafeZoneLoader.load(self)
     self.flippy = NPCToons.createLocalNPC(2001)
     self.flippy.reparentTo(render)
     self.flippy.setPickable(0)
     self.flippy.setPos(188, -260, 11.187)
     self.flippy.setH(108.411)
     self.flippy.initializeBodyCollisions('toon')
     self.flippy.addActive()
     self.flippy.startBlink()
     # Just keeping things relevant to 2.5.2, keeping away from TTR and TTO phrases...
     self.flippyBlatherSequence = Sequence(Wait(10), Func(self.flippy.setChatAbsolute, 'Hello and welcome Toons, far and wide!', CFSpeech | CFTimeout), Func(self.flippy.play, 'wave'), Func(self.flippy.loop, 'neutral'), Wait(12), Func(self.flippy.setChatAbsolute, "It's been a great time at Toontown, with you helping us stop the Cogs from ruining the experience with their destructive bugs, and we're glad you could join us!", CFSpeech | CFTimeout), Wait(10), Func(self.flippy.setChatAbsolute, "Oh, don't mind the little guy back there. That's my new-found lovable yet mysterious pet, Fluffy. That's what he calls himself.", CFSpeech | CFTimeout), Wait(8), Func(self.flippy.setChatAbsolute, "He came out of nowhere...", CFSpeech | CFTimeout), Wait(13), Func(self.flippy.setChatAbsolute,  "Just when I thought Toontown couldn't be any sillier! He's a real rascal, but he already has the Cog-fighting down to a science!", CFSpeech | CFTimeout), Wait(12), Func(self.flippy.setChatAbsolute, 'Doctor Surlee says he\'s some sort of creature called a "Doodle". Funny name, right?', CFSpeech | CFTimeout), Wait(16), Func(self.flippy.setChatAbsolute, "He also says Fluffy might have some friends and we may learn more about them soon.", CFSpeech | CFTimeout), Wait(8), Func(self.flippy.setChatAbsolute, 'Anyway, what are you waiting for?', CFSpeech | CFTimeout), Wait(8), Func(self.flippy.setChatAbsolute, 'Grab some pies and go for a spin. ToonFest is in full swing!', CFSpeech | CFTimeout), Wait(13), Func(self.flippy.setChatAbsolute, 'Buddy over there has made a few mistakes at the office so I have asked him to manage the balloon ride.', CFSpeech | CFTimeout), Wait(13), Func(self.flippy.setChatAbsolute, 'Hop in the balloon with Buddy and have a ride.', CFSpeech | CFTimeout))
     self.flippyBlatherSequence.loop()
     self.fluffy = Pet.Pet()
     self.fluffy.addActive()
     self.flippy.startBlink()
     self.fluffy.setDNA(PetDNA.getRandomPetDNA())
     self.fluffy.setName('Fluffy')
     self.fluffy.setPickable(0)
     self.fluffy.reparentTo(render)
     self.fluffy.setPos(191, -263, 11.382)
     self.fluffy.setH(829)
     self.fluffy.enterNeutralHappy()
     self.fluffy.initializeBodyCollisions('pet')
     try:
         self.towerGeom = self.geom.find('**/toonfest_tower_DNARoot')
         self.base1 = self.towerGeom.find('**/base1')
         self.base2 = self.towerGeom.find('**/base2')
         self.base3 = self.towerGeom.find('**/base3')
     except:
         self.notify.warning('Something messed up loading the tower bases!')
예제 #6
0
 def createSafeZone(self, dnaFile):
     SafeZoneLoader.createSafeZone(self, dnaFile)
     binMgr = CullBinManager.getGlobalPtr()
     binMgr.addBin('water', CullBinManager.BTFixed, 29)
     water = self.geom.find('**/pond_water')
     water.setTransparency(1)
     water.setColorScale(1.0, 1.0, 1.0, 1.0)
     water.setBin('water', 51, 1)
 def __init__(self, hood, parentFSM, doneEvent):
     SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
     self.playgroundClass = Playground
     self.musicFile = 'phase_6/audio/bgm/TF_SZ_1.ogg'
     self.activityMusicFile = 'phase_3.5/audio/bgm/TC_SZ_activity.ogg' # Temporary
     self.dnaFile = 'phase_6/dna/toonfest_sz.xml'
     self.safeZoneStorageDNAFile = 'phase_6/dna/storage_TF.xml'
     self.restockSfx = loader.loadSfx('phase_9/audio/sfx/CHQ_SOS_pies_restock.ogg')
     self.flippyBlatherSequence = Sequence()
     self.fluffy = None
 def __init__(self, hood, parentFSM, doneEvent):
     SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
     self.playground = RecoverPlayground
     self.pgMusicFilename = None
     self.interiorMusicFilename = None
     self.battleMusicFile = None
     self.bossBattleMusicFile = None
     self.tournamentMusicFiles = None
     self.dnaFile = 'phase_5.5/dna/estate_1.dna'
     self.szStorageDNAFile = 'phase_5.5/dna/storage_estate.dna'
예제 #9
0
 def __init__(self, hood, parentFSM, doneEvent):
     SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
     self.playground = RecoverPlayground
     self.pgMusicFilename = None
     self.interiorMusicFilename = None
     self.battleMusicFile = None
     self.bossBattleMusicFile = None
     self.tournamentMusicFiles = None
     self.dnaFile = 'phase_5.5/dna/estate_1.dna'
     self.szStorageDNAFile = 'phase_5.5/dna/storage_estate.dna'
     return
 def __init__(self, hood, parentFSM, doneEvent):
     SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
     self.playground = MLPlayground
     self.safeZoneSong = 'MM_nbrhood'
     self.interiorSong = 'MM_SZ_activity'
     self.dnaFile = 'phase_6/dna/minnies_melody_land_sz.pdna'
     self.szStorageDNAFile = 'phase_6/dna/storage_MM_sz.pdna'
     self.szHolidayDNAFile = None
     if base.cr.holidayManager.getHoliday() == HolidayType.CHRISTMAS:
         self.szHolidayDNAFile = 'phase_6/dna/winter_storage_MM_sz.pdna'
     self.telescope = None
     base.wakeWaterHeight = -14.5652
예제 #11
0
    def __init__(self, hood, parentFSM, doneEvent):
        SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
        self.playground = DLPlayground
        self.safeZoneSong = 'DL_nbrhood'
        self.interiorSong = 'DL_SZ_activity'
        self.dnaFile = 'phase_8/dna/donalds_dreamland_sz.pdna'
        self.szStorageDNAFile = 'phase_8/dna/storage_DL_sz.pdna'
        self.szHolidayDNAFile = None
        if base.cr.holidayManager.getHoliday() == HolidayType.CHRISTMAS:
            self.szHolidayDNAFile = 'phase_8/dna/winter_storage_DL_sz.pdna'
        self.telescope = None
        base.wakeWaterHeight = -17.0385

        self.lampLights = []
예제 #12
0
 def __init__(self, hood, parentFSM, doneEvent):
     SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
     self.playgroundClass = TFPlayground
     self.musicFile = 'phase_6/audio/bgm/TF_SZ_1.ogg'
     self.activityMusicFile = 'phase_3.5/audio/bgm/TC_SZ_activity.ogg'
     self.dnaFile = 'phase_6/dna/toonfest_sz.jazz'
     self.safeZoneStorageDNAFile = 'phase_6/dna/storage_TF.jazz'
     self.clouds = []
     self.cloudSwitch = 0
     self.cloudTrack = None
     self.flippyBlatherSequence = Sequence()
     self.fluffy = None
     self.flippy = None
     return
 def unload(self):
     SafeZoneLoader.unload(self)
     self.flippyBlatherSequence.finish()
     if self.flippy:
         self.flippy.stopBlink()
         self.flippy.removeActive()
         self.flippy.cleanup()
         self.flippy.removeNode()
     if self.fluffy:
         self.fluffy.stopBlink()
         self.fluffy.removeActive()
         self.fluffy.enterOff()
         self.fluffy.cleanup()
         self.fluffy.removeNode()
예제 #14
0
    def load(self):
        SafeZoneLoader.load(self, False)

        if metadata.USE_LIGHTING:
            for lamp in self.geom.findAllMatches("**/*light_DNARoot*"):
                self.lampLights.append(self.hood.makeLampLight(lamp))

        self.doFlatten()

        hq = self.geom.find('**/*toon_landmark_hqDL*')
        hq.find('**/doorFrameHoleLeft_0').stash()
        hq.find('**/doorFrameHoleRight_0').stash()
        hq.find('**/doorFrameHoleLeft_1').stash()
        hq.find('**/doorFrameHoleRight_1').stash()
예제 #15
0
    def doFlatten(self):

        water = self.geom.find("**/DLpd_water")
        water.removeNode()

        self.geom.find("**/donalds_dreamland").flattenStrong()

        dlprops = self.geom.attachNewNode('dlprops')
        CIGlobals.moveNodes(self.geom, "*DL_post*_DNARoot", dlprops)
        CIGlobals.moveNodes(self.geom, "*DL_clouds*_DNARoot", dlprops)
        CIGlobals.removeDNACodes(dlprops)
        dlprops.clearModelNodes()
        dlprops.flattenStrong()

        SafeZoneLoader.doFlatten(self)
예제 #16
0
 def unload(self):
     del self.tower
     del self.base1
     del self.base2
     del self.base3
     self.flippyBlatherSequence.finish()
     if self.flippy:
         self.flippy.stopBlink()
         self.flippy.removeActive()
         self.flippy.delete()
     if self.fluffy:
         self.fluffy.stopBlink()
         self.fluffy.removeActive()
         self.fluffy.enterOff()
         self.fluffy.delete()
     SafeZoneLoader.unload(self)
예제 #17
0
 def __init__(self, hood, parentFSM, doneEvent):
     SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
     self.playground = DLPlayground
     self.pgMusicFilename = 'phase_8/audio/bgm/DL_nbrhood.mid'
     self.interiorMusicFilename = 'phase_8/audio/bgm/DL_SZ_activity.mid'
     self.battleMusicFile = 'phase_3.5/audio/bgm/encntr_general_bg.mid'
     self.invasionMusicFiles = ['phase_12/audio/bgm/BossBot_CEO_v1.mid', 'phase_9/audio/bgm/encntr_suit_winning.mid']
     self.tournamentMusicFiles = ['phase_3.5/audio/bgm/encntr_nfsmw_bg_1.mp3',
      'phase_3.5/audio/bgm/encntr_nfsmw_bg_2.mp3',
      'phase_3.5/audio/bgm/encntr_nfsmw_bg_3.mp3',
      'phase_3.5/audio/bgm/encntr_nfsmw_bg_4.mp3']
     self.bossBattleMusicFile = 'phase_7/audio/bgm/encntr_suit_winning_indoor.mid'
     self.dnaFile = 'phase_8/dna/donalds_dreamland_sz.dna'
     self.szStorageDNAFile = 'phase_8/dna/storage_DL_sz.dna'
     self.telescope = None
     return
예제 #18
0
 def load(self):
     SafeZoneLoader.load(self)
     self.flippy = ToontownAvatarUtils.createToon(2001, 188, -260, 4.597,
                                                  108.411)
     self.flippy.addActive()
     self.flippy.startBlink()
     self.flippyBlatherSequence = Sequence(
         Wait(10),
         Func(self.flippy.setChatAbsolute, 'Welcome Toons, far and wide!',
              CFSpeech | CFTimeout), ActorInterval(self.flippy, 'wave'),
         Func(self.flippy.loop, 'neutral'), Wait(5),
         Func(
             self.flippy.setChatAbsolute,
             "It's been an amazing year at Toontown, and we're glad you could join us!",
             CFSpeech | CFTimeout), Wait(8),
         Func(
             self.flippy.setChatAbsolute,
             "Oh, don't mind the little guy back there. That's my new pet, Fluffy.",
             CFSpeech | CFTimeout), Wait(8),
         Func(
             self.flippy.setChatAbsolute,
             "He's a real rascal, but he already has the Cog-fighting down to a science!",
             CFSpeech | CFTimeout), Wait(8),
         Func(
             self.flippy.setChatAbsolute,
             'Doctor Surlee says he\'s some sort of creature called a "Doodle". Funny name, right?',
             CFSpeech | CFTimeout), Wait(8),
         Func(self.flippy.setChatAbsolute,
              'Anyway, what are you waiting for?', CFSpeech | CFTimeout),
         ActorInterval(self.flippy, 'shrug'),
         Func(self.flippy.loop, 'neutral'), Wait(4),
         Func(
             self.flippy.setChatAbsolute,
             'Grab some pies, catch some fish, and go for a spin. ToonFest is in full swing!',
             CFSpeech | CFTimeout))
     self.flippyBlatherSequence.loop()
     self.fluffy = ToontownAvatarUtils.createDoodle('Fluffy', -1, 0, 0, -1,
                                                    4, 0, 0, 5, 1, 191,
                                                    -263, 4.597, 109)
     self.fluffy.addActive()
     self.fluffy.startBlink()
     self.tower = self.geom.find('**/toonfest_tower_DNARoot')
     self.base1 = self.tower.find('**/base1')
     self.base2 = self.tower.find('**/base2')
     self.base3 = self.tower.find('**/base3')
     self.body = self.tower.find('**/tf_tower_mid')
     self.sign = self.tower.find('**/tf_sign')
 def doFlatten(self):
     water = self.geom.find("**/MMsz_water")
     water.removeNode()
     
     self.geom.find("**/minnies_melody_land_anchor").flattenStrong()
     self.geom.find("**/big_wall").flattenStrong()
     
     mmprops = self.geom.attachNewNode('mmprops')
     CIGlobals.moveNodes(self.geom, "*MM_flute*_DNARoot", mmprops)
     CIGlobals.moveNodes(self.geom, "*MM_trumpets*_DNARoot", mmprops)
     CIGlobals.moveNodes(self.geom, "*minnie_planter*_DNARoot", mmprops)
     CIGlobals.moveNodes(self.geom, "prop_chimney_DNARoot", mmprops)
     CIGlobals.moveNodes(self.geom, "prop_stovepipe_DNARoot", mmprops)
     CIGlobals.moveNodes(self.geom, "prop_roof_access_DNARoot", mmprops)
     CIGlobals.moveNodes(self.geom, "prop_trumpet_flat_DNARoot", mmprops)
     CIGlobals.moveNodes(self.geom, "prop_cello_flat_DNARoot", mmprops)
     CIGlobals.removeDNACodes(mmprops)
     mmprops.clearModelNodes()
     mmprops.flattenStrong()
     CIGlobals.moveChildren(mmprops, self.geom)
     
     SafeZoneLoader.doFlatten(self)
예제 #20
0
 def __init__(self, hood, parentFSM, doneEvent):
     SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
     self.playground = MLPlayground
     self.pgMusicFilename = 'phase_6/audio/bgm/MM_nbrhood.mid'
     self.interiorMusicFilename = 'phase_6/audio/bgm/MM_SZ_activity.mid'
     self.battleMusicFile = 'phase_3.5/audio/bgm/encntr_general_bg.mid'
     self.invasionMusicFiles = [
      'phase_12/audio/bgm/BossBot_CEO_v1.mid',
      'phase_9/audio/bgm/encntr_suit_winning.mid']
     self.tournamentMusicFiles = [
      'phase_3.5/audio/bgm/encntr_nfsmw_bg_1.ogg',
      'phase_3.5/audio/bgm/encntr_nfsmw_bg_2.ogg',
      'phase_3.5/audio/bgm/encntr_nfsmw_bg_3.ogg',
      'phase_3.5/audio/bgm/encntr_nfsmw_bg_4.ogg']
     self.bossBattleMusicFile = 'phase_7/audio/bgm/encntr_suit_winning_indoor.mid'
     self.dnaFile = 'phase_6/dna/minnies_melody_land_sz.pdna'
     self.szStorageDNAFile = 'phase_6/dna/storage_MM_sz.pdna'
     self.szHolidayDNAFile = None
     if base.cr.holidayManager.getHoliday() == HolidayType.CHRISTMAS:
         self.szHolidayDNAFile = 'phase_6/dna/winter_storage_MM_sz.pdna'
     self.telescope = None
     return
예제 #21
0
 def __init__(self, hood, parentFSM, doneEvent):
     SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
     self.playground = DLPlayground
     self.pgMusicFilename = 'phase_8/audio/bgm/DL_nbrhood.ogg'
     self.interiorMusicFilename = 'phase_8/audio/bgm/DL_SZ_activity.ogg'
     self.battleMusicFile = 'phase_3.5/audio/bgm/encntr_general_bg.ogg'
     self.invasionMusicFiles = [
         "phase_12/audio/bgm/BossBot_CEO_v1.ogg",
         "phase_9/audio/bgm/encntr_suit_winning.ogg"
     ]
     self.tournamentMusicFiles = [
         "phase_3.5/audio/bgm/encntr_nfsmw_bg_1.ogg",
         "phase_3.5/audio/bgm/encntr_nfsmw_bg_2.ogg",
         "phase_3.5/audio/bgm/encntr_nfsmw_bg_3.ogg",
         "phase_3.5/audio/bgm/encntr_nfsmw_bg_4.ogg",
     ]
     self.bossBattleMusicFile = 'phase_7/audio/bgm/encntr_suit_winning_indoor.ogg'
     self.dnaFile = 'phase_8/dna/donalds_dreamland_sz.pdna'
     self.szStorageDNAFile = 'phase_8/dna/storage_DL_sz.pdna'
     self.szHolidayDNAFile = None
     if base.cr.holidayManager.getHoliday() == HolidayType.CHRISTMAS:
         self.szHolidayDNAFile = 'phase_8/dna/winter_storage_DL_sz.pdna'
     self.telescope = None
예제 #22
0
 def enter(self, requestStatus):
     SafeZoneLoader.enter(self, requestStatus)
     if self.confetti is not None:
         self.confetti.start(camera, self.confettiRender)
예제 #23
0
 def unload(self):
     for lamp in self.lampLights:
         render.clearLight(lamp)
         lamp.removeNode()
     self.lampLights = None
     SafeZoneLoader.unload(self)
예제 #24
0
 def load(self):
     SafeZoneLoader.load(self)
예제 #25
0
 def exit(self):
     SafeZoneLoader.exit(self)
예제 #26
0
 def enter(self, requestStatus):
     SafeZoneLoader.enter(self, requestStatus)
 def load(self):
     SafeZoneLoader.load(self)
     self.geom.find('**/Path').setTransparency(TransparencyAttrib.MBinary,
                                               1)
예제 #28
0
    def load(self):
        SafeZoneLoader.load(self)
        # Flippy
        self.flippy = NPCToons.createLocalNPC(2001)
        self.flippy.reparentTo(render)
        self.flippy.setPickable(0)
        self.flippy.setPos(178.6, -265.6, 5.2)
        self.flippy.setH(100)
        self.flippy.initializeBodyCollisions('toon')
        self.flippy.addActive()
        self.flippy.startBlink()

        self.flippyBlatherSequence = Sequence(
            Wait(10),
            Func(self.flippy.setChatAbsolute, 'Hey, how\'s it going?',
                 CFSpeech | CFTimeout), Wait(5),
            Func(
                self.flippy.setChatAbsolute,
                "I'm fine myself, given how I've had to code ToonFest into RTTIM.",
                CFSpeech | CFTimeout), Wait(8),
            Func(self.flippy.setChatAbsolute, "Thanks, Bill.",
                 CFSpeech | CFTimeout), Wait(5),
            Func(self.flippy.setChatAbsolute, "Anyway, I hope you enjoy it.",
                 CFSpeech | CFTimeout), Wait(7),
            Func(self.flippy.setChatAbsolute, 'I didn\'t do it for nothing.',
                 CFSpeech | CFTimeout))
        self.flippyBlatherSequence.start()

        # Fluffy
        self.mickey = Char.Char()
        self.mickeyDNA = CharDNA.CharDNA()
        self.mickeyDNA.newChar('mk')
        self.mickey.setDNA(self.mickeyDNA)
        self.mickey.addActive()
        self.mickey.startEarTask()
        self.mickey.reparentTo(render)
        self.mickey.setPos(180.382, -271.073, 5.621)
        self.mickey.setH(67.684)

        # Bill
        self.bill = NPCToons.createLocalNPC(2001)
        self.bill.reparentTo(render)
        self.bill.setPickable(0)
        self.bill.setPos(112.799, -19.293, 4.597)
        self.bill.setH(-164.953)
        self.bill.initializeBodyCollisions('toon')
        self.bill.addActive()
        self.bill.startBlink()

        self.billRun = Sequence(
            Func(self.bill.loop, 'run'),
            self.bill.posInterval(8.1, (154.792, -175.501, 4.597)),
            Func(self.bill.loop, 'walk'),
            self.bill.hprInterval(1.0, (-344.953, 0, 0)),
            Func(self.bill.loop, 'run'),
            self.bill.posInterval(8.1, (112.799, -19.293, 4.597)),
            Func(self.bill.loop, 'walk'),
            self.bill.hprInterval(1.0, (-164.953, 0, 0)))

        self.billRun.loop()

        self.bfs = Suit.Suit()
        self.bfsDNA = SuitDNA.SuitDNA()
        self.bfsDNA.newSuit('bfs')
        self.bfs.setDNA(self.bfsDNA)
        self.bfs.setPickable(0)
        self.bfs.addActive()
        self.bfs.reparentTo(render)
        self.bfs.initializeBodyCollisions('suit')
        self.bfs.setPos(207, -164, 4.597)
        self.bfs.setH(-240.097)

        self.bfs.pingpong('slip-forward', 30, 40)

        #BossCog
        self.vp = BossCog.BossCog()
        self.vpDNA = SuitDNA.SuitDNA()
        self.vpDNA.newBossCog('s')
        self.vp.setDNA(self.vpDNA)
        self.vp.addActive()
        self.vp.reparentTo(render)
        self.vp.initializeBodyCollisions('bosscog')
        self.vp.setPos(302.777, -370.352, 14.446)
        self.vp.setH(-126.356)
        self.vp.happy = 0
        self.vp.doAnimate(self.vp.getAnim(None))

        # Find the bases - base1 is largest
        try:
            self.towerGeom = self.geom.find('**/toonfest_tower_DNARoot')
            self.towerGeom.find('**/itsclosed').removeNode()
            self.base1 = self.towerGeom.find('**/base1')
            self.base2 = self.towerGeom.find('**/base2')
            self.base3 = self.towerGeom.find('**/base3')
        except:
            self.notify.warning("Something messed up loading the tower bases!")

        self.confetti = None
        self.confettiRender = None
        self.confettiFade = None
        self.loadConfetti()
예제 #29
0
 def load(self):
     SafeZoneLoader.load(self)
     self.geom.find('**/Path').setTransparency(TransparencyAttrib.MBinary, 1)