def startSmoke(self): if not self.smoke: self.smoke = BlackSmoke.getEffect() if self.smoke: self.smoke.reparentTo(self.hpAnchor) self.smoke.setZ(-(self.smokeZAdj)) self.smoke.startLoop()
def enableEffect(self): if not self._fire: self._fire = Fire.getEffect() if self._fire: self._fire.enableEffect() self._fire.reparentTo(self) if not self._smoke: self._smoke = BlackSmoke.getEffect() if self._smoke: self._smoke.enableEffect() self._smoke.reparentTo(self)
def __init__(self, parent=None): NodePath.__init__(self, uniqueName('Bonfire')) self._fire = Fire.getEffect() self._smoke = BlackSmoke.getEffect() if self._fire: self._fire.reparentTo(self) self._fire.effectScale = 1.0 if self._smoke: self._smoke.reparentTo(self) if parent is not None: self.reparentTo(parent) self._sound = None if Bonfire.HackCount == 0: Bonfire.HackCount += 1 self._hasSound = True self._sound = None else: self._hasSound = False return
def __init__(self, parent = None): NodePath.__init__(self, uniqueName('Bonfire')) self._fire = Fire.getEffect() self._smoke = BlackSmoke.getEffect() if self._fire: self._fire.reparentTo(self) self._fire.effectScale = 1.0 if self._smoke: self._smoke.reparentTo(self) if parent is not None: self.reparentTo(parent) self._sound = None if Bonfire.HackCount == 0: Bonfire.HackCount += 1 self._hasSound = True self._sound = None else: self._hasSound = False