def generate(self): DistributedInstanceWorld.generate(self) localAvatar.gameFSM.setDefaultGameState('LandRoam') localAvatar.guiMgr.setSeaChestAllowed(False, True, 1) localAvatar.guiMgr.socialPanel.hide() localAvatar.guiMgr.combatTray.tonicButton.hide() localAvatar.guiMgr.hideAvatarDetails() NametagGlobals.setMasterNametagsActive(0) localAvatar.gameFSM.setDefaultGameState('PVPWait') self.acceptOnce('localAvTeleportFinished', self.arrived)
def __init__(self, cr): DistributedInstanceWorld.__init__(self, cr) FSM.__init__(self, 'DistributedPVPInstance') self.teams = {} self.names = {} self.stats = {} self.completed = False self.goToSpawnIval = None self.scoreboardHolder = ScoreboardHolder(self) self.statsHolder = StatsHolder(self) localAvatar.guiMgr.radarGui.request('On')
def __init__(self, cr): DistributedInstanceWorld.__init__(self, cr) FSM.__init__(self, 'DistributedPVPInstance') self.teams = { } self.names = { } self.stats = { } self.completed = False self.goToSpawnIval = None self.scoreboardHolder = ScoreboardHolder(self) self.statsHolder = StatsHolder(self) localAvatar.guiMgr.radarGui.request('On')
def localAvExitDeath(self, av): DistributedInstanceWorld.localAvExitDeath(self, av) self.cleanupSpawnIval()
def localAvEnterDeath(self, av): DistributedInstanceWorld.localAvEnterDeath(self, av) if not self.completed: self.localAvRespawn(av)
def delete(self): self.ignoreAll() DistributedInstanceWorld.delete(self)
def disable(self): DistributedInstanceWorld.disable(self) NametagGlobals.setMasterNametagsActive(1) self.cleanupPVP()
def announceGenerate(self): DistributedInstanceWorld.announceGenerate(self) self.eventRng = random.Random(self.doId)