def createCogKarts(self):
        posList = ((154.762, 37.168999999999997, 0),
                   (141.40299999999999, -81.887, 0), (-48.439999999999998,
                                                      15.308, 0))
        hprList = ((110.815, 0, 0), (61.231000000000002, 0, 0),
                   (-105.48099999999999, 0, 0))
        mins = ToontownGlobals.FactoryLaffMinimums[3]
        kartIdList = []
        for cogCourse in xrange(len(posList)):
            pos = posList[cogCourse]
            hpr = hprList[cogCourse]
            cogKart = DistributedCogKartAI.DistributedCogKartAI(
                self.air,
                cogCourse,
                pos[0],
                pos[1],
                pos[2],
                hpr[0],
                hpr[1],
                hpr[2],
                self.air.countryClubMgr,
                minLaff=mins[cogCourse])
            cogKart.generateWithRequired(self.zoneId)
            self.cogKarts.append(cogKart)
            kartIdList.append(cogKart.doId)

        return kartIdList
示例#2
0
    def createCogKarts(self):
        posList = ((-103.702, -43.47, 10.076), (-103.462, 31.377, 11.784),
                   (-69.968, 96.113, 12.16))
        hprList = ((-68.17, 0, 0), (-107.653, 0, 0), (-122.766, 0, 0))
        mins = ToontownGlobals.FactoryLaffMinimums[3]
        kartIdList = []
        for cogCourse in xrange(len(posList)):
            pos = posList[cogCourse]
            hpr = hprList[cogCourse]
            cogKart = DistributedCogKartAI.DistributedCogKartAI(
                self.air,
                cogCourse,
                pos[0],
                pos[1],
                pos[2],
                hpr[0],
                hpr[1],
                hpr[2],
                self.air.countryClubMgr,
                minLaff=mins[cogCourse])
            cogKart.generateWithRequired(self.zoneId)
            self.cogKarts.append(cogKart)
            kartIdList.append(cogKart.doId)

        toonKart = DistributedGolfKartAI.DistributedGolfKartAI(
            self.air, 3, 98.4425, -104.494, -1.72622, 17.833, 0, 0)
        toonKart.generateWithRequired(self.zoneId)
        toonKart.start()
        return kartIdList
 def createCogKarts(self):
     posList = (
         (154.762, 37.169, 0), (141.403, -81.887, 0),
         (-48.44, 15.308, 0)
     )
     hprList = ((110.815, 0, 0), (61.231, 0, 0), (-105.481, 0, 0))
     for cogCourse in xrange(len(posList)):
         pos = posList[cogCourse]
         hpr = hprList[cogCourse]
         cogKart = DistributedCogKartAI.DistributedCogKartAI(
             self.air, cogCourse,
             pos[0], pos[1], pos[2], hpr[0], hpr[1], hpr[2],
             self.air.countryClubMgr)
         cogKart.generateWithRequired(self.zoneId)
         self.cogKarts.append(cogKart)
示例#4
0
 def createCogKarts(self):
     posList = ((-26.5658, 237.459, 0), (132.197, 227.845, 0),
                (-28.725, -235.706, 0))
     hprList = ((-159, 0, 0), (172, 0, 0), (-21, 0, 0))
     mins = ToontownGlobals.FactoryLaffMinimums[3]
     for cogCourse in xrange(len(posList)):
         pos = posList[cogCourse]
         hpr = hprList[cogCourse]
         cogKart = DistributedCogKartAI.DistributedCogKartAI(
             self.air,
             cogCourse,
             pos[0],
             pos[1],
             pos[2],
             hpr[0],
             hpr[1],
             hpr[2],
             self.air.countryClubMgr,
             minLaff=mins[cogCourse])
         cogKart.generateWithRequired(self.zoneId)
         self.cogKarts.append(cogKart)