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) 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)))
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)))
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()