def __init__(self):
     Gag.__init__(self)
     self.lHandJoint = None
     self.hips = None
     self.PNTNEARZERO = Point3(0.01, 0.01, 0.01)
     self.PNTNORMAL = Point3(1, 1, 1)
     self.healAmount = None
Пример #2
0
    def __init__(self):
        Gag.__init__(self)
        LocationGag.__init__(self, 3, 50)
        self.crosshair.wantCrosshair = False
        self.holdGag = False
        self.missSfx = None
        self.fallSfx = None
        self.chooseLocFrame = 34
        self.completeFrame = 77
        self.collHandlerF = CollisionHandlerFloor()
        self.fallDuration = 0.75
        self.isDropping = False
        self.timeout = 3.0
        if metadata.PROCESS == 'client':
            self.missSfx = base.audio3d.loadSfx(self.missSfxPath)
            self.fallSfx = base.audio3d.loadSfx(self.fallSoundPath)

        self.dropCollider = None
        self.colliderRadius = 0.75
        self.colliderOfs = Point3(0)

        self.dropMdl = None

        # Variables to handle the drop preview with large drops.
        self.crashSite = None
        self.crashSiteGag = None
        self.crashSiteShadow = None
        self.crashSiteIval = None
        self.crashStartPos = None
        self.crashEndPos = None
        self.crashBegun = False
        self.shadowIdleTaskName = 'Handle-IdleShadow'

        self.lastShadowMoveTime = 0.0
Пример #3
0
    def __init__(self):
        Gag.__init__(self)
        self.appearSfx = None
        self.soundSfx = None
        self.megaphone = None
        self.tracks = None
        self.timeout = 5.0
        self.holdGag = False

        if metadata.PROCESS == 'client':
            self.appearSfx = base.audio3d.loadSfx(self.appearSfxPath)
            self.soundSfx = base.audio3d.loadSfx(self.soundSfxPath)