mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Merge branch 'master' of gitlab.com:ToontownUnited/src
This commit is contained in:
commit
32fa7ca56c
3 changed files with 73 additions and 10 deletions
|
@ -1,5 +1,10 @@
|
||||||
|
from direct.interval.IntervalGlobal import Sequence, Func, Wait
|
||||||
from toontown.safezone import SafeZoneLoader
|
from toontown.safezone import SafeZoneLoader
|
||||||
from toontown.safezone import DDPlayground
|
from toontown.safezone import DDPlayground
|
||||||
|
from toontown.chat.ChatGlobals import CFSpeech
|
||||||
|
from toontown.toon import NPCToons
|
||||||
|
from toontown.toonbase import TTLocalizer
|
||||||
|
import random
|
||||||
|
|
||||||
class DDSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
|
class DDSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
|
||||||
|
|
||||||
|
@ -18,22 +23,44 @@ class DDSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
|
||||||
self.swimSound = base.loadSfx('phase_4/audio/sfx/AV_swim_single_stroke.ogg')
|
self.swimSound = base.loadSfx('phase_4/audio/sfx/AV_swim_single_stroke.ogg')
|
||||||
self.submergeSound = base.loadSfx('phase_5.5/audio/sfx/AV_jump_in_water.ogg')
|
self.submergeSound = base.loadSfx('phase_5.5/audio/sfx/AV_jump_in_water.ogg')
|
||||||
self.boat = self.geom.find('**/donalds_boat')
|
self.boat = self.geom.find('**/donalds_boat')
|
||||||
if self.boat.isEmpty():
|
|
||||||
self.notify.error('Boat not found')
|
|
||||||
else:
|
|
||||||
wheel = self.boat.find('**/wheel')
|
|
||||||
if wheel.isEmpty():
|
|
||||||
self.notify.warning('Wheel not found')
|
|
||||||
else:
|
|
||||||
wheel.hide()
|
|
||||||
self.boat.stash()
|
|
||||||
self.dockSound = base.loadSfx('phase_6/audio/sfx/SZ_DD_dockcreak.ogg')
|
self.dockSound = base.loadSfx('phase_6/audio/sfx/SZ_DD_dockcreak.ogg')
|
||||||
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():
|
||||||
|
wheel = self.boat.find('**/wheel')
|
||||||
|
|
||||||
|
if not wheel.isEmpty():
|
||||||
|
wheel.hide()
|
||||||
|
|
||||||
|
self.boat.stash()
|
||||||
|
self.donald = NPCToons.createLocalNPC(7011)
|
||||||
|
|
||||||
|
self.donald.setPos(0, -1, 3.95)
|
||||||
|
self.donald.reparentTo(self.boat)
|
||||||
|
self.donald.setHat(48, 0, 0)
|
||||||
|
|
||||||
|
self.donaldSpeech = Sequence()
|
||||||
|
random.shuffle(TTLocalizer.DonaldChatter)
|
||||||
|
|
||||||
|
for speechText in TTLocalizer.DonaldChatter:
|
||||||
|
self.donaldSpeech.append(Func(self.donald.setChatAbsolute, speechText, CFSpeech))
|
||||||
|
self.donaldSpeech.append(Wait(len(speechText.split(' '))))
|
||||||
|
self.donaldSpeech.append(Func(self.donald.clearChat))
|
||||||
|
self.donaldSpeech.append(Wait(15))
|
||||||
|
|
||||||
|
self.donaldSpeech.loop(0)
|
||||||
|
|
||||||
def unload(self):
|
def unload(self):
|
||||||
SafeZoneLoader.SafeZoneLoader.unload(self)
|
SafeZoneLoader.SafeZoneLoader.unload(self)
|
||||||
|
|
||||||
|
if hasattr(self, 'donald'):
|
||||||
|
self.donaldSpeech.pause()
|
||||||
|
self.donald.delete()
|
||||||
|
del self.donaldSpeech
|
||||||
|
del self.donald
|
||||||
|
|
||||||
del self.seagullSound
|
del self.seagullSound
|
||||||
del self.underwaterSound
|
del self.underwaterSound
|
||||||
del self.swimSound
|
del self.swimSound
|
||||||
|
@ -42,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
|
|
@ -11576,6 +11576,26 @@ NPCToonDict = {20000: (-1,
|
||||||
'm',
|
'm',
|
||||||
0,
|
0,
|
||||||
NPC_REGULAR),
|
NPC_REGULAR),
|
||||||
|
7011: (-1,
|
||||||
|
lnames[7011],
|
||||||
|
('fll',
|
||||||
|
'ls',
|
||||||
|
'm',
|
||||||
|
'm',
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
9,
|
||||||
|
0,
|
||||||
|
10,
|
||||||
|
10,
|
||||||
|
0,
|
||||||
|
10,
|
||||||
|
5,
|
||||||
|
27,
|
||||||
|
0),
|
||||||
|
'm',
|
||||||
|
0,
|
||||||
|
NPC_REGULAR),
|
||||||
# Magic Cat SOS
|
# Magic Cat SOS
|
||||||
# 5 Stars, Sound SOS, Bikehorn 255 damage. "The Bikehorn of Death".
|
# 5 Stars, Sound SOS, Bikehorn 255 damage. "The Bikehorn of Death".
|
||||||
91917: (-1,
|
91917: (-1,
|
||||||
|
|
|
@ -6720,6 +6720,7 @@ NPCToonNames = {20000: 'Tutorial Tom',
|
||||||
7008: 'Ima Cagedtoon',
|
7008: 'Ima Cagedtoon',
|
||||||
7009: 'Jimmy Thelock',
|
7009: 'Jimmy Thelock',
|
||||||
7010: 'Little Blinky',
|
7010: 'Little Blinky',
|
||||||
|
7011: 'Donald',
|
||||||
91917: 'Magic Cat'}
|
91917: 'Magic Cat'}
|
||||||
zone2TitleDict = {2513: ('Toon Hall', ''),
|
zone2TitleDict = {2513: ('Toon Hall', ''),
|
||||||
2514: ('Toontown Bank', ''),
|
2514: ('Toontown Bank', ''),
|
||||||
|
@ -8928,3 +8929,18 @@ def getPetNameId(name):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
PropIdToName = [InventoryHealString, MovieNPCSOSTrap, MovieNPCSOSLure, MovieNPCSOSSound, MovieNPCSOSThrow, MovieNPCSOSSquirt, MovieNPCSOSDrop]
|
PropIdToName = [InventoryHealString, MovieNPCSOSTrap, MovieNPCSOSLure, MovieNPCSOSSound, MovieNPCSOSThrow, MovieNPCSOSSquirt, MovieNPCSOSDrop]
|
||||||
|
DonaldChatter = ["I'm glad you're here today!",
|
||||||
|
"You look like you're having fun.",
|
||||||
|
"Oh boy, I'm having a good day.",
|
||||||
|
'I hope you are enjoying your ride!',
|
||||||
|
'I like meeting new people.',
|
||||||
|
'Have fun in my neighborhood.',
|
||||||
|
'I like to make people laugh.',
|
||||||
|
'Watch out for the Cogs!',
|
||||||
|
'Come aboard!',
|
||||||
|
"I heard it's snowing at the Brrrgh.",
|
||||||
|
'Looks like the trolley is coming!',
|
||||||
|
'Sometimes I play trolley games just to eat the fruit pie!',
|
||||||
|
'I hope you are enjoying your stay in Toontown!',
|
||||||
|
'I like what you are wearing.',
|
||||||
|
'I love to play tag. Do you?']
|
Loading…
Reference in a new issue