2022-12-16 18:40:57 -06:00
|
|
|
from panda3d.core import *
|
2019-11-02 17:27:54 -05:00
|
|
|
from direct.interval.IntervalGlobal import *
|
|
|
|
from toontown.toonbase.ToontownGlobals import *
|
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
2019-12-30 00:07:56 -06:00
|
|
|
from . import DistributedBarrelBase
|
2019-11-02 17:27:54 -05:00
|
|
|
|
|
|
|
class DistributedHealBarrel(DistributedBarrelBase.DistributedBarrelBase):
|
|
|
|
|
|
|
|
def __init__(self, cr):
|
|
|
|
DistributedBarrelBase.DistributedBarrelBase.__init__(self, cr)
|
|
|
|
self.numGags = 0
|
|
|
|
self.gagScale = 0.6
|
|
|
|
|
|
|
|
def disable(self):
|
|
|
|
DistributedBarrelBase.DistributedBarrelBase.disable(self)
|
|
|
|
self.ignoreAll()
|
|
|
|
|
|
|
|
def delete(self):
|
|
|
|
self.gagModel.removeNode()
|
|
|
|
del self.gagModel
|
|
|
|
DistributedBarrelBase.DistributedBarrelBase.delete(self)
|
|
|
|
|
|
|
|
def applyLabel(self):
|
|
|
|
self.gagModel = loader.loadModel('phase_4/models/props/icecream')
|
|
|
|
self.gagModel.reparentTo(self.gagNode)
|
|
|
|
self.gagModel.find('**/p1_2').clearBillboard()
|
|
|
|
self.gagModel.setScale(self.gagScale)
|
|
|
|
self.gagModel.setPos(0, -0.1, -.1 - self.gagScale)
|
|
|
|
|
|
|
|
def setGrab(self, avId):
|
|
|
|
DistributedBarrelBase.DistributedBarrelBase.setGrab(self, avId)
|