def start(self):
        Gag.start(self)
        if not self.gag:
            self.build()

        if self.isLocal():
            self.powerBar.start()
Beispiel #2
0
    def start(self):
        Gag.start(self)

        base.audio3d.attachSoundToObject(self.spraySound, self.avatar)
        self.spraySound.setLoop(True)

        # Start and fade in the spray sound.
        self.doSpraySoundIval(0)

        self.loadParticle()
        self.sprayParticle.start(self.waterStreamParent,
                                 self.sprayParticleRoot)

        self.spRootUpdateTask = taskMgr.add(self.__updateParticleParent,
                                            "FH.uPP",
                                            sort=-10)
Beispiel #3
0
 def start(self):
     Gag.start(self)
     if self.isLocal():
         self.startTimeout()
     if self.tracks:
         self.tracks.pause()
         self.tracks = None
     self.build()
     base.audio3d.attachSoundToObject(self.soundSfx, self.avatar)
     base.audio3d.attachSoundToObject(self.appearSfx, self.avatar)
     if self.isLocal():
         if base.localAvatar.isFirstPerson():
             vm = base.localAvatar.getViewModel()
             fpsCam = base.localAvatar.getFPSCam()
             fpsCam.setVMAnimTrack(Sequence(Func(fpsCam.vmRoot2.setY, 0.5), Wait(0.75), Func(vm.show), ActorInterval(vm, "sound"), Func(fpsCam.vmRoot2.setY, 0.0), Func(vm.hide)))
             self.gag.instanceTo(fpsCam.vmGag)
         base.localAvatar.sendUpdate('usedGag', [self.id])
 def start(self):
     Gag.start(self)
     if self.isLocal():
         self.startTimeout()
         base.localAvatar.sendUpdate('usedGag', [self.id])