22 lines
No EOL
636 B
Python
22 lines
No EOL
636 B
Python
from toontown.hood.HoodAI import *
|
|
from toontown.toonbase import ToontownGlobals
|
|
from toontown.safezone.DistributedGolfKartAI import DistributedGolfKartAI
|
|
from toontown.golf import GolfGlobals
|
|
|
|
class GZHoodAI(HoodAI):
|
|
HOOD = ToontownGlobals.GolfZone
|
|
|
|
def __init__(self, air):
|
|
HoodAI.__init__(self, air)
|
|
|
|
self.golfKarts = []
|
|
|
|
self.createZone()
|
|
|
|
def createZone(self):
|
|
self.spawnObjects()
|
|
|
|
def spawnObjects(self):
|
|
HoodAI.spawnObjects(self)
|
|
filename = self.air.genDNAFileName(self.HOOD)
|
|
self.air.dnaSpawner.spawnObjects(filename, self.HOOD) |