Exemple #1
0
    def __init__(self):
        Creature.__init__(self)
        if not Monkey.sfx:
            for name in Monkey.SfxNames:
                Monkey.sfx[name] = loadSfx(Monkey.SfxNames[name])

        self.generateCreature()
Exemple #2
0
    def __init__(self):
        Creature.__init__(self)
        TentacleUtils.__init__(self)
        self.collideBattleMask = PiratesGlobals.TargetBitmask | PiratesGlobals.BattleAimBitmask
        if not Grabber.sfx:
            for name in Grabber.SfxNames:
                Grabber.sfx[name] = loader.loadSfx('audio/' + Grabber.SfxNames[name])

        self.joints = None
        self.idle = None
        self.iTask = None
        self.hitIval = Sequence(self.colorScaleInterval(0.3, (1, 0, 0, 1), (1, 1, 1,
                                                                            1)), self.colorScaleInterval(0.3, (1,
                                                                                                               1,
                                                                                                               1,
                                                                                                               1), (1,
                                                                                                                    0,
                                                                                                                    0,
                                                                                                                    1)))
        self.generateCreature()
        self.target = loader.loadModel('models/misc/smiley')
        self.target.reparentTo(self.getGrabTargetNode())
        self.target.hide()
        self.enableMixing()
        return
    def __init__(self):
        Creature.__init__(self)
        if not Bat.sfx:
            for name in Bat.SfxNames:
                Bat.sfx[name] = loadSfx(Bat.SfxNames[name])

        self.nametagOffset = 1.2
        self.generateCreature()
Exemple #4
0
    def __init__(self):
        Creature.__init__(self)
        if not Wasp.sfx:
            for name in Wasp.SfxNames:
                Wasp.sfx[name] = loadSfx(Wasp.SfxNames[name])

        self.nametagOffset = 11.5
        self.generateCreature()
Exemple #5
0
 def __init__(self):
     Creature.__init__(self)
     if not Monkey.sfx:
         for name in Monkey.SfxNames:
             Monkey.sfx[name] = loadSfx(Monkey.SfxNames[name])
         
     
     self.generateCreature()
    def __init__(self):
        Creature.__init__(self)
        if not Scorpion.sfx:
            for name in Scorpion.SfxNames:
                Scorpion.sfx[name] = loadSfx(Scorpion.SfxNames[name])

        self.nametagOffset = 12.0
        self.generateCreature()
        self.headNode = self.find('**/def_root')
Exemple #7
0
 def __init__(self):
     Creature.__init__(self)
     if not Bat.sfx:
         for name in Bat.SfxNames:
             Bat.sfx[name] = loadSfx(Bat.SfxNames[name])
         
     
     self.nametagOffset = 1.2
     self.generateCreature()
Exemple #8
0
    def __init__(self):
        Creature.__init__(self)
        if not FlyTrap.sfx:
            for name in FlyTrap.SfxNames:
                FlyTrap.sfx[name] = loadSfx(FlyTrap.SfxNames[name])

        self.nametagOffset = 23
        self.generateCreature()
        self.headNode = self.find('**/def_stem10')
    def __init__(self):
        Creature.__init__(self)
        if not Crab.sfx:
            for name in Crab.SfxNames:
                Crab.sfx[name] = loadSfx(Crab.SfxNames[name])

        self.nametagOffset = 1.6
        self.generateCreature()
        self.headNode = self.find('**/def_root')
Exemple #10
0
    def __init__(self):
        Creature.__init__(self)
        self.texCard = loader.loadModel('models/char/undead_creatures')
        if not Alligator.sfx:
            for name in Alligator.SfxNames:
                Alligator.sfx[name] = loadSfx(Alligator.SfxNames[name])

        self.nametagOffset = 3.7999999999999998
        self.generateCreature()
    def __init__(self):
        Creature.__init__(self)
        if not Head.sfx:
            for name in Head.SfxNames:
                Head.sfx[name] = loader.loadSfx('audio/' + Head.SfxNames[name])

        self.generateCreature()
        self.target = loader.loadModel('models/misc/smiley')
        self.target.reparentTo(self)
Exemple #12
0
 def __init__(self):
     Creature.__init__(self)
     if not Wasp.sfx:
         for name in Wasp.SfxNames:
             Wasp.sfx[name] = loadSfx(Wasp.SfxNames[name])
         
     
     self.nametagOffset = 11.5
     self.generateCreature()
 def __init__(self):
     Creature.__init__(self)
     TentacleUtils.__init__(self)
     self.collideBattleMask = PiratesGlobals.TargetBitmask | PiratesGlobals.WallBitmask | PiratesGlobals.BattleAimBitmask | PiratesGlobals.CameraBitmask
     if not Holder.sfx:
         for name in Holder.SfxNames:
             Holder.sfx[name] = loader.loadSfx('audio/' + Holder.SfxNames[name])
         
     
     self.hitIval = Sequence(self.colorScaleInterval(0.29999999999999999, (1, 0, 0, 1), (1, 1, 1, 1)), self.colorScaleInterval(0.29999999999999999, (1, 1, 1, 1), (1, 0, 0, 1)))
Exemple #14
0
 def __init__(self):
     Creature.__init__(self)
     self.texCard = loader.loadModel('models/char/undead_creatures')
     if not Alligator.sfx:
         for name in Alligator.SfxNames:
             Alligator.sfx[name] = loadSfx(Alligator.SfxNames[name])
         
     
     self.nametagOffset = 3.7999999999999998
     self.generateCreature()
Exemple #15
0
 def __init__(self):
     Creature.__init__(self)
     if not Scorpion.sfx:
         for name in Scorpion.SfxNames:
             Scorpion.sfx[name] = loadSfx(Scorpion.SfxNames[name])
         
     
     self.nametagOffset = 12.0
     self.generateCreature()
     self.headNode = self.find('**/def_root')
Exemple #16
0
 def __init__(self):
     Creature.__init__(self)
     if not FlyTrap.sfx:
         for name in FlyTrap.SfxNames:
             FlyTrap.sfx[name] = loadSfx(FlyTrap.SfxNames[name])
         
     
     self.nametagOffset = 23
     self.generateCreature()
     self.headNode = self.find('**/def_stem10')
Exemple #17
0
 def __init__(self):
     Creature.__init__(self)
     if not Crab.sfx:
         for name in Crab.SfxNames:
             Crab.sfx[name] = loadSfx(Crab.SfxNames[name])
         
     
     self.nametagOffset = 1.6000000000000001
     self.generateCreature()
     self.headNode = self.find('**/def_root')
Exemple #18
0
 def __init__(self):
     Creature.__init__(self)
     if not Head.sfx:
         for name in Head.SfxNames:
             Head.sfx[name] = loader.loadSfx('audio/' + Head.SfxNames[name])
         
     
     self.generateCreature()
     self.target = loader.loadModel('models/misc/smiley')
     self.target.reparentTo(self)
Exemple #19
0
    def __init__(self):
        Creature.__init__(self)
        self.rightHandNode = None
        self.leftHandNode = None
        if not Stump.sfx:
            for name in Stump.SfxNames:
                Stump.sfx[name] = loadSfx(Stump.SfxNames[name])

        self.nametagOffset = 10
        self.generateCreature()
        self.headNode = self.find('**/def_neck')
Exemple #20
0
 def __init__(self):
     Creature.__init__(self)
     self.rightHandNode = None
     self.leftHandNode = None
     if not Stump.sfx:
         for name in Stump.SfxNames:
             Stump.sfx[name] = loadSfx(Stump.SfxNames[name])
         
     
     self.nametagOffset = 10
     self.generateCreature()
     self.headNode = self.find('**/def_neck')
Exemple #21
0
    def __init__(self):
        Creature.__init__(self)
        TentacleUtils.__init__(self)
        self.collideBattleMask = PiratesGlobals.TargetBitmask | PiratesGlobals.WallBitmask | PiratesGlobals.BattleAimBitmask | PiratesGlobals.CameraBitmask
        if not Holder.sfx:
            for name in Holder.SfxNames:
                Holder.sfx[name] = loader.loadSfx('audio/' +
                                                  Holder.SfxNames[name])

        self.hitIval = Sequence(
            self.colorScaleInterval(0.3, (1, 0, 0, 1), (1, 1, 1, 1)),
            self.colorScaleInterval(0.3, (1, 1, 1, 1), (1, 0, 0, 1)))
Exemple #22
0
 def __init__(self):
     Creature.__init__(self)
     TentacleUtils.__init__(self)
     self.collideBattleMask = PiratesGlobals.TargetBitmask | PiratesGlobals.BattleAimBitmask
     if not Grabber.sfx:
         for name in Grabber.SfxNames:
             Grabber.sfx[name] = loader.loadSfx('audio/' + Grabber.SfxNames[name])
         
     
     self.joints = None
     self.idle = None
     self.iTask = None
     self.hitIval = Sequence(self.colorScaleInterval(0.29999999999999999, (1, 0, 0, 1), (1, 1, 1, 1)), self.colorScaleInterval(0.29999999999999999, (1, 1, 1, 1), (1, 0, 0, 1)))
     self.generateCreature()
     self.target = loader.loadModel('models/misc/smiley')
     self.target.reparentTo(self.getGrabTargetNode())
     self.target.hide()
     self.enableMixing()
Exemple #23
0
 def __init__(self, animationMixer = None):
     Creature.__init__(self, animationMixer)
Exemple #24
0
 def initializeNametag3dPet(self):
     Creature.initializeNametag3d(self)
Exemple #25
0
 def generateCreature(self):
     Creature.generateCreature(self)
     self.getWeaponJoints()
Exemple #26
0
 def generateCreature(self):
     Creature.generateCreature(self)
     self.getWeaponJoints()
Exemple #27
0
 def delete(self):
     self.rightHandNode = None
     self.leftHandNode = None
     Creature.delete(self)
Exemple #28
0
 def __init__(self, animationMixer=None):
     Creature.__init__(self, animationMixer)
Exemple #29
0
 def initializeNametag3dPet(self):
     Creature.initializeNametag3d(self)
Exemple #30
0
 def generateCreature(self):
     Creature.generateCreature(self)
     self.getGeomNode().setH(180)
     self.setAvatarScale(0.7)
Exemple #31
0
 def delete(self):
     self.rightHandNode = None
     self.leftHandNode = None
     Creature.delete(self)
Exemple #32
0
 def __init__(self):
     Creature.__init__(self)
     self.enableMixing()
     self.collideBattleMask = PiratesGlobals.TargetBitmask | PiratesGlobals.BattleAimBitmask
Exemple #33
0
 def generateCreature(self):
     Creature.generateCreature(self)
     self.getGeomNode().setH(180)
     self.setAvatarScale(0.69999999999999996)