2019-11-02 17:27:54 -05:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
|
|
from direct.distributed.ClockDelta import *
|
|
|
|
from direct.task import Task
|
2022-12-16 18:40:57 -06:00
|
|
|
from panda3d.core import *
|
2019-11-02 17:27:54 -05:00
|
|
|
from toontown.racing.DistributedKartPad import DistributedKartPad
|
|
|
|
from toontown.racing.KartShopGlobals import KartGlobals
|
|
|
|
if (__debug__):
|
|
|
|
import pdb
|
|
|
|
|
|
|
|
class DistributedViewPad(DistributedKartPad):
|
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedViewPad')
|
|
|
|
id = 0
|
|
|
|
|
|
|
|
def __init__(self, cr):
|
|
|
|
DistributedKartPad.__init__(self, cr)
|
|
|
|
self.id = DistributedViewPad.id
|
|
|
|
DistributedViewPad.id += 1
|
|
|
|
|
|
|
|
def setLastEntered(self, timeStamp):
|
|
|
|
self.timeStamp = timeStamp
|
|
|
|
|
|
|
|
def getTimestamp(self, avId):
|
|
|
|
return self.timeStamp
|
|
|
|
|
|
|
|
def addStartingBlock(self, block):
|
|
|
|
block.cameraPos = Point3(0, 23, 7)
|
|
|
|
block.cameraHpr = Point3(180, -10, 0)
|
|
|
|
DistributedKartPad.addStartingBlock(self, block)
|