def __init__(self, other = None, animationMixerClass = BipedAnimationMixer):
     self.wantZombie = base.config.GetBool('want-zombie', 0)
     Avatar.__init__(self, other)
     UsesAnimationMixer.__init__(self, animationMixerClass)
     UsesEffectNode.__init__(self)
     Biped.initSfx()
     self.setPickable(0)
     self.height = 0.0
     self.nametagOffset = -5.0
     self.rootScale = 1.0
     self.nameText = None
     self.iconNodePath = None
     self.battleTubeHeight = 0.0
     self.battleTubeRadius = 0.0
     self.lerpHeadTrack = None
     self.loadAnimatedHead = None
     self.rightHandNode = NodePath(ModelNode('rightHand'))
     self.leftHandNode = NodePath(ModelNode('leftHand'))
     self.weaponJointInstances = []
     self.headFudgeHpr = Vec3(0, 0, 0)
     self.renderReflection = False
     self.nametag2dContents = 0
     self.nametag2dDist = 0
     self.nametag2dNormalContents = 0
     self.nametag.getNametag2d().setContents(0)
     self.nametag3d.setLightOff()
     self.fader = None
Exemplo n.º 2
0
    def __init__(self, cr):
        try:
            self.DistributedAvatar_initialized
            return
        except:
            self.DistributedAvatar_initialized = 1

        Avatar.__init__(self)
        DistributedActor.__init__(self, cr)
        self.hpText = None
        self.hp = None
        self.maxHp = None
        return
Exemplo n.º 3
0
 def __init__(self):
     Avatar.__init__(self)
     self.setFont(ToontownGlobals.getSuitFont())
     self.setPlayerType(NametagGroup.CCSuit)
     self.initializeNametag3d()
     self.initializeDropShadow()
     self.nametag3d.setPos(0, 0, 15.69)
     self.dropShadow.setScale(1.8)
     self.nametag3d.setScale(1.4)
     self.setPickable(0)
     self.loadModel('phase_14/models/char/chairman-mod')
     self.loadAnims({'neutral': 'phase_14/models/char/chairman-neutral'})
     self.setBlend(frameBlend=base.settings.getBool(
         'game', 'smooth-animations', True))
Exemplo n.º 4
0
 def __init__(self):
     Avatar.__init__(self)
     self.setFont(ToontownGlobals.getSuitFont())
     self.setSpeechFont(ToontownGlobals.getSuitFont())
     self.setPlayerType(NametagGroup.CCSuit)
     self.initializeNametag3d()
     self.initializeDropShadow()
     self.nametag3d.setPos(0, 0, 15.69)
     self.dropShadow.setScale(1.8)
     self.nametag3d.setScale(1.4)
     self.setPickable(0)
     self.loadModel('phase_14/models/char/chairman-mod')
     self.loadAnims({
         'walk': 'phase_14/models/char/chairman-walk',
         'neutral': 'phase_14/models/char/chairman-neutral',
         'into-type': 'phase_14/models/char/chairman-into-type',
         'type': 'phase_14/models/char/chairman-type',
         'capture': 'phase_14/models/char/chairman-capture'
     })
     self.setBlend(
         frameBlend=config.GetBool('interpolate-animations', True))
Exemplo n.º 5
0
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.JoshameeGibbs
     self.loadModel('models/char/jg_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
Exemplo n.º 6
0
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.TiaDalma
     self.loadModel('models/char/td_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
Exemplo n.º 7
0
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.CaptBarbossa
     self.loadModel('models/char/cb_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
Exemplo n.º 8
0
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.ElizabethSwan
     self.loadModel('models/char/es_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
Exemplo n.º 9
0
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.WillTurner
     self.loadModel('models/char/wt_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
Exemplo n.º 10
0
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.JackSparrow
     self.loadModel('models/char/js_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.WillTurner
     self.loadModel('models/char/wt_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.JoshameeGibbs
     self.loadModel('models/char/jg_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.TiaDalma
     self.loadModel('models/char/td_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.JackSparrow
     self.loadModel('models/char/js_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.CaptBarbossa
     self.loadModel('models/char/cb_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.ElizabethSwan
     self.loadModel('models/char/es_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
Exemplo n.º 17
0
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.JollyRoger
     self.loadModel('models/char/jr_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)
 def __init__(self):
     Avatar.__init__(self)
     self.avatarType = AvatarTypes.JollyRoger
     self.loadModel('models/char/jr_2000')
     self.setName(self.avatarType.getName())
     self.setNameVisible(0)