def createZone(self, genTrolley = True): HoodAI.startup(self) self.air.dnaStoreMap[self.HOOD] = self.air.loadDNA(self.air.genDNAFileName(self.HOOD)).generateData() if genTrolley: self.createTrolley() self.createTreasurePlanner() self.buildingMgr = DistributedBuildingMgrAI(self.air, self.HOOD, self.air.dnaStoreMap[self.HOOD], self.air.trophyMgr) NPCToons.createNpcsInZone(self.air, self.HOOD)
def startup(self): HoodAI.startup(self) self.notify.info("Creating ice creams...") for index in range(self.maxIceCreams): iceCream = DistributedDroppableCollectableIceCreamAI(self.air) iceCream.generateWithRequired(self.zoneId) pos = self.iceCreamLocs[index] x = pos.getX() y = pos.getY() z = pos.getZ() iceCream.d_setPos(x, y, z) iceCream.setDisabled(0) iceCream.b_setParent(CIGlobals.SPRender) self.iceCreams.append(iceCream)
def startup(self): HoodAI.startup(self) self.notify.info('Creating ice creams...') for index in range(self.maxIceCreams): iceCream = DistributedDroppableCollectableIceCreamAI(self.air) iceCream.generateWithRequired(self.zoneId) pos = self.iceCreamLocs[index] x = pos.getX() y = pos.getY() z = pos.getZ() iceCream.d_setPos(x, y, z) iceCream.setDisabled(0) iceCream.b_setParent(CIGlobals.SPRender) self.iceCreams.append(iceCream)
def startup(self): HoodAI.startup(self) #self.notify.info("Generating gag shop...") #self.gagShop = DistributedGagShopAI(self.air) #self.gagShop.generateWithRequired(self.zoneId) #x, y, z, h, p, r = self.hoodMgr.GagShopClerkPoints[self.hood] #self.gagShop.b_setPosHpr(x, y, z ,h, p, r) #if base.config.GetBool('want-suits', True): # self.notify.info("Creating suit manager...") # self.suitManager = DistributedSuitManagerAI(self.air) # self.suitManager.generateWithRequired(self.zoneId) #else: # self.notify.info("Won't create suits.") if HOOD2CHAR[self.hood] is not None: self.dChar = DistributedDisneyCharAI(self.air, HOOD2CHAR[self.hood]) self.dChar.generateWithRequired(self.zoneId) hood = self.hood if CogBattleGlobals.HoodId2WantBattles[hood] is True: # Trolley with index 0 indicates to send to the minigame area. self.cogStation = DistributedBattleTrolleyAI(self.air, ZoneUtil.MinigameAreaId, 0) self.cogStation.generateWithRequired(self.zoneId) self.cogStation.b_setState('wait')