4th line from bottom looks wrong, is it?
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything
Quote from: Squirrel_Monkey on January 19, 2010, 01:34:09 PM4th line from bottom looks wrong, is it?It was
But as I looked I saw a second issue: No 'return' for 'Tick'.
from __future__ import generatorsimport plusimport Arenasimport randomimport Hazardsimport mathclass Box(Arenas.SuperArena): "Twiiiiiiiiiiiiiiiisted" name = "Twiiiiiiiiiiiiiisted Arena" preview = "twisted/twi_preview.bmp" game_types = ['DEATHMATCH', 'BATTLE ROYAL', 'TEAM MATCH'] extent = (-15, 15, 15, -15) def __init__(self): Arenas.SuperArena.__init__(self, "Arenas/twisted/twisted.gmf") #plus.Arena.__init__(self, "") plus.setBackColor(.36, .537, .788) degrad = 0.01745 self.AddStaticCamera("Battle View", (19.5, 15, 19.5), (50*degrad,225*degrad), 55*degrad) self.AddStaticCamera("High Flipper View", (-19.5, 45, -19.5), (48*degrad,45*degrad), 84*degrad) self.AddStaticCamera("Birds Eye View", (0, 45, 0), (90*degrad,0), 75*degrad) self.AddWatchCamera("Combat Cam", (-12, 8, 12), (16, 36, 65*degrad, 30*degrad)) self.AddWatchCamera("Aerial Cam", (-19.5, 35, -19.5), (50, 60, 45*degrad, 60*degrad)) self.AddWatchCamera("Ground Cam", (8, -5, -8), (15, 40, 75*degrad, 35*degrad)) self.AddWatchCamera("Spectator Cam", (13, 15, 13), (6, 18, 45*degrad, 45*degrad)) self.players = () def AddShadowReceivers(self): self.SetShadowSource(5.897, 19.159, 5.899) def Activate(self, on): if on: self.players = plus.getPlayers() Arenas.SuperArena.Activate(self, on) def Tick(self): for each in self.players: if plus.getLocation(each)[-2] < -6: # Adjust this parameter to floor height(s). plus.eliminatePlayer(each) Arenas.register(Box)
Quote from: Madiaba on January 19, 2010, 01:42:45 PMBut as I looked I saw a second issue: No 'return' for 'Tick'.as soon as I saw the py, I fixed that up and posted the fixed one... seems I missed this page though and you already beat me to it lol I should really look ahead to see if there was another page rather then "trusting" were the forum places me
self.AddStaticCamera("Battle View", (19.5, 15, 19.5), (50*degrad,225*degrad), 55*degrad) self.AddStaticCamera("High Flipper View", (-19.5, 45, -19.5), (48*degrad,45*degrad), 84*degrad) self.AddStaticCamera("Birds Eye View", (0, 45, 0), (90*degrad,0), 75*degrad) self.AddWatchCamera("Combat Cam", (-12, 8, 12), (16, 36, 65*degrad, 30*degrad))
DP BUMPI was finishing off Stag's ROBONOVA 2 arena. All I did here was add a different elasticity to the already functioning arena. Now the whole thing is completely white ingame. Here's the decompiled gtm: http://pastebin.org/130586