audio: Convert all .mp3 to .ogg in a line, not just first.
This commit is contained in:
parent
da4648041a
commit
be3610159b
21 changed files with 35 additions and 35 deletions
|
@ -9,8 +9,8 @@ import MovieNPCSOS
|
|||
from MovieUtil import calcAvgSuitPos
|
||||
from direct.showutil import Effects
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('MovieDrop')
|
||||
hitSoundFiles = ('AA_drop_flowerpot.ogg', 'AA_drop_sandbag.mp3', 'AA_drop_anvil.mp3', 'AA_drop_bigweight.mp3', 'AA_drop_safe.mp3', 'AA_drop_piano.mp3', 'AA_drop_boat.mp3')
|
||||
missSoundFiles = ('AA_drop_flowerpot_miss.ogg', 'AA_drop_sandbag_miss.mp3', 'AA_drop_anvil_miss.mp3', 'AA_drop_bigweight_miss.mp3', 'AA_drop_safe_miss.mp3', 'AA_drop_piano_miss.mp3', 'AA_drop_boat_miss.mp3')
|
||||
hitSoundFiles = ('AA_drop_flowerpot.ogg', 'AA_drop_sandbag.ogg', 'AA_drop_anvil.ogg', 'AA_drop_bigweight.ogg', 'AA_drop_safe.ogg', 'AA_drop_piano.ogg', 'AA_drop_boat.ogg')
|
||||
missSoundFiles = ('AA_drop_flowerpot_miss.ogg', 'AA_drop_sandbag_miss.ogg', 'AA_drop_anvil_miss.ogg', 'AA_drop_bigweight_miss.ogg', 'AA_drop_safe_miss.ogg', 'AA_drop_piano_miss.ogg', 'AA_drop_boat_miss.ogg')
|
||||
tDropShadow = 1.3
|
||||
tSuitDodges = 2.45 + tDropShadow
|
||||
tObjectAppears = 3.0 + tDropShadow
|
||||
|
|
|
@ -11,7 +11,7 @@ import MovieCamera
|
|||
import MovieUtil
|
||||
from MovieUtil import calcAvgSuitPos
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('MovieThrow')
|
||||
hitSoundFiles = ('AA_tart_only.ogg', 'AA_slice_only.mp3', 'AA_slice_only.mp3', 'AA_slice_only.mp3', 'AA_slice_only.mp3', 'AA_wholepie_only.mp3', 'AA_wholepie_only.mp3')
|
||||
hitSoundFiles = ('AA_tart_only.ogg', 'AA_slice_only.ogg', 'AA_slice_only.ogg', 'AA_slice_only.ogg', 'AA_slice_only.ogg', 'AA_wholepie_only.ogg', 'AA_wholepie_only.ogg')
|
||||
tPieLeavesHand = 2.7
|
||||
tPieHitsSuit = 3.0
|
||||
tSuitDodges = 2.45
|
||||
|
|
|
@ -15,7 +15,7 @@ import MovieNPCSOS
|
|||
from toontown.effects import Splash
|
||||
from direct.task import Task
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('MovieHeal')
|
||||
soundFiles = ('AA_heal_tickle.ogg', 'AA_heal_telljoke.mp3', 'AA_heal_smooch.mp3', 'AA_heal_happydance.mp3', 'AA_heal_pixiedust.mp3', 'AA_heal_juggle.mp3', 'AA_heal_High_Dive.mp3')
|
||||
soundFiles = ('AA_heal_tickle.ogg', 'AA_heal_telljoke.ogg', 'AA_heal_smooch.ogg', 'AA_heal_happydance.ogg', 'AA_heal_pixiedust.ogg', 'AA_heal_juggle.ogg', 'AA_heal_High_Dive.ogg')
|
||||
healPos = Point3(0, 0, 0)
|
||||
healHpr = Vec3(180.0, 0, 0)
|
||||
runHealTime = 1.0
|
||||
|
|
|
@ -322,7 +322,7 @@ def __createSuitDamageTrack(battle, suit, hp, lure, trapProp):
|
|||
animTrack = Sequence(ActorInterval(trapProp, 'banana', startTime=3.1), Wait(1.1), LerpScaleInterval(trapProp, 1, Point3(0.01, 0.01, 0.01)))
|
||||
suitTrack = ActorInterval(suit, 'slip-backward')
|
||||
damageTrack = Sequence(Wait(0.5), Func(suit.showHpText, -hp, openEnded=0), Func(suit.updateHealthBar, hp))
|
||||
soundTrack = Sequence(SoundInterval(globalBattleSoundCache.getSound('AA_pie_throw_only.ogg'), duration=0.55, node=suit), SoundInterval(globalBattleSoundCache.getSound('Toon_bodyfall_synergy.mp3'), node=suit))
|
||||
soundTrack = Sequence(SoundInterval(globalBattleSoundCache.getSound('AA_pie_throw_only.ogg'), duration=0.55, node=suit), SoundInterval(globalBattleSoundCache.getSound('Toon_bodyfall_synergy.ogg'), node=suit))
|
||||
result.append(Parallel(moveTrack, animTrack, suitTrack, damageTrack, soundTrack))
|
||||
elif trapName == 'rake' or trapName == 'rake-react':
|
||||
hpr = trapProp.getHpr(parent)
|
||||
|
@ -342,7 +342,7 @@ def __createSuitDamageTrack(battle, suit, hp, lure, trapProp):
|
|||
animTrack = ActorInterval(trapProp, 'marbles', startTime=3.1)
|
||||
suitTrack = ActorInterval(suit, 'slip-backward')
|
||||
damageTrack = Sequence(Wait(0.5), Func(suit.showHpText, -hp, openEnded=0), Func(suit.updateHealthBar, hp))
|
||||
soundTrack = Sequence(SoundInterval(globalBattleSoundCache.getSound('AA_pie_throw_only.ogg'), duration=0.55, node=suit), SoundInterval(globalBattleSoundCache.getSound('Toon_bodyfall_synergy.mp3'), node=suit))
|
||||
soundTrack = Sequence(SoundInterval(globalBattleSoundCache.getSound('AA_pie_throw_only.ogg'), duration=0.55, node=suit), SoundInterval(globalBattleSoundCache.getSound('Toon_bodyfall_synergy.ogg'), node=suit))
|
||||
result.append(Parallel(moveTrack, animTrack, suitTrack, damageTrack, soundTrack))
|
||||
elif trapName == 'quicksand':
|
||||
sinkPos1 = trapProp.getPos(battle)
|
||||
|
@ -360,7 +360,7 @@ def __createSuitDamageTrack(battle, suit, hp, lure, trapProp):
|
|||
moveTrack = Sequence(Wait(0.9), LerpPosInterval(suit, 0.9, sinkPos1, other=battle), LerpPosInterval(suit, 0.4, sinkPos2, other=battle), Func(suit.setPos, battle, dropPos), Func(suit.wrtReparentTo, hidden), Wait(1.1), Func(suit.wrtReparentTo, battle), LerpPosInterval(suit, 0.3, landPos, other=battle))
|
||||
animTrack = Sequence(ActorInterval(suit, 'flail'), ActorInterval(suit, 'flail', startTime=1.1), Wait(0.7), ActorInterval(suit, 'slip-forward', duration=2.1))
|
||||
damageTrack = Sequence(Wait(3.5), Func(suit.showHpText, -hp, openEnded=0), Func(suit.updateHealthBar, hp))
|
||||
soundTrack = Sequence(Wait(0.7), SoundInterval(globalBattleSoundCache.getSound('TL_quicksand.ogg'), node=suit), Wait(0.1), SoundInterval(globalBattleSoundCache.getSound('Toon_bodyfall_synergy.mp3'), node=suit))
|
||||
soundTrack = Sequence(Wait(0.7), SoundInterval(globalBattleSoundCache.getSound('TL_quicksand.ogg'), node=suit), Wait(0.1), SoundInterval(globalBattleSoundCache.getSound('Toon_bodyfall_synergy.ogg'), node=suit))
|
||||
result.append(Parallel(trapTrack, moveTrack, animTrack, damageTrack, soundTrack))
|
||||
elif trapName == 'trapdoor':
|
||||
sinkPos = trapProp.getPos(battle)
|
||||
|
@ -372,7 +372,7 @@ def __createSuitDamageTrack(battle, suit, hp, lure, trapProp):
|
|||
moveTrack = Sequence(Wait(2.2), LerpPosInterval(suit, 0.4, sinkPos, other=battle), Func(suit.setPos, battle, dropPos), Func(suit.wrtReparentTo, hidden), Wait(1.6), Func(suit.wrtReparentTo, battle), LerpPosInterval(suit, 0.3, landPos, other=battle))
|
||||
animTrack = Sequence(getSplicedLerpAnimsTrack(suit, 'flail', 0.7, 0.25), Func(trapProp.setColor, Vec4(0, 0, 0, 1)), ActorInterval(suit, 'flail', startTime=0.7, endTime=0), ActorInterval(suit, 'neutral', duration=0.5), ActorInterval(suit, 'flail', startTime=1.1), Wait(1.1), ActorInterval(suit, 'slip-forward', duration=2.1))
|
||||
damageTrack = Sequence(Wait(3.5), Func(suit.showHpText, -hp, openEnded=0), Func(suit.updateHealthBar, hp))
|
||||
soundTrack = Sequence(Wait(0.8), SoundInterval(globalBattleSoundCache.getSound('TL_trap_door.ogg'), node=suit), Wait(0.8), SoundInterval(globalBattleSoundCache.getSound('Toon_bodyfall_synergy.mp3'), node=suit))
|
||||
soundTrack = Sequence(Wait(0.8), SoundInterval(globalBattleSoundCache.getSound('TL_trap_door.ogg'), node=suit), Wait(0.8), SoundInterval(globalBattleSoundCache.getSound('Toon_bodyfall_synergy.ogg'), node=suit))
|
||||
result.append(Parallel(trapTrack, moveTrack, animTrack, damageTrack, soundTrack))
|
||||
elif trapName == 'tnt':
|
||||
tntTrack = ActorInterval(trapProp, 'tnt')
|
||||
|
|
|
@ -11,7 +11,7 @@ from toontown.toonbase import TTLocalizer
|
|||
from toontown.toonbase import ToontownBattleGlobals
|
||||
from toontown.toon import NPCToons
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('MovieNPCSOS')
|
||||
soundFiles = ('AA_heal_tickle.ogg', 'AA_heal_telljoke.mp3', 'AA_heal_smooch.mp3', 'AA_heal_happydance.mp3', 'AA_heal_pixiedust.mp3', 'AA_heal_juggle.mp3')
|
||||
soundFiles = ('AA_heal_tickle.ogg', 'AA_heal_telljoke.ogg', 'AA_heal_smooch.ogg', 'AA_heal_happydance.ogg', 'AA_heal_pixiedust.ogg', 'AA_heal_juggle.ogg')
|
||||
offset = Point3(0, 4.0, 0)
|
||||
|
||||
def __cogsMiss(attack, level, hp):
|
||||
|
|
|
@ -11,7 +11,7 @@ from toontown.toonbase import TTLocalizer
|
|||
from toontown.toonbase import ToontownBattleGlobals
|
||||
from toontown.pets import Pet, PetTricks
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('MoviePetSOS')
|
||||
soundFiles = ('AA_heal_tickle.ogg', 'AA_heal_telljoke.mp3', 'AA_heal_smooch.mp3', 'AA_heal_happydance.mp3', 'AA_heal_pixiedust.mp3', 'AA_heal_juggle.mp3')
|
||||
soundFiles = ('AA_heal_tickle.ogg', 'AA_heal_telljoke.ogg', 'AA_heal_smooch.ogg', 'AA_heal_happydance.ogg', 'AA_heal_pixiedust.ogg', 'AA_heal_juggle.ogg')
|
||||
offset = Point3(0, 4.0, 0)
|
||||
|
||||
def doPetSOSs(PetSOSs):
|
||||
|
|
|
@ -10,8 +10,8 @@ import MovieUtil
|
|||
import MovieNPCSOS
|
||||
from toontown.toonbase import ToontownBattleGlobals
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('MovieSound')
|
||||
soundFiles = ('AA_sound_bikehorn.ogg', 'AA_sound_whistle.mp3', 'AA_sound_bugle.mp3', 'AA_sound_aoogah.mp3', 'AA_sound_elephant.mp3', 'SZ_DD_foghorn.mp3', 'AA_sound_Opera_Singer.mp3')
|
||||
appearSoundFiles = ('MG_tag_1.ogg', 'LB_receive_evidence.mp3', 'm_match_trumpet.mp3', 'TL_step_on_rake.mp3', 'toonbldg_grow.mp3', 'mailbox_full_wobble.mp3', 'mailbox_full_wobble.mp3')
|
||||
soundFiles = ('AA_sound_bikehorn.ogg', 'AA_sound_whistle.ogg', 'AA_sound_bugle.ogg', 'AA_sound_aoogah.ogg', 'AA_sound_elephant.ogg', 'SZ_DD_foghorn.ogg', 'AA_sound_Opera_Singer.ogg')
|
||||
appearSoundFiles = ('MG_tag_1.ogg', 'LB_receive_evidence.ogg', 'm_match_trumpet.ogg', 'TL_step_on_rake.ogg', 'toonbldg_grow.ogg', 'mailbox_full_wobble.ogg', 'mailbox_full_wobble.ogg')
|
||||
hitSoundFiles = ('AA_sound_Opera_Singer_Cog_Glass.ogg',)
|
||||
tSound = 2.45
|
||||
tSuitReact = 2.8
|
||||
|
|
|
@ -12,8 +12,8 @@ from toontown.toonbase import ToontownGlobals
|
|||
from toontown.toonbase import ToontownBattleGlobals
|
||||
import random
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('MovieSquirt')
|
||||
hitSoundFiles = ('AA_squirt_flowersquirt.ogg', 'AA_squirt_glasswater.mp3', 'AA_squirt_neonwatergun.mp3', 'AA_squirt_seltzer.mp3', 'firehose_spray.mp3', 'AA_throw_stormcloud.mp3', 'AA_squirt_Geyser.mp3')
|
||||
missSoundFiles = ('AA_squirt_flowersquirt_miss.ogg', 'AA_squirt_glasswater_miss.mp3', 'AA_squirt_neonwatergun_miss.mp3', 'AA_squirt_seltzer_miss.mp3', 'firehose_spray.mp3', 'AA_throw_stormcloud_miss.mp3', 'AA_squirt_Geyser.mp3')
|
||||
hitSoundFiles = ('AA_squirt_flowersquirt.ogg', 'AA_squirt_glasswater.ogg', 'AA_squirt_neonwatergun.ogg', 'AA_squirt_seltzer.ogg', 'firehose_spray.ogg', 'AA_throw_stormcloud.ogg', 'AA_squirt_Geyser.ogg')
|
||||
missSoundFiles = ('AA_squirt_flowersquirt_miss.ogg', 'AA_squirt_glasswater_miss.ogg', 'AA_squirt_neonwatergun_miss.ogg', 'AA_squirt_seltzer_miss.ogg', 'firehose_spray.ogg', 'AA_throw_stormcloud_miss.ogg', 'AA_squirt_Geyser.ogg')
|
||||
sprayScales = [0.2,
|
||||
0.3,
|
||||
0.1,
|
||||
|
|
|
@ -1136,7 +1136,7 @@ def doWriteOff(attack):
|
|||
pencilPropTrack.append(LerpScaleInterval(pencil, 0.5, MovieUtil.PNT3_NEARZERO))
|
||||
pencilPropTrack.append(Func(MovieUtil.removeProp, pencil))
|
||||
toonTrack = getToonTrack(attack, 3.4, ['slip-forward'], 2.4, ['sidestep'])
|
||||
soundTrack = Sequence(Wait(2.3), SoundInterval(globalBattleSoundCache.getSound('SA_writeoff_pen_only.ogg'), duration=0.9, node=suit), SoundInterval(globalBattleSoundCache.getSound('SA_writeoff_ding_only.mp3'), node=suit))
|
||||
soundTrack = Sequence(Wait(2.3), SoundInterval(globalBattleSoundCache.getSound('SA_writeoff_pen_only.ogg'), duration=0.9, node=suit), SoundInterval(globalBattleSoundCache.getSound('SA_writeoff_ding_only.ogg'), node=suit))
|
||||
return Parallel(suitTrack, toonTrack, padPropTrack, pencilPropTrack, soundTrack)
|
||||
|
||||
|
||||
|
@ -1461,7 +1461,7 @@ def doCanned(attack):
|
|||
throwTrack.append(Func(battle.movie.clearRestoreHips))
|
||||
scaleTrack = Sequence(Wait(propDelay + suitDelay), LerpScaleInterval(can, throwDuration, scaleUpPoint))
|
||||
hprTrack = Sequence(Wait(propDelay + suitDelay), LerpHprInterval(can, throwDuration, canHpr))
|
||||
soundTrack = Sequence(Wait(2.6), SoundInterval(globalBattleSoundCache.getSound('SA_canned_tossup_only.ogg'), node=suit), SoundInterval(globalBattleSoundCache.getSound('SA_canned_impact_only.mp3'), node=suit))
|
||||
soundTrack = Sequence(Wait(2.6), SoundInterval(globalBattleSoundCache.getSound('SA_canned_tossup_only.ogg'), node=suit), SoundInterval(globalBattleSoundCache.getSound('SA_canned_impact_only.ogg'), node=suit))
|
||||
else:
|
||||
land = toon.getPos(battle)
|
||||
land.setZ(land.getZ() + 0.7)
|
||||
|
@ -2639,7 +2639,7 @@ def doBounceCheck(attack):
|
|||
checkPropTrack.append(LerpScaleInterval(check, 0.3, MovieUtil.PNT3_NEARZERO))
|
||||
checkPropTrack.append(Func(MovieUtil.removeProp, check))
|
||||
toonTrack = getToonTrack(attack, damageDelay, ['conked'], dodgeDelay, ['sidestep'])
|
||||
soundTracks = Sequence(getSoundTrack('SA_pink_slip.ogg', delay=throwDelay + 0.5, duration=0.6, node=suit), getSoundTrack('SA_pink_slip.mp3', delay=0.4, duration=0.6, node=suit))
|
||||
soundTracks = Sequence(getSoundTrack('SA_pink_slip.ogg', delay=throwDelay + 0.5, duration=0.6, node=suit), getSoundTrack('SA_pink_slip.ogg', delay=0.4, duration=0.6, node=suit))
|
||||
return Parallel(suitTrack, checkPropTrack, toonTrack, soundTracks)
|
||||
|
||||
|
||||
|
@ -2682,7 +2682,7 @@ def doWatercooler(attack):
|
|||
splash.setScale(0.3)
|
||||
splashTrack = Sequence(Func(battle.movie.needRestoreRenderProp, splash), Wait(3.2), Func(prepSplash, splash, __toonFacePoint(toon)), ActorInterval(splash, 'splash-from-splat'), Func(MovieUtil.removeProp, splash), Func(battle.movie.clearRenderProp, splash))
|
||||
toonTrack = getToonTrack(attack, suitTrack.getDuration() - 1.5, ['cringe'], 2.4, ['sidestep'])
|
||||
soundTrack = Sequence(Wait(1.1), SoundInterval(globalBattleSoundCache.getSound('SA_watercooler_appear_only.ogg'), node=suit, duration=1.4722), Wait(0.4), SoundInterval(globalBattleSoundCache.getSound('SA_watercooler_spray_only.mp3'), node=suit, duration=2.313))
|
||||
soundTrack = Sequence(Wait(1.1), SoundInterval(globalBattleSoundCache.getSound('SA_watercooler_appear_only.ogg'), node=suit, duration=1.4722), Wait(0.4), SoundInterval(globalBattleSoundCache.getSound('SA_watercooler_spray_only.ogg'), node=suit, duration=2.313))
|
||||
return Parallel(suitTrack, toonTrack, propTrack, soundTrack, splashTrack)
|
||||
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import MovieCamera
|
|||
import MovieUtil
|
||||
from MovieUtil import calcAvgSuitPos
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('MovieThrow')
|
||||
hitSoundFiles = ('AA_tart_only.ogg', 'AA_slice_only.mp3', 'AA_slice_only.mp3', 'AA_slice_only.mp3', 'AA_slice_only.mp3', 'AA_wholepie_only.mp3', 'AA_wholepie_only.mp3')
|
||||
hitSoundFiles = ('AA_tart_only.ogg', 'AA_slice_only.ogg', 'AA_slice_only.ogg', 'AA_slice_only.ogg', 'AA_slice_only.ogg', 'AA_wholepie_only.ogg', 'AA_wholepie_only.ogg')
|
||||
tPieLeavesHand = 2.7
|
||||
tPieHitsSuit = 3.0
|
||||
tSuitDodges = 2.45
|
||||
|
|
|
@ -12,7 +12,7 @@ from toontown.toonbase import ToontownGlobals
|
|||
|
||||
class DistributedStomper(DistributedCrusherEntity.DistributedCrusherEntity):
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedStomper')
|
||||
stomperSounds = ['phase_4/audio/sfx/CHQ_FACT_stomper_small.ogg', 'phase_9/audio/sfx/CHQ_FACT_stomper_med.mp3', 'phase_9/audio/sfx/CHQ_FACT_stomper_large.mp3']
|
||||
stomperSounds = ['phase_4/audio/sfx/CHQ_FACT_stomper_small.ogg', 'phase_9/audio/sfx/CHQ_FACT_stomper_med.ogg', 'phase_9/audio/sfx/CHQ_FACT_stomper_large.ogg']
|
||||
stomperModels = ['phase_9/models/cogHQ/square_stomper']
|
||||
|
||||
def __init__(self, cr):
|
||||
|
|
|
@ -21,7 +21,7 @@ from toontown.effects.SkullBurst import SkullBurst
|
|||
from toontown.effects.SkullFlash import SkullFlash
|
||||
from toontown.effects.TrailExplosion import TrailExplosion
|
||||
from toontown.effects.IceCream import IceCream
|
||||
trailSfxNames = ['phase_4/audio/sfx/firework_whistle_01.ogg', 'phase_4/audio/sfx/firework_whistle_02.mp3']
|
||||
trailSfxNames = ['phase_4/audio/sfx/firework_whistle_01.ogg', 'phase_4/audio/sfx/firework_whistle_02.ogg']
|
||||
burstSfxNames = ['phase_4/audio/sfx/firework_explosion_01.ogg',
|
||||
'phase_4/audio/sfx/firework_explosion_02.ogg',
|
||||
'phase_4/audio/sfx/firework_explosion_03.ogg',
|
||||
|
|
|
@ -124,14 +124,14 @@ def shootFireworkRocket(x, y, z, color1, color2, amp):
|
|||
gravityForceGroup.addForce(force0)
|
||||
f.addForceGroup(gravityForceGroup)
|
||||
f.setPos(x, y, z)
|
||||
sfxName = random.choice(('phase_4/audio/sfx/firework_whistle_01.ogg', 'phase_4/audio/sfx/firework_whistle_02.mp3'))
|
||||
sfxName = random.choice(('phase_4/audio/sfx/firework_whistle_01.ogg', 'phase_4/audio/sfx/firework_whistle_02.ogg'))
|
||||
sfx = loader.loadSfx(sfxName)
|
||||
t = Sequence(Func(f.start, render, render), Func(sfx.play), LerpPosInterval(f, 2.0, Vec3(x, y, z + 20 * amp), blendType='easeInOut'), Func(p0.setBirthRate, 3), Wait(0.5), Func(f.cleanup), name=getNextSequenceName('shootFirework'))
|
||||
t.start()
|
||||
|
||||
|
||||
def shootPop(x, y, z, color1, color2, amp):
|
||||
sfxName = random.choice(('phase_4/audio/sfx/firework_distance_01.ogg', 'phase_4/audio/sfx/firework_distance_02.mp3', 'phase_4/audio/sfx/firework_distance_03.mp3'))
|
||||
sfxName = random.choice(('phase_4/audio/sfx/firework_distance_01.ogg', 'phase_4/audio/sfx/firework_distance_02.ogg', 'phase_4/audio/sfx/firework_distance_03.ogg'))
|
||||
sfx = loader.loadSfx(sfxName)
|
||||
t = Sequence(Func(sfx.play), Wait(3), name=getNextSequenceName('shootFireworkRocket'))
|
||||
t.start()
|
||||
|
@ -180,7 +180,7 @@ def shootFireworkCircleGeneric(x, y, z, color1, color2, amp, poolSize):
|
|||
circleForceGroup.addForce(force1)
|
||||
f.addForceGroup(circleForceGroup)
|
||||
f.setPos(x, y, z)
|
||||
sfxName = random.choice(('phase_4/audio/sfx/firework_explosion_01.ogg', 'phase_4/audio/sfx/firework_explosion_02.mp3', 'phase_4/audio/sfx/firework_explosion_03.mp3'))
|
||||
sfxName = random.choice(('phase_4/audio/sfx/firework_explosion_01.ogg', 'phase_4/audio/sfx/firework_explosion_02.ogg', 'phase_4/audio/sfx/firework_explosion_03.ogg'))
|
||||
sfx = loader.loadSfx(sfxName)
|
||||
t = Sequence(Func(f.start, render, render), Func(sfx.play), Wait(0.5), Func(p0.setBirthRate, 3), Wait(0.5), Func(p0.renderer.setCenterColor, color2), Func(p0.renderer.setEdgeColor, color2), Wait(1.5), Func(f.cleanup), name=getNextSequenceName('shootFireworkCircle'))
|
||||
t.start()
|
||||
|
@ -220,7 +220,7 @@ def shootFireworkCircleSprite(x, y, z, color, texture, amp):
|
|||
circleForceGroup.addForce(force1)
|
||||
f.addForceGroup(circleForceGroup)
|
||||
f.setPos(x, y, z)
|
||||
sfxName = random.choice(('phase_4/audio/sfx/firework_explosion_01.ogg', 'phase_4/audio/sfx/firework_explosion_02.mp3', 'phase_4/audio/sfx/firework_explosion_03.mp3'))
|
||||
sfxName = random.choice(('phase_4/audio/sfx/firework_explosion_01.ogg', 'phase_4/audio/sfx/firework_explosion_02.ogg', 'phase_4/audio/sfx/firework_explosion_03.ogg'))
|
||||
sfx = loader.loadSfx(sfxName)
|
||||
t = Sequence(Func(f.start, render, render), Func(sfx.play), Wait(0.5), Func(p0.setBirthRate, 3), Wait(2.0), Func(f.cleanup), name=getNextSequenceName('shootFireworkSprite'))
|
||||
t.start()
|
||||
|
|
|
@ -51,8 +51,8 @@ class EstateLoader(SafeZoneLoader.SafeZoneLoader):
|
|||
self.underwaterSound = base.loadSfx('phase_4/audio/sfx/AV_ambient_water.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.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.mp3', 'phase_4/audio/sfx/SZ_TC_bird3.mp3'])
|
||||
self.cricketSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.mp3', 'phase_4/audio/sfx/SZ_TC_bird3.mp3'])
|
||||
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.ogg', 'phase_4/audio/sfx/SZ_TC_bird3.ogg'])
|
||||
self.cricketSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.ogg', 'phase_4/audio/sfx/SZ_TC_bird3.ogg'])
|
||||
if base.goonsEnabled:
|
||||
invModel = loader.loadModel('phase_3.5/models/gui/inventory_icons')
|
||||
self.invModels = []
|
||||
|
|
|
@ -16,7 +16,7 @@ class FishAnimatedProp(AnimatedProp.AnimatedProp):
|
|||
node.clearMat()
|
||||
self.fish.loadAnims({'jump': 'phase_4/models/props/SZ_fish-jump',
|
||||
'swim': 'phase_4/models/props/SZ_fish-swim'})
|
||||
self.splashSfxList = (loader.loadSfx('phase_4/audio/sfx/TT_splash1.ogg'), loader.loadSfx('phase_4/audio/sfx/TT_splash2.mp3'))
|
||||
self.splashSfxList = (loader.loadSfx('phase_4/audio/sfx/TT_splash1.ogg'), loader.loadSfx('phase_4/audio/sfx/TT_splash2.ogg'))
|
||||
self.node = self.fish
|
||||
self.geom = self.fish.getGeomNode()
|
||||
self.exitRipples = Ripples(self.geom)
|
||||
|
|
|
@ -43,8 +43,8 @@ class PartyLoader(SafeZoneLoader.SafeZoneLoader):
|
|||
self.underwaterSound = base.loadSfx('phase_4/audio/sfx/AV_ambient_water.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.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.mp3', 'phase_4/audio/sfx/SZ_TC_bird3.mp3'])
|
||||
self.cricketSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.mp3', 'phase_4/audio/sfx/SZ_TC_bird3.mp3'])
|
||||
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.ogg', 'phase_4/audio/sfx/SZ_TC_bird3.ogg'])
|
||||
self.cricketSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.ogg', 'phase_4/audio/sfx/SZ_TC_bird3.ogg'])
|
||||
|
||||
def unload(self):
|
||||
self.ignoreAll()
|
||||
|
|
|
@ -295,7 +295,7 @@ class DistributedFishingSpot(DistributedObject.DistributedObject):
|
|||
self.ripples.setScale(0.4)
|
||||
self.ripples.hide()
|
||||
if self.splashSounds == None:
|
||||
self.splashSounds = (base.loadSfx('phase_4/audio/sfx/TT_splash1.ogg'), base.loadSfx('phase_4/audio/sfx/TT_splash2.mp3'))
|
||||
self.splashSounds = (base.loadSfx('phase_4/audio/sfx/TT_splash1.ogg'), base.loadSfx('phase_4/audio/sfx/TT_splash2.ogg'))
|
||||
return
|
||||
|
||||
def __placeAvatar(self):
|
||||
|
|
|
@ -36,7 +36,7 @@ class GSSafeZoneLoader(SafeZoneLoader):
|
|||
holidayIds = base.cr.newsManager.getDecorationHolidayId()
|
||||
if ToontownGlobals.CRASHED_LEADERBOARD in holidayIds:
|
||||
self.startSmokeEffect()
|
||||
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.mp3', 'phase_4/audio/sfx/SZ_TC_bird3.mp3'])
|
||||
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.ogg', 'phase_4/audio/sfx/SZ_TC_bird3.ogg'])
|
||||
|
||||
def unload(self):
|
||||
del self.birdSound
|
||||
|
|
|
@ -31,7 +31,7 @@ class GZSafeZoneLoader(SafeZoneLoader):
|
|||
|
||||
def load(self):
|
||||
SafeZoneLoader.load(self)
|
||||
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.mp3', 'phase_4/audio/sfx/SZ_TC_bird3.mp3'])
|
||||
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.ogg', 'phase_4/audio/sfx/SZ_TC_bird3.ogg'])
|
||||
|
||||
def unload(self):
|
||||
del self.birdSound
|
||||
|
|
|
@ -40,7 +40,7 @@ class OZSafeZoneLoader(SafeZoneLoader):
|
|||
self.done = 0
|
||||
self.geyserTrack = None
|
||||
SafeZoneLoader.load(self)
|
||||
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.mp3', 'phase_4/audio/sfx/SZ_TC_bird3.mp3'])
|
||||
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.ogg', 'phase_4/audio/sfx/SZ_TC_bird3.ogg'])
|
||||
self.underwaterSound = base.loadSfx('phase_4/audio/sfx/AV_ambient_water.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')
|
||||
|
|
|
@ -27,7 +27,7 @@ class TTSafeZoneLoader(SafeZoneLoader.SafeZoneLoader):
|
|||
for tunnel in self.geom.findAllMatches('**/tunnel_origin'):
|
||||
sign.instanceTo(tunnel)
|
||||
|
||||
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.mp3', 'phase_4/audio/sfx/SZ_TC_bird3.mp3'])
|
||||
self.birdSound = map(base.loadSfx, ['phase_4/audio/sfx/SZ_TC_bird1.ogg', 'phase_4/audio/sfx/SZ_TC_bird2.ogg', 'phase_4/audio/sfx/SZ_TC_bird3.ogg'])
|
||||
|
||||
def unload(self):
|
||||
del self.birdSound
|
||||
|
|
Loading…
Reference in a new issue