Exemplo n.º 1
0
    def equip(self):
        if not BaseAttack.equip(self):
            return False

        if not self.sprayOnlySfx:
            self.sprayOnlySfx = base.loadSfxOnNode(self.SprayOnlyPath,
                                                   self.avatar)

        if not self.coolerAppearSfx:
            self.coolerAppearSfx = base.loadSfxOnNode(self.CoolerAppearPath,
                                                      self.avatar)

        if not self.sprayMdl:
            self.sprayMdl = loader.loadModel(self.SprayPath)
            self.sprayMdl.setTransparency(1)
            self.sprayMdl.setColor(0.75, 0.75, 1.0, 0.8)
            self.sprayMdl.setScale(0.3, 1.0, 0.3)
            self.sprayMdl.setLightOff()
            self.sprayMdl.reparentTo(self.model.find('**/joint_toSpray'))
            self.sprayMdl.hide()

        if not self.splash:
            self.splash = CIGlobals.makeSplat(Point3(0),
                                              (0.75, 0.75, 1.0, 0.8), 0.3,
                                              None)

        return True
Exemplo n.º 2
0
    def equip(self):
        if not BaseAttack.equip(self):
            return False

        if not self.pickSound:
            self.pickSound = base.loadSfxOnNode(self.PickSoundPath, self.avatar)

        return True
    def equip(self):
        if not BaseAttack.equip(self):
            return False

        if not self.eyeSfx:
            self.eyeSfx = base.loadSfxOnNode(self.EyeSoundPath, self.avatar)

        return True
Exemplo n.º 4
0
    def equip(self):
        if not BaseAttack.equip(self):
            return False

        return True