This commit is contained in:
John Cote 2015-05-10 12:20:39 -04:00
parent 3e0fb6b605
commit 70e2f91ea1

View file

@ -27,7 +27,7 @@ class DDSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
self.foghornSound = base.loadSfx('phase_5/audio/sfx/SZ_DD_foghorn.ogg') self.foghornSound = base.loadSfx('phase_5/audio/sfx/SZ_DD_foghorn.ogg')
self.bellSound = base.loadSfx('phase_6/audio/sfx/SZ_DD_shipbell.ogg') self.bellSound = base.loadSfx('phase_6/audio/sfx/SZ_DD_shipbell.ogg')
self.waterSound = base.loadSfx('phase_6/audio/sfx/SZ_DD_waterlap.ogg') self.waterSound = base.loadSfx('phase_6/audio/sfx/SZ_DD_waterlap.ogg')
if not self.boat.isEmpty(): if not self.boat.isEmpty():
wheel = self.boat.find('**/wheel') wheel = self.boat.find('**/wheel')
@ -36,20 +36,20 @@ class DDSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
self.boat.stash() self.boat.stash()
self.donald = NPCToons.createLocalNPC(7011) self.donald = NPCToons.createLocalNPC(7011)
self.donald.setPos(0, -1, 3.95) self.donald.setPos(0, -1, 3.95)
self.donald.reparentTo(self.boat) self.donald.reparentTo(self.boat)
self.donald.setHat(48, 0, 0) self.donald.setHat(48, 0, 0)
self.donaldSpeech = Sequence() self.donaldSpeech = Sequence()
random.shuffle(TTLocalizer.DonaldChatter) random.shuffle(TTLocalizer.DonaldChatter)
for speechText in TTLocalizer.DonaldChatter: for speechText in TTLocalizer.DonaldChatter:
self.donaldSpeech.append(Func(self.donald.setChatAbsolute, speechText, CFSpeech)) self.donaldSpeech.append(Func(self.donald.setChatAbsolute, speechText, CFSpeech))
self.donaldSpeech.append(Wait(len(speechText.split(' ')))) self.donaldSpeech.append(Wait(len(speechText.split(' '))))
self.donaldSpeech.append(Func(self.donald.clearChat)) self.donaldSpeech.append(Func(self.donald.clearChat))
self.donaldSpeech.append(Wait(15)) self.donaldSpeech.append(Wait(15))
self.donaldSpeech.loop(0) self.donaldSpeech.loop(0)
def unload(self): def unload(self):
@ -69,4 +69,4 @@ class DDSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
del self.bellSound del self.bellSound
del self.waterSound del self.waterSound
del self.submergeSound del self.submergeSound
del self.boat del self.boat