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
    def __init__(self, animationMixer = None):
        Avatar.Avatar.__init__(self)
        UsesEffectNode.__init__(self)
        self.setPickable(0)
        self.shadowFileName = 'models/misc/drop_shadow'
        self.dimensions = VBase3(0.0, 0.0, 0.0)
        self.nameText = None
        self.avatarType = None
        self.level = None
        self.nametagOffset = 2.0
        self.headNode = self.find('**/def_head')
        if not Creature.sfx:
            for name in Creature.SfxNames:
                Creature.sfx[name] = loadSfx(Creature.SfxNames[name])

        self.setupReflection()

        if not animationMixer:
            pass

        animationMixer = self.AnimationMixer
        UsesAnimationMixer.__init__(self, animationMixer)

        self.deathEffect = None
        self.shockwaveRingIval = None
        self.shockwaveRingEffect = None
        self.spiritIval = None
        self.spiritEffect = None
Exemplo n.º 3
0
    def __init__(self, animationMixer=None):
        Avatar.Avatar.__init__(self)
        UsesEffectNode.__init__(self)
        self.setPickable(0)
        self.shadowFileName = 'models/misc/drop_shadow'
        self.nameText = None
        self.avatarType = None
        if not SeaMonster.sfx:
            for name in SeaMonster.SfxNames:
                SeaMonster.sfx[name] = loadSfx(SeaMonster.SfxNames[name])

        OTPRender.renderReflection(False, self, 'p_creature', None)
        animationMixer = self.AnimationMixer
        UsesAnimationMixer.__init__(self, animationMixer)
Exemplo n.º 4
0
 def __init__(self, animationMixer = None):
     Avatar.Avatar.__init__(self)
     UsesEffectNode.__init__(self)
     self.setPickable(0)
     self.shadowFileName = 'models/misc/drop_shadow'
     self.nameText = None
     self.avatarType = None
     if not SeaMonster.sfx:
         for name in SeaMonster.SfxNames:
             SeaMonster.sfx[name] = loadSfx(SeaMonster.SfxNames[name])
         
     
     OTPRender.renderReflection(False, self, 'p_creature', None)
     animationMixer = self.AnimationMixer
     UsesAnimationMixer.__init__(self, animationMixer)
 def delete(self):
     if self.deathEffect:
         self.deathEffect.stop()
         self.deathEffect = None
     if self.shockwaveRingIval:
         self.shockwaveRingIval.pause()
         self.shockwaveRingIval = None
     if self.shockwaveRingEffect:
         self.shockwaveRingEffect.stop()
         self.shockwaveRingEffect = None
     if self.spiritIval:
         self.spiritIval.pause()
         self.spiritIval = None
     if self.spiritEffect:
         self.spiritEffect.stop()
         self.spiritEffect = None
     Avatar.Avatar.delete(self)
     UsesAnimationMixer.delete(self)
     UsesEffectNode.delete(self)
 def delete(self):
     self.loadAnimatedHead = None
     self.deleteWeaponJoints()
     Avatar.delete(self)
     UsesAnimationMixer.delete(self)
     UsesEffectNode.delete(self)