def Winner(self, id1, id2): #print "Winners:", id1, id2 self.endmusic = plus.createSound("Sounds/intro_music/hopp_club.wav", False, (0,0,0)) plus.setVolume(self.endmusic, 0, 0) plus.loopSound(self.endmusic) commentOpt = ("End_MatchIsOver.wav", "End_MatchIsDone.wav", "End_GreatMatch.wav") annc = plus.createSound("Sounds/announcers/"+random.choice(commentOpt), False, (0,0,0)) plus.playOnce(annc)
def Zap(self): if not plus.isMatchPaused() and not plus.isMatchOver(): if self.chargetimer == 0.0: for bot, in_range in self.sensors.iteritems(): if in_range: plus.zap(bot, 10, 3.0) self.zapping.append(bot) self.zaptimer = 3.0 self.chargetimer = 5.0 Arenas.currentArena.Charge(self.chargetimer, self.sensors) plus.loopSound(self.zapsound) plus.playSound(self.chargesound)
def Tick(self): if self.active: self.timer += .5 if self.timer == self.delay: self.slider.Lock(False) self.slider.SetDirection(1) self.active = False plus.loopSound(self.slidesound) self.sliding = True self.slidetime = 0 if self.sliding: self.slidetime += .5 if self.slidetime >= 16: plus.stopSound(self.slidesound)
def Activate(self, active): if active: if AI.SuperAI.debugging: self.debug = Gooey.Plain("watch", 10, 175, 250, 175) tbox = self.debug.addText("line0", 10, 0, 100, 15) tbox.setText("Throttle") tbox = self.debug.addText("line1", 10, 15, 100, 15) tbox.setText("Turning") tbox = self.debug.addText("line2", 10, 30, 100, 15) tbox.setText("") tbox = self.debug.addText("line3", 10, 45, 100, 15) tbox.setText("") self.tauntbox = Gooey.Plain("taunt", 10, 175, 640, 175) tbox = self.tauntbox.addText("taunt1", 10, 0, 640, 15) tbox.setText("") self.RegisterSmartZone(self.zone, 1) if self.exactingRevenge == 1: self.bids = list(plus.getPlayers()) self.bids.remove(self.GetID()) #list the number of components on each bot and get the maximum number self.complist = [] for bot in self.bids: self.complist.append(plus.describe(bot).count(" ")) self.arena.CreateLightning(bot, self.GetLocation(), plus.getLocation(bot)) self.arena.SetLightningVisible(bot, True) #disable controls - just to make players even more helpless than they already are. plus.disable(bot, 1) self.numComps = max(self.complist) self.yCenter = self.GetLocation()[1] + 6 plus.playSound(self.psygrab) plus.loopSound(self.music) #torches for Epic Showdown arena plus.AddParticleEmitter((-10.25, 4, 0), (0, 3, 0), (2, 5, 2)).SetEmitting(True) plus.AddParticleEmitter((-5.125, 4, -8.88), (0, 3, 0), (2, 5, 2)).SetEmitting(True) plus.AddParticleEmitter((5.125, 4, -8.88), (0, 3, 0), (2, 5, 2)).SetEmitting(True) plus.AddParticleEmitter((10.25, 4, 0), (0, 3, 0), (2, 5, 2)).SetEmitting(True) plus.AddParticleEmitter((5.125, 4, 8.88), (0, 3, 0), (2, 5, 2)).SetEmitting(True) plus.AddParticleEmitter((-5.125, 4, 8.88), (0, 3, 0), (2, 5, 2)).SetEmitting(True) else: # get rid of reference to self self.secretFunction = None return AI.SuperAI.Activate(self, active)
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(23.7554, 14.3743, -47.141) plus.setCameraRotation(0.266024, -0.472956) plus.setCameraFOV(0.675) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound( "Sounds/intro_music/smell_glue.wav", False, (0, 0, 0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0, 0, 0)) arenaOpt = ("Sounds/announcers/Arena_CombatZone.wav", "Sounds/announcers/Arena_Combat_Enter.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0, 0, 0)) genericOpt = ("Arena_Combat_CageOfSteel.wav", "Arena_NowhereToHide.wav", "Intro_TheFansAreReady.wav", "Intro_GreatMatchComingYourWay.wav", "Intro_FansAreRestless.wav", "Intro_PerfectEveningForDestruction.wav", "Intro_HoldOnToYourSeats.wav", "Misc_CrowdOnEdge.wav") sounds['generic'] = plus.createSound( "Sounds/announcers/" + random.choice(genericOpt), False, (0, 0, 0)) hazardOpt = ("Sounds/announcers/Hazard_SawsSpikes.wav", "Sounds/announcers/Hazard_SawsSpikesFlesh.wav") sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0, 0, 0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound( "Sounds/announcers/" + random.choice(botOpt), False, (0, 0, 0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((23.7554, 14.3743, -47.141), (0.266024, -0.472956), 0.675, (30.3992, 6.28651, 8.97787), (0.193915, -1.86089), 0.675, 0, 8) yield 2 plus.fadeOutLoop(sounds['crowd'], 8000) yield 1 #play a generic (or specific) secondary comment plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: plus.playSound(sounds['hazards']) plus.animateCamera( (12.0623, 13.9558, -10.831), (0.666964, -0.640974), 0.66, (12.0623, 13.9558, -10.831), (0.666964, -0.640974), 0.24, 0, .5) plus.animateCamera((8.6126, 4.07693, 2.09747), (0.416206, -2.1045), 0.8862, (8.6126, 4.07693, 2.09747), (0.416206, -2.1045), 0.3162, 1, 1.5) yield 4 players = plus.getPlayers() pcount = len(players) if pcount > 0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera( (-8.06563, 1.12132, -3.88764), (0.210442, -0.141627), 0.8862, (-3.39987, 1.12132, 7.25815), (0.394558, -1.12997), 0.8862, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera( (5.22435, 3.09861, -1.95753), (0.47197, 2.53793), 0.8862, (4.59523, -0.911434, -5.42526), (0.147264, 2.22609), 0.8862, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera( (5.59557, 1.02128, 2.1188), (0.294276, 0.484751), 0.8862, (2.4611, 1.02128, 4.21063), (0.284205, 0.877072), 0.5712, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera( (-5.57326, 2.86185, -4.16246), (0.612217, -2.45323), 0.825, (-4.44016, -0.507445, -5.44161), (0.203219, -2.19922), 0.825, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(29.6377,34.3606,-29.1315) plus.setCameraRotation(0.690386,-0.790885) plus.setCameraFOV(0.675) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound("Sounds/intro_music/hopp_club.wav", False, (0,0,0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0,0,0)) arenaOpt = ("Sounds/announcers/Arena_Flextop_Welcome.wav", "Sounds/announcers/Arena_Flextop_Enter.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0,0,0)) genericOpt = ("Intro_Flextop_YouWillNeedYourSeaLegs.wav", "Arena_NowhereToHide.wav", "Intro_TheFansAreReady.wav", "Intro_GreatMatchComingYourWay.wav", "Intro_FansAreRestless.wav", "Intro_PerfectEveningForDestruction.wav", "Intro_HoldOnToYourSeats.wav", "Misc_CrowdOnEdge.wav") sounds['generic'] = plus.createSound("Sounds/announcers/"+random.choice(genericOpt), False, (0,0,0)) hazardOpt = ("Sounds/announcers/Hazard_Flextop_KeepingYourBalanceIsCritical.wav", "Sounds/announcers/Hazard_Flextop_ThrowOpponentOffBalance.wav", "Sounds/announcers/Hazard_Flextop_UseTheWeightOfYourBot.wav", "Sounds/announcers/Hazard_Flextop_WatchOutForTheHole.wav") sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0,0,0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound("Sounds/announcers/"+random.choice(botOpt), False, (0,0,0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((29.6377,34.3606,-29.1315), (0.690386,-0.790885), 0.675, (-29.1792,10.39,-12.9523), (0.31367,1.15033), 0.675, 0, 8) yield 2 plus.fadeOutLoop(sounds['crowd'], 8000) yield 1 #play a generic (or specific) secondary comment plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: plus.playSound(sounds['hazards']) plus.animateCamera((-17.6884,16.5919,-15.6043), (0.56934,0.844588), 0.675, (-6.83274,6.72283,-5.96326), (0.521594,0.844588), 0.675, 0, 4) yield 4 players = plus.getPlayers() pcount = len(players) if pcount>0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera((6.43971,3.87092,3.94558), (0.350625,-1.11641), 0.675, (0.0237769,2.93187,0.814993), (0.261509,-0.00240821), 0.675, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera((3.60867,2.37561,-2.2791), (0.162717,3.7282), 0.675, (-2.58717,3.33843,-2.2791), (0.32609,2.68668), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera((-2.36166,3.05141,2.40419), (0.318849,-2.07566), 0.675, (-3.30958,2.08892,-2.17259), (0.20086,-1.133), 0.675, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera((2.94102,2.48805,-0.211806), (0.256925,1.5708), 0.675, (3.5538,3.70699,-3.41461), (0.444612,0.883552), 0.675, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(-19.4933,16.3084,-32.4896) plus.setCameraRotation(0.408103,0.546509) plus.setCameraFOV(0.675) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound("Sounds/intro_music/whatgame_loop.wav", False, (0,0,0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0,0,0)) arenaOpt = ("Sounds/announcers/Arena_Half_HalfCircleEnter.wav", "Sounds/announcers/Arena_Half_Enter.wav", "Sounds/announcers/Arena_Half_HammerWelcome.wav", "Sounds/announcers/Arena_Half_Welcome.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0,0,0)) genericOpt = ("Arena_NowhereToHide.wav", "Intro_TheFansAreReady.wav", "Intro_GreatMatchComingYourWay.wav", "Intro_FansAreRestless.wav", "Intro_PerfectEveningForDestruction.wav", "Intro_HoldOnToYourSeats.wav", "Misc_CrowdOnEdge.wav") sounds['generic'] = plus.createSound("Sounds/announcers/"+random.choice(genericOpt), False, (0,0,0)) hazardOpt = ("Sounds/announcers/Hazard_Half_AvoidHammerAtAllCost.wav", "Sounds/announcers/Hazard_Half_GiantHammerHeadache.wav", "Sounds/announcers/Hazard_Half_HammerBestIfAvoided.wav", "Sounds/announcers/Hazard_Half_WatchOutForTheGiantHammer.wav", "Sounds/announcers/Hazard_Half_WatchOutHammerLong.wav") sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0,0,0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound("Sounds/announcers/"+random.choice(botOpt), False, (0,0,0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((-19.4933,16.3084,-32.4896), (0.408103,0.546509), 0.675, (-14.7027,7.61579,20.5245), (0.289939,2.52256), 0.675, 0, 8) yield 2 plus.fadeOutLoop(sounds['crowd'], 8000) yield 1 #play a generic (or specific) secondary comment plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: plus.playSound(sounds['hazards']) plus.animateCamera((-10.9991,8.66534,0.0246233), (0.536457,1.57113), 0.675, (-7.18447,2.54641,-7.08777), (0.0932602,0.855399), 0.675, 0, 6.5) #plus.animateCamera((-2.58287,8.69154,6.695), (0.917142,-0.676867), 0.675, (-4.18791,2.15696,8.69258), (0.484794,-0.676868), 0.675, 4, 5.5) yield 6.5 players = plus.getPlayers() pcount = len(players) if pcount>0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera((-0.0135928,2.81498,8.94584), (0.364223,0.00518426), 0.675, (5.6259,2.81498,12.0027), (0.352851,-1.05747), 0.675, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera((0.038355,2.48803,-8.86167), (0.314693,3.14159), 0.675, (-4.99442,5.15277,-12.0717), (0.746794,2.11357), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera((-7.09289,5.34361,10.3559), (0.649647,-1.99906), 0.675, (-7.79949,1.41688,3.68885), (0.151466,-0.917292), 0.675, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera((-8.50312,1.86428,-4.64377), (0.257124,-2.12405), 0.675, (-12.6077,5.05862,-1.10308), (0.623381,-3.05371), 0.675, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(2.47282,4.90546,-21.0784) plus.setCameraRotation(0.189584,-0.106736) plus.setCameraFOV(0.675) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound("Sounds/intro_music/tool_rage.wav", False, (0,0,0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0,0,0)) arenaOpt = ("Sounds/announcers/Arena_Lumazone_Welcome.wav", "Sounds/announcers/Arena_Lumazone_Enter.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0,0,0)) genericOpt = ("Intro_Hilltop_AreYouWorthyToBeKing.wav", "Arena_NowhereToHide.wav", "Intro_TheFansAreReady.wav", "Intro_GreatMatchComingYourWay.wav", "Intro_FansAreRestless.wav", "Intro_PerfectEveningForDestruction.wav", "Intro_HoldOnToYourSeats.wav", "Misc_CrowdOnEdge.wav") sounds['generic'] = plus.createSound("Sounds/announcers/"+random.choice(genericOpt), False, (0,0,0)) hazardOpt = ("Sounds/announcers/Hazard_Lumazone_WatchOutRazorSharpTeeth.wav", "Sounds/announcers/Hazard_Clawtop_AvoidRazorSharpClaws.wav") sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0,0,0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound("Sounds/announcers/"+random.choice(botOpt), False, (0,0,0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((2.47282,4.90546,-21.0784), (0.189584,-0.106736), 0.675, (-22.9376,16.2378,19.3794), (0.46936,2.27133), 0.675, 0, 8) yield 2 plus.fadeOutLoop(sounds['crowd'], 8000) yield 1 #play a generic (or specific) secondary comment plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: plus.playSound(sounds['hazards']) plus.animateCamera((-4.82442,5.71925,-1.69162), (0.398397,0.953306), 0.675, (0.555657,5.71925,7.11452), (0.780508,1.73408), 0.675, 0, 3) plus.animateCamera((10.417,14.0656,-0.0584636), (0.905459,-1.5708), 0.675, (7.69244,7.70235,-0.0584633), (0.72887,-1.5708), 0.675, 3, 6) yield 6 players = plus.getPlayers() pcount = len(players) if pcount>0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera((-2.60866,0.740549,9.78314), (0.106223,-1.62101), 0.675, (-6.23971,3.38917,5.81047), (0.604615,-0.739469), 0.675, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera((4.86175,1.37137,-10.2102), (0.268659,1.5411), 0.675, (7.12714,2.65029,-6.89398), (0.56599,2.43338), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera((4.64171,1.37931,10.3059), (0.260425,1.71269), 0.675, (6.14093,2.66505,5.91269), (0.47737,0.7804), 0.675, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera((-4.65238,1.18389,-9.96377), (0.205875,-1.5708), 0.675, (-7.36988,2.09448,-7.132), (0.473249,-2.33549), 0.675, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(-26.8033,12.2077,14.7377) plus.setCameraRotation(0.351528,2.2434) plus.setCameraFOV(0.675) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound("Sounds/intro_music/aggression.wav", False, (0,0,0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0,0,0)) arenaOpt = ("Sounds/announcers/Arena_Bridge_Enter.wav", "Sounds/announcers/Arena_Bridge_Welcome.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0,0,0)) genericOpt = ("Arena_Bridge_PayToll.wav", "Intro_TheFansAreReady.wav", "Intro_GreatMatchComingYourWay.wav", "Intro_FansAreRestless.wav", "Intro_PerfectEveningForDestruction.wav", "Intro_HoldOnToYourSeats.wav", "Misc_CrowdOnEdge.wav") sounds['generic'] = plus.createSound("Sounds/announcers/"+random.choice(genericOpt), False, (0,0,0)) hazardOpt = ("Sounds/announcers/Hazard_Fire_WatchFlames.wav", "Sounds/announcers/Hazard_Fire_GooseCooked.wav") sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0,0,0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound("Sounds/announcers/"+random.choice(botOpt), False, (0,0,0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((-26.8033,12.2077,14.7377), (0.351528,2.2434), 0.675, (19.4831,12.2077,13.807), (0.425733,3.881), 0.675, 0, 9) yield 4 #play a generic (or specific) secondary comment plus.fadeOutLoop(sounds['crowd'], 8000) plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: plus.playSound(sounds['hazards']) plus.animateCamera((6.91983,7.58627,1.19135), (0.278429,-3.14121), 0.675, (6.91983,7.58627,-4.94869), (0.527259,-3.14081), 0.675, 0, 5) yield 5 players = plus.getPlayers() pcount = len(players) if pcount>0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera((-7.83619,4.96176,2.53669), (0.523549,-3.14159), 0.675, (1.1777,4.96176,-2.29792), (0.470045,-1.96602), 0.675, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera((4.22518,1.36116,-0.310427), (0.226477,0.472123), 0.675, (0.96244,1.36116,5.91944), (0.254117,1.49149), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera((-3.75155,0.743029,2.24349), (0.223871,-0.766732), 0.675, (-1.72234,0.743029,7.70196), (0.206293,-1.80951), 0.675, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera((13.1737,1.41123,-6.55294), (0.37941,-1.54769), 0.675, (9.32725,1.41123,-1.55862), (0.377573,-2.91305), 0.675, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(-18.796, 12.1984, -17.272) plus.setCameraRotation(0.423969, 0.865228) plus.setCameraFOV(1.125) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound( "Sounds/intro_music/whatgame_loop.wav", False, (0, 0, 0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0, 0, 0)) arenaOpt = ("Sounds/announcers/Arena_Compressor_Welcome.wav", "Sounds/announcers/Arena_Compressor_Enter.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0, 0, 0)) genericOpt = ("Intro_Compressor_ArenaHasLotsOfLove.wav", "Intro_Compressor_ArenaWillPutTheSqueezeOnYou.wav", "Intro_Compressor_HugsByThisArena.wav", "Intro_Compressor_OneStopWeightLoss.wav", "Intro_Compressor_WatchOutForSqueezePlay.wav", "Intro_HoldOnToYourSeats.wav", "Misc_CrowdOnEdge.wav") sounds['generic'] = plus.createSound( "Sounds/announcers/" + random.choice(genericOpt), False, (0, 0, 0)) hazardOpt = ( "Sounds/announcers/Hazard_Compressor_ChanceToSqueezeOpponent.wav", ) sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0, 0, 0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound( "Sounds/announcers/" + random.choice(botOpt), False, (0, 0, 0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((-18.796, 12.1984, -17.272), (0.423969, 0.865228), 1.125, (-19.9251, 12.1984, 16.2866), (0.424582, 2.20704), 1.125, 0, 8) yield 2 plus.fadeOutLoop(sounds['crowd'], 8000) yield 1 #play a generic (or specific) secondary comment plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: plus.playSound(sounds['hazards']) plus.animateCamera( (13.7134, 6.18017, 3.63394), (0.290649, -0.719471), 0.675, (-7.77868, 6.18017, 7.07434), (0.404454, 0.577052), 0.675, 0, 6) yield 6 players = plus.getPlayers() pcount = len(players) if pcount > 0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera( (17.2332, 13.507, -0.465692), (0.460854, -0.00407328), 0.675, (17.2332, 7.51223, 4.56581), (0.154498, -0.00607065), 0.675, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera( (-16.925, 13.3559, 0.0022261), (0.482615, -3.14159), 0.675, (-16.925, 7.50829, -4.5782), (0.179304, -3.14159), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera( (17.2675, 13.3731, 0.0045817), (0.484407, -3.14159), 0.675, (17.2675, 7.48773, -4.54556), (0.177543, -3.14159), 0.675, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera((-16.9149, 13.5552, -0.498395), (0.462194, 0.0), 0.675, (-16.9149, 7.50437, 4.59265), (0.153293, 0.0), 0.675, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(-11.6853, 5.11775, -24.8297) plus.setCameraRotation(0.190675, 0.481754) plus.setCameraFOV(0.675) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound( "Sounds/intro_music/aggression.wav", False, (0, 0, 0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0, 0, 0)) arenaOpt = ("Sounds/announcers/Arena_Clawtop_Welcome.wav", "Sounds/announcers/Arena_Clawtop_Enter.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0, 0, 0)) genericOpt = ("Intro_Clawtop_FlamesWillLeaveMarks.wav", "Arena_NowhereToHide.wav", "Intro_TheFansAreReady.wav", "Intro_GreatMatchComingYourWay.wav", "Intro_FansAreRestless.wav", "Intro_Clawtop_ReachOutAndGrab.wav", "Intro_HoldOnToYourSeats.wav", "Intro_Clawtop_SpeaksSoftlyBigClaws.wav") sounds['generic'] = plus.createSound( "Sounds/announcers/" + random.choice(genericOpt), False, (0, 0, 0)) hazardOpt = ( "Sounds/announcers/Hazard_Clawtop_AvoidRazorSharpClaws.wav", "Sounds/announcers/Hazard_Clawtop_ClawsToYourAdvantage.wav", "Sounds/announcers/Hazard_Clawtop_PushingIntoFlames.wav", "Sounds/announcers/Hazard_Fire_GooseCooked.wav", "Sounds/announcers/Hazard_Fire_WatchFlames.wav") sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0, 0, 0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound( "Sounds/announcers/" + random.choice(botOpt), False, (0, 0, 0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((-11.6853, 5.11775, -24.8297), (0.190675, 0.481754), 0.675, (24.8318, 14.4726, 3.01025), (0.531457, -1.74816), 0.825, 0, 9) yield 2 plus.fadeOutLoop(sounds['crowd'], 8000) yield 2 #play a generic (or specific) secondary comment plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: plus.playSound(sounds['hazards']) plus.animateCamera( (32.278, 14.7693, -7.88775), (0.57965, -1.20653), 0.675, (13.6977, 8.51049, -6.08429), (0.902695, -0.381328), 0.675, 0, 2.5) plus.animateCamera((-5.04925, 10.955, -14.1298), (1.31098, 0.0), 0.675, (-5.04925, 2.04966, -20.5915), (0.22594, 0.0), 0.675, 2.5, 5) yield 5 players = plus.getPlayers() pcount = len(players) if pcount > 0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera( (-7.71974, 10.5449, 7.02807), (0.99459, 2.28536), 0.675, (-7.71974, 3.83275, 7.02807), (0.510025, 2.28536), 0.675, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera( (7.10965, 7.44489, -6.53137), (0.880594, -0.843714), 0.675, (7.10965, 2.36013, -6.53137), (0.366589, -0.843714), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera( (-6.62075, 8.71118, -6.76299), (0.963239, 0.776806), 0.675, (-6.62075, 2.72167, -6.76299), (0.422321, 0.776806), 0.675, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera( (7.87338, 8.80651, 7.69725), (0.857608, -2.34843), 0.675, (7.87338, 2.45089, 7.69725), (0.31125, -2.34843), 0.675, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def FlameOn(self): self.emitter.SetEmitting(True) self.emitting = True plus.loopSound(self.flamesound) self.timeEmitting = 0
def HazardsOn(self, on): if on: self.flame4a = Hazards.Flame((-3.96, -.19, -11.04), (0, 7, 0), (.2, .4, .2), .8) self.AddHazard(self.flame4a) self.flame4b = Hazards.Flame((-6.23, -.19, -11.04), (0, 7, 0), (.2, .4, .2), .8) self.AddHazard(self.flame4b) self.flame3a = Hazards.Flame((4.21, -.19, -11.04), (0, 7, 0), (.2, .4, .2), .8) self.AddHazard(self.flame3a) self.flame3b = Hazards.Flame((6.47, -.19, -11.04), (0, 7, 0), (.2, .4, .2), .8) self.AddHazard(self.flame3b) self.flame1a = Hazards.Flame((-6.37, -.19, 11), (0, 7, 0), (.2, .4, .2), .8) self.AddHazard(self.flame1a) self.flame1b = Hazards.Flame((-4.1, -.19, 11), (0, 7, 0), (.2, .4, .2), .8) self.AddHazard(self.flame1b) self.flame2a = Hazards.Flame((4.06, -.19, 11), (0, 7, 0), (.2, .4, .2), .8) self.AddHazard(self.flame2a) self.flame2b = Hazards.Flame((6.33, -.19, 11), (0, 7, 0), (.2, .4, .2), .8) self.AddHazard(self.flame2b) self.ambience = plus.createSound("Sounds/hzd_rotclaw_loop.wav", False, (0, 0, 0)) plus.loopSound(self.ambience) self.RegisterZone("flamezone01", 1) self.RegisterZone("flamezone02", 2) self.RegisterZone("flamezone03", 3) self.RegisterZone("flamezone04", 4) self.claw1 = self.GetHinge("Hinge01") self.claw1.SetAutoLocks(False, True) self.claw1.SetPowerSettings(2, 1000) self.claw1.Lock(False) self.claw1.SetDirection(-100) self.claw2 = self.GetHinge("Hinge02") self.claw2.SetAutoLocks(False, True) self.claw2.SetPowerSettings(2, 1000) self.claw2.Lock(False) self.claw2.SetDirection(-100) self.AddCollisionLine((-8.2, 12.4), (-8.2, 9.9)) self.AddCollisionLine((-8.2, 9.9), (-2.5, 9.9)) self.AddCollisionLine((-2.5, 9.9), (-2.5, 12.4)) self.AddCollisionLine((2.3, 12.4), (2.3, 9.9)) self.AddCollisionLine((2.3, 9.9), (8, 9.9)) self.AddCollisionLine((8, 9.9), (8, 12.4)) self.AddCollisionLine((-7.9, -12.4), (-7.9, -9.9)) self.AddCollisionLine((-7.9, -9.9), (-2.3, -9.9)) self.AddCollisionLine((-2.3, -9.9), (-2.3, -12.4)) self.AddCollisionLine((2.5, -12.4), (2.5, -9.9)) self.AddCollisionLine((2.5, -9.9), (8.2, -9.9)) self.AddCollisionLine((8.2, -9.9), (8.2, -12.4)) self.AddCollisionLine((-12.4, 1.8), (-8.5, 1.8)) self.AddCollisionLine((-8.5, 1.8), (-8.5, -1.8)) self.AddCollisionLine((-8.5, -1.8), (-12.4, -1.8)) self.AddCollisionLine((8.5, 1.8), (12.4, 1.8)) self.AddCollisionLine((8.5, 1.8), (8.5, -1.8)) self.AddCollisionLine((8.5, -1.8), (12.4, -1.8)) else: self.AddCollisionLine((-12.4, 1.8), (-10.3, 1.8)) self.AddCollisionLine((-10.3, 1.8), (-10.3, -1.8)) self.AddCollisionLine((-10.3, -1.8), (-12.4, -1.8)) self.AddCollisionLine((10.3, 1.8), (12.4, 1.8)) self.AddCollisionLine((10.3, 1.8), (10.3, -1.8)) self.AddCollisionLine((10.3, -1.8), (12.4, -1.8)) # walls self.AddCollisionLine((-11.4, 12.4), (-12.4, 11.4)) self.AddCollisionLine((-12.4, 11.4), (-12.4, -11.4)) self.AddCollisionLine((-12.4, -11.4), (-11.4, -12.4)) self.AddCollisionLine((-11.4, -12.4), (11.4, -12.4)) self.AddCollisionLine((11.4, -12.4), (12.4, -11.4)) self.AddCollisionLine((12.4, -11.4), (12.4, 11.4)) self.AddCollisionLine((12.4, 11.4), (11.4, 12.4)) self.AddCollisionLine((11.4, 12.4), (-11.4, 12.4)) self.AddPOV(0, (0, 0), (1, 2, 3, 4)) self.AddPOV(1, (10.5, -7), (0, )) self.AddPOV(2, (-10, -7), (0, )) self.AddPOV(3, (10.5, 6.5), (0, )) self.AddPOV(4, (-10.5, 6.5), (0, )) return Arenas.SuperArena.HazardsOn(self, on)
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(29.6173,13.1409,-34.943) plus.setCameraRotation(0.291095,-0.741162) plus.setCameraFOV(0.675) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound("Sounds/intro_music/tool_rage.wav", False, (0,0,0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0,0,0)) arenaOpt = ("Sounds/announcers/Arena_ParkingLot_Welcome.wav", "Sounds/announcers/Arena_ParkingLot_Enter.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0,0,0)) genericOpt = ("Intro_ParkingLot_WatchOutForFallingObjects.wav", "Arena_NowhereToHide.wav", "Intro_ParkingLot_WhatABeautifulDay.wav", "Intro_GreatMatchComingYourWay.wav", "Intro_HoldOnToYourSeats.wav", "Misc_CrowdOnEdge.wav") sounds['generic'] = plus.createSound("Sounds/announcers/"+random.choice(genericOpt), False, (0,0,0)) hazardOpt = ("Sounds/announcers/Hazard_ParkingLot_HitByTonOfBricks.wav",) sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0,0,0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound("Sounds/announcers/"+random.choice(botOpt), False, (0,0,0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((29.6173,13.1409,-34.943), (0.291095,-0.741162), 0.675, (20.2562,13.1409,18.2601), (0.354368,-2.53487), 0.675, 0, 8) yield 2 plus.fadeOutLoop(sounds['crowd'], 8000) yield 1 #play a generic (or specific) secondary comment plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: plus.playSound(sounds['hazards']) plus.animateCamera((-4.5069,0,-10.224), (-0.269276,-3.14159), 0.675, (-4.5069,17.4321,-17.1506), (1.07049,-3.14159), 0.675, 0, 6) yield 6 players = plus.getPlayers() pcount = len(players) if pcount>0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera((0.750588,4.35586,-1.97589), (0.580406,-2.46194), 0.675, (0.181229,2.56189,-5.45814), (0.571969,-2.00781), 0.675, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera((-0.0178422,4.22551,-2.88332), (0.593309,0.818719), 0.675, (2.95787,2.47741,-2.74392), (0.50898,0.368722), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera((1.73748,3.83555,-3.11437), (0.49849,-0.83305), 0.675, (-1.88429,2.4499,-2.03161), (0.550847,-0.410693), 0.675, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera((0.442939,4.22231,-1.84856), (0.563456,2.46685), 0.675, (0.889469,2.61047,-5.71382), (0.582065,1.91902), 0.675, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def HazardsOn(self, on): if on: self.ambience = plus.createSound("Sounds/elec_ambience_loop.wav", False, (0, 0, 0)) plus.loopSound(self.ambience) self.RegisterZone("Center Zone", 1) self.RegisterZone("Center Zone1", 4) self.RegisterZone("Center Zone2", 5) self.electricity = Hazards.Electricity((.016, -.818, .001)) self.AddHazard(self.electricity) self.RegisterZone("Button Zone 1", 2) self.RegisterZone("Button Zone 2", 3) # grid (in 'plus' shape) self.AddCollisionLine((6, 4), (6, -4)) self.AddCollisionLine((6, -4), (3.6, -4)) self.AddCollisionLine((3.6, -4), (3.6, -6.5)) self.AddCollisionLine((3.6, -6.5), (-3.6, -6.5)) self.AddCollisionLine((-3.6, -6.5), (-3.6, -4)) self.AddCollisionLine((-3.6, -4), (-6, -4)) self.AddCollisionLine((-6, -4), (-6, 4)) self.AddCollisionLine((-6, 4), (-3.6, 4)) self.AddCollisionLine((-3.5, 4), (-3.6, 6.5)) self.AddCollisionLine((-3.6, 6.5), (3.6, 6.5)) self.AddCollisionLine((3.6, 6.5), (3.6, 4)) self.AddCollisionLine((3.6, 4), (6, 4)) self.AddPOV(0, (0, 11), (1, 7)) self.AddPOV(1, (8, 8), (2, 0)) self.AddPOV(2, (10.5, 0), (3, 1)) self.AddPOV(3, (8, -8), (4, 2)) self.AddPOV(4, (0, -11), (5, 3)) self.AddPOV(5, (-8, -8), (6, 4)) self.AddPOV(6, (-10.5, 0), (7, 5)) self.AddPOV(7, (-8, 8), (0, 6)) self.CreateLightning(0, (-4, -2.2, 0), (0, -2.2, 0)) self.CreateLightning(1, (0, -2.1, 0), (-4, -2.1, 0)) self.CreateLightning(2, (-4, -2.0, 0), (0, -2.0, 0)) self.CreateLightning(3, (0, -2.2, 3.4), (0, -2.2, 0)) self.CreateLightning(4, (0, -2.1, 0), (0, -2.1, 3.4)) self.CreateLightning(5, (0, -2.0, 3.4), (0, -2.0, 0)) self.CreateLightning(6, (4, -2.2, 0), (0, -2.2, 0)) self.CreateLightning(7, (0, -2.1, 0), (4, -2.1, 0)) self.CreateLightning(8, (4, -2.0, 0), (0, -2.0, 0)) self.CreateLightning(9, (0, -2.2, -3.4), (0, -2.2, 0)) self.CreateLightning(10, (0, -2.1, 0), (0, -2.1, -3.4)) self.CreateLightning(11, (0, -2.0, -3.4), (0, -2.0, 0)) n = 0 while n < 12: self.SetLightningVisible(n, True) n += 1 # walls self.AddCollisionLine((16, 15.8), (16, -15.8)) self.AddCollisionLine((16, -15.8), (11.8, -20)) self.AddCollisionLine((11.8, -20), (-11.8, -20)) self.AddCollisionLine((-11.8, -20), (-16, -15.8)) self.AddCollisionLine((-16, -15.8), (-16, 15.8)) self.AddCollisionLine((-16, 15.8), (-11.8, 20)) self.AddCollisionLine((-11.8, 20), (11.8, 20)) self.AddCollisionLine((11.8, 20), (16, 15.8)) return Arenas.SuperArena.HazardsOn(self, on)
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(-15.6905, 16.0921, -0.205826) plus.setCameraRotation(0.42351, 0.7542) plus.setCameraFOV(0.9) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound("Sounds/intro_music/embattled.wav", False, (0, 0, 0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0, 0, 0)) arenaOpt = ("Sounds/announcers/Arena_Electric_Welcome.wav", "Sounds/announcers/Arena_Electric_Enter.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0, 0, 0)) genericOpt = ("Intro_Electric_HighVoltageAction.wav", "Intro_Electric_PrepareToBeZapped.wav", "Intro_Electric_WattsOfEnergy.wav", "Intro_Electric_BenFranklinDiscoverdElectricty.wav", "Intro_Electric_ShockingExperience.wav", "Intro_HoldOnToYourSeats.wav") sounds['generic'] = plus.createSound( "Sounds/announcers/" + random.choice(genericOpt), False, (0, 0, 0)) hazardOpt = ("Sounds/announcers/Hazard_Electric_ButtonSwitch.wav", ) sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0, 0, 0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound( "Sounds/announcers/" + random.choice(botOpt), False, (0, 0, 0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((-15.6905, 16.0921, -0.205826), (0.42351, 0.7542), 0.9, (-15.6905, 16.0921, -0.205826), (0.490898, 2.50581), 0.9, 0, 8) yield 2 plus.fadeOutLoop(sounds['crowd'], 8000) yield 1 #play a generic (or specific) secondary comment plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: print "hazard vo" plus.playSound(sounds['hazards']) plus.animateCamera( (-4.19939, 4.9921, 17.9282), (0.271605, 1.58573), 0.675, (11.4895, 4.9921, 9.22499), (0.519623, 0.258988), 0.675, 0, 2.5) plus.animateCamera( (-14.6452, 17.3103, -18.4424), (0.649154, 0.678271), 0.675, (-10.2019, 5.96188, -11.9301), (0.379119, 0.720136), 0.675, 3, 6.5) yield 6.5 players = plus.getPlayers() pcount = len(players) if pcount > 0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera( (6.15679, 0.804018, 14.9727), (0.118508, -1.11342), 0.675, (0.278868, 5.08238, 10.9266), (0.625943, -0.0257021), 0.675, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera( (0.00413038, 5.3345, -10.8038), (0.622604, -3.14159), 0.675, (6.01218, 1.37234, -16.0091), (0.211, -1.92562), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera( (-8.85391, 3.17855, -0.0592491), (0.565296, -1.56135), 0.675, (-5.53554, 3.17855, -4.36084), (0.326206, -1.08959), 0.675, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera((8.19485, 2.12433, 3.1667), (0.288549, 2.02696), 0.675, (7.52027, 5.29964, -1.96182), (0.623464, 1.29934), 0.675, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(-14.4853, 15.1727, 13.3798) plus.setCameraRotation(0.457532, -3.48619) plus.setCameraFOV(0.675) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound("Sounds/intro_music/tool_rage.wav", False, (0, 0, 0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0, 0, 0)) arenaOpt = ("Sounds/announcers/Arena_Skull_Enter.wav", "Sounds/announcers/Arena_Skull_Welcome.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0, 0, 0)) genericOpt = ("Arena_NowhereToHide.wav", "Intro_Skull_MostWorthyUnscathed.wav", "Intro_Skull_NotAvoidGazeFromSkull.wav", "Intro_Skull_NotToAngerRestlessSpirits.wav", "Intro_Skull_WatchOutForHypnoticStare.wav", "Intro_HoldOnToYourSeats.wav", "Misc_CrowdOnEdge.wav") sounds['generic'] = plus.createSound( "Sounds/announcers/" + random.choice(genericOpt), False, (0, 0, 0)) hazardOpt = ( "Sounds/announcers/Hazard_Skull_CantSurviveDeathPit.wav", "Sounds/announcers/Hazard_Skull_PainDescribesDeathPit.wav", "Sounds/announcers/Hazard_Skull_SpikesDontPitWill.wav", "Sounds/announcers/Hazard_Skull_SpikesWillMakeQuickWork.wav") sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0, 0, 0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound( "Sounds/announcers/" + random.choice(botOpt), False, (0, 0, 0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((-14.4853, 15.1727, 13.3798), (0.457532, -3.48619), 0.675, (17.857, 15.1727, 1.92684), (0.381297, -2.24567), 0.675, 0, 8) yield 2 plus.fadeOutLoop(sounds['crowd'], 8000) yield 1 #play a generic (or specific) secondary comment plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: plus.playSound(sounds['hazards']) plus.animateCamera( (-2.47876, 10.7013, -4.98399), (0.903606, 1.56699), 0.675, (2.75409, 4.05801, -4.96409), (0.903606, 1.56699), 0.675, 0, 3) plus.animateCamera((1.37991, 6.8947, -4.88167), (0.0, -2.6764), 0.675, (-0.231112, 5.18265, -8.09135), (0.444853, -2.6764), 0.675, 3, 6) yield 6 players = plus.getPlayers() pcount = len(players) if pcount > 0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera( (3.39245, 9.03134, -8.04641), (0.645966, 0.879583), 0.675, (11.0903, 3.49325, -8.08438), (0.316493, 0.0227453), 0.675, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera( (-4.58458, 8.62153, -0.59323), (0.632534, -2.30769), 0.675, (-11.6613, 3.12554, -0.593229), (0.259727, -3.10167), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera( (3.95237, 4.09431, -4.94451), (0.241217, 2.38952), 0.675, (3.18309, 2.23979, -13.3437), (0.0998337, 1.51592), 0.675, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera( (-3.35515, 5.93161, -2.57273), (0.462884, -1.09528), 0.675, (-6.49374, 2.4358, 3.58492), (0.227729, -1.8789), 0.675, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(-24.7415, 25.1133, -29.1943) plus.setCameraRotation(0.615261, 0.704592) plus.setCameraFOV(0.675) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound( "Sounds/intro_music/smell_glue.wav", False, (0, 0, 0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .25 #load all sounds now to decrease lag later sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0, 0, 0)) arenaOpt = ("Sounds/announcers/Arena_Hilltop_Welcome.wav", "Sounds/announcers/Arena_Hilltop_Enter.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0, 0, 0)) genericOpt = ("Intro_Hilltop_AreYouWorthyToBeKing.wav", "Arena_NowhereToHide.wav", "Intro_TheFansAreReady.wav", "Intro_GreatMatchComingYourWay.wav", "Intro_FansAreRestless.wav", "Intro_PerfectEveningForDestruction.wav", "Intro_HoldOnToYourSeats.wav", "Misc_CrowdOnEdge.wav") sounds['generic'] = plus.createSound( "Sounds/announcers/" + random.choice(genericOpt), False, (0, 0, 0)) hazardOpt = ("Sounds/announcers/Hazard_Clawtop_PushingIntoFlames.wav", "Sounds/announcers/Hazard_Fire_GooseCooked.wav", "Sounds/announcers/Hazard_Fire_WatchFlames.wav") sounds['hazards'] = plus.createSound(random.choice(hazardOpt), False, (0, 0, 0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound( "Sounds/announcers/" + random.choice(botOpt), False, (0, 0, 0)) #intro cam, welcom comment plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((-24.7415, 25.1133, -29.1943), (0.615261, 0.704592), 0.675, (-14.848, 18.8305, 15.3655), (0.767187, 2.37905), 0.675, 0, 8) yield 2 plus.fadeOutLoop(sounds['crowd'], 8000) yield 1 #play a generic (or specific) secondary comment plus.playSound(sounds['generic']) yield 5 #hazard cams if self.bHazardsOn: plus.playSound(sounds['hazards']) plus.animateCamera( (15.0829, 14.9498, -2.50329), (1.00864, -1.76483), 0.675, (8.27242, 9.03776, -8.10172), (1.13697, -0.786874), 0.675, 0, 2) plus.animateCamera( (-10.6987, 5.09156, -10.3803), (0.524423, 0.803653), 0.675, (-8.69213, 12.7842, -8.36998), (1.13439, 0.812802), 0.675, 2, 4) plus.animateCamera( (11.7741, 15.1004, 0.0835621), (0.841642, -1.57107), 0.675, (6.27404, 11.2405, 0.0835622), (0.978884, -1.57131), 0.675, 4, 6) yield 6 players = plus.getPlayers() pcount = len(players) if pcount > 0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera((0.0348502, 8.63033, 3.0538), (0.735124, 0.0), 0.675, (0.0348502, 5.02771, 7.03817), (0.735124, 0.0), 0.675, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera( (0.0348476, 8.79597, -2.72149), (0.73107, 3.13506), 0.675, (0.0585011, 5.55021, -6.34049), (0.73107, 3.13506), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera( (2.79119, 8.79722, 0.0348791), (0.744325, 1.57751), 0.675, (6.64487, 5.2477, 0.0090155), (0.744325, 1.57751), 0.675, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera( (-2.40099, 8.86506, -0.09331), (0.719003, -1.5708), 0.675, (-5.9251, 5.78039, -0.09331), (0.719003, -1.5708), 0.675, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 2000) yield 2 # done yield 0
def Introduction(self): sounds = self.intro_sounds # set initial camera & fade from black plus.setCameraPosition(-18.3694, 10.7193, -18.9036) plus.setCameraRotation(0.273704, 0.813325) plus.setCameraFOV(45) plus.fadeFromBlack(.25) #start playing music loop self.intro_music = plus.createSound( "Sounds/intro_music/whatgame_loop.wav", False, (0, 0, 0)) plus.setVolume(self.intro_music, 0, 0) plus.loopSound(self.intro_music) yield .5 #welcome to arena (load all sounds now to decrease lag later) sounds['crowd'] = plus.createSound("Sounds/crowd/LoudCheer_Loop.wav", False, (0, 0, 0)) arenaOpt = ("Sounds/announcers/Arena_Octagon_Welcome.wav", "Sounds/announcers/Arena_Octagon_Enter.wav") sounds['arena'] = plus.createSound(random.choice(arenaOpt), False, (0, 0, 0)) genericOpt = ("Intro_TheFansAreReady.wav", "Intro_GreatMatchComingYourWay.wav", "Intro_FansAreRestless.wav", "Intro_PerfectEveningForDestruction.wav", "Intro_HoldOnToYourSeats.wav", "Misc_CrowdOnEdge.wav") sounds['generic'] = plus.createSound( "Sounds/announcers/" + random.choice(genericOpt), False, (0, 0, 0)) sounds['hazards'] = plus.createSound( "Sounds/announcers/Hazard_OctagonEverything.wav", False, (0, 0, 0)) botOpt = ("Bots_YouCanFeelTension.wav", "Bots_ColdChill.wav", "Bots_FansLoveTheseBots.wav", "Bots_SeeingInterestingDesigns.wav", "Bots_CrowdPoisedBotsArmed.wav") sounds['bots'] = plus.createSound( "Sounds/announcers/" + random.choice(botOpt), False, (0, 0, 0)) #intro cam plus.playSound(sounds['arena']) plus.fadeInToLoop(sounds['crowd'], -100, 800) plus.animateCamera((-18.3694, 10.7193, -18.9036), (0.273704, 0.813325), 45, (15.3706, 10.7193, -21.4037), (0.27792, -0.647428), 45, 0, 7) yield 3 #secondary intro comment plus.fadeOutLoop(sounds['crowd'], 8000) plus.playSound(sounds['generic']) yield 4 #hazard cams if self.bHazardsOn: plus.animateCamera( (-12.2938, 5.45186, 1.71877), (0.182787, 0.746338), 0.675, (11.9546, 2.71985, 6.22833), (0.0399611, -0.944844), 0.465, 0, 3) plus.animateCamera( (16.4935, 7.66633, -0.596993), (0.350502, -1.55504), 0.315, (17.4828, 5.91874, -0.596993), (0.40248, -1.54704), 0.885, 3, 6) yield .5 plus.playSound(sounds['hazards']) yield 5.5 players = plus.getPlayers() pcount = len(players) if pcount > 0: plus.playSound(sounds['bots']) delaytime = 6 - pcount if 0 in players: #bot 1 cam plus.animateCamera( (-4.26501, 2.26282, -3.00544), (0.173469, -0.190282), 0.8793, (2.22932, 2.26282, 3.39724), (0.181724, -1.28878), 0.6093, 0, delaytime) yield delaytime if 1 in players: #bot 2 cam plus.animateCamera( (-4.00138, 2.00669, -5.34849), (0.163484, 1.60859), 0.675, (-0.849382, 3.50541, -2.65736), (0.398552, 1.9945), 0.675, 0, delaytime) yield delaytime if 2 in players: #bot 3 cam plus.animateCamera( (1.23589, 1.95065, -1.50871), (0.119728, 0.522505), 0.8868, (-0.299681, 1.95065, -0.727713), (0.116014, 0.726596), 0.5868, 0, delaytime) yield delaytime if 3 in players: #bot 4 cam plus.animateCamera( (-2.00614, 3.97656, -2.32284), (0.579104, -2.37049), 1.0218, (-0.897416, 1.17021, -4.30382), (0.119285, -1.92632), 0.7818, 0, delaytime) yield delaytime #fade out music plus.fadeOutLoop(self.intro_music, 3000) yield 3 # done yield 0