示例#1
0
    def __init__(self):
        __metaclass__ = ABCMeta
        DirectObject.__init__(self)
        BaseAttack.__init__(self)
        self.avatar = None
        self.gag = None
        self.target = None
        self.splat = None
        self.splatPos = None
        self.state = GagState.LOADED
        self.woosh = None
        self.handJoint = None
        self.equipped = False
        self.index = None
        self.id = GagGlobals.getIDByName(self.name)
        self.timeout = 5
        self.animTrack = None
        self.holdGag = True

        # Handles the new recharging for certain gags.

        # The time it takes (in seconds) to recharge this gag.
        self.rechargeTime = 0

        # The elapsed time of the current recharge. Should be a float
        self.rechargeElapsedTime = 0

        if metadata.PROCESS == 'client':
            if self.gagType == GagType.THROW:
                self.woosh = base.audio3d.loadSfx(GagGlobals.PIE_WOOSH_SFX)
            self.hitSfx = base.audio3d.loadSfx(self.hitSfxPath)
            self.drawSfx = base.audio3d.loadSfx(GagGlobals.DEFAULT_DRAW_SFX)
    def __init__(self, sharedMetadata=None):
        metadata = {}
        metadata.update(GenericMetadata)
        if sharedMetadata:
            metadata.update(sharedMetadata)
        BaseAttack.__init__(self, metadata)

        self.suitType2ReleaseFrame = {
            SuitType.A: {
                'throw-paper': 73,
                'throw-object': 73
            },
            SuitType.B: {
                'throw-paper': 73,
                'throw-object': 75
            },
            SuitType.C: {
                'throw-paper': 57,
                'throw-object': 56
            }
        }
示例#3
0
 def __init__(self):
     BaseAttack.__init__(self)
     self.pickSound = None
 def __init__(self):
     BaseAttack.__init__(self)
     self.glowTrack = None
     self.glow = None
示例#5
0
 def __init__(self):
     BaseAttack.__init__(self)
     self.sprayOnlySfx = None
     self.coolerAppearSfx = None
     self.sprayMdl = None
     self.splash = None
 def __init__(self):
     BaseAttack.__init__(self, EvilEyeShared.Metadata)
     self.eyeSfx = None
     self.eyeRoot = None