30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
from panda3d.core import *
|
|
import SafeZoneLoader
|
|
import FFPlayground
|
|
import random
|
|
from toontown.launcher import DownloadForceAcknowledge
|
|
|
|
class FFSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
|
|
|
|
def __init__(self, hood, parentFSM, doneEvent):
|
|
SafeZoneLoader.SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent)
|
|
self.playgroundClass = FFPlayground.FFPlayground
|
|
self.musicFile = 'phase_8/audio/bgm/TC_nbrhood.ogg'
|
|
self.activityMusicFile = 'phase_3.5/audio/bgm/TC_SZ_activity.ogg'
|
|
self.dnaFile = 'phase_8/dna/farms_sz.dna'
|
|
self.safeZoneStorageDNAFile = 'phase_8/dna/storage_FF_sz.dna'
|
|
|
|
def load(self):
|
|
SafeZoneLoader.SafeZoneLoader.load(self)
|
|
self.birdSound = map(base.loader.loadSfx, ['phase_8/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.ogg', 'phase_4/audio/sfx/SZ_TC_bird3.ogg'])
|
|
base.localAvatar.controlManager.currentControls.setGravity(10)
|
|
|
|
def unload(self):
|
|
del self.birdSound
|
|
SafeZoneLoader.SafeZoneLoader.unload(self)
|
|
|
|
def enter(self, requestStatus):
|
|
SafeZoneLoader.SafeZoneLoader.enter(self, requestStatus)
|
|
|
|
def exit(self):
|
|
SafeZoneLoader.SafeZoneLoader.exit(self)
|