2015-06-23 18:11:48 -05:00
|
|
|
from panda3d.core import *
|
2015-03-03 16:10:12 -06:00
|
|
|
from DistributedNPCToon import *
|
|
|
|
|
|
|
|
class DistributedNPCFlippyInToonHall(DistributedNPCToon):
|
|
|
|
|
|
|
|
def __init__(self, cr):
|
|
|
|
DistributedNPCToon.__init__(self, cr)
|
|
|
|
|
|
|
|
def getCollSphereRadius(self):
|
|
|
|
return 4
|
|
|
|
|
|
|
|
def initPos(self):
|
|
|
|
self.clearMat()
|
|
|
|
self.setScale(1.25)
|
|
|
|
|
|
|
|
def handleCollisionSphereEnter(self, collEntry):
|
2015-03-09 15:47:59 -05:00
|
|
|
base.cr.playGame.getPlace().fsm.request('quest', [self])
|
|
|
|
self.sendUpdate('avatarEnter', [])
|
|
|
|
self.nametag3d.setDepthTest(0)
|
|
|
|
self.nametag3d.setBin('fixed', 0)
|
2015-07-05 18:59:25 -05:00
|
|
|
self.lookAt(base.localAvatar)
|