|
|
@ -804,7 +804,6 @@ class PlasmaSoundMsgNode(idprops.IDPropObjectMixin, PlasmaMessageWithCallbacksNo |
|
|
|
|
|
|
|
|
|
|
|
def _convert_random_sound_msg(self, exporter, so): |
|
|
|
def _convert_random_sound_msg(self, exporter, so): |
|
|
|
# Yas, plAnimCmdMsg |
|
|
|
# Yas, plAnimCmdMsg |
|
|
|
soundemit = self.emitter_object.plasma_modifiers.soundemit |
|
|
|
|
|
|
|
msg = plAnimCmdMsg() |
|
|
|
msg = plAnimCmdMsg() |
|
|
|
msg.addReceiver(exporter.mgr.find_key(plRandomSoundMod, bl=self.emitter_object)) |
|
|
|
msg.addReceiver(exporter.mgr.find_key(plRandomSoundMod, bl=self.emitter_object)) |
|
|
|
|
|
|
|
|
|
|
@ -819,10 +818,6 @@ class PlasmaSoundMsgNode(idprops.IDPropObjectMixin, PlasmaMessageWithCallbacksNo |
|
|
|
# No, you are not imagining things... |
|
|
|
# No, you are not imagining things... |
|
|
|
msg.setCmd(plAnimCmdMsg.kSetSpeed, True) |
|
|
|
msg.setCmd(plAnimCmdMsg.kSetSpeed, True) |
|
|
|
msg.speed = self.volume_pct / 100.0 if self.volume == "CUSTOM" else 0.0 |
|
|
|
msg.speed = self.volume_pct / 100.0 if self.volume == "CUSTOM" else 0.0 |
|
|
|
# Checking for local only |
|
|
|
|
|
|
|
for snd in soundemit.sounds: |
|
|
|
|
|
|
|
if snd.local_only: |
|
|
|
|
|
|
|
msg.setCmd(plAnimCmdMsg.kIsLocalOnly, True) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yield msg |
|
|
|
yield msg |
|
|
|
|
|
|
|
|
|
|
@ -863,10 +858,6 @@ class PlasmaSoundMsgNode(idprops.IDPropObjectMixin, PlasmaMessageWithCallbacksNo |
|
|
|
msg.setCmd(getattr(plSoundMsg, self.looping)) |
|
|
|
msg.setCmd(getattr(plSoundMsg, self.looping)) |
|
|
|
if self.action != "CURRENT": |
|
|
|
if self.action != "CURRENT": |
|
|
|
msg.setCmd(getattr(plSoundMsg, self.action)) |
|
|
|
msg.setCmd(getattr(plSoundMsg, self.action)) |
|
|
|
# Is the sound local? Let's check the modifier... |
|
|
|
|
|
|
|
for snd in soundemit.sounds: |
|
|
|
|
|
|
|
if snd.local_only: |
|
|
|
|
|
|
|
msg.setCmd(plSoundMsg.kIsLocalOnly) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Because we might be giving two messages here... |
|
|
|
# Because we might be giving two messages here... |
|
|
|
yield msg |
|
|
|
yield msg |
|
|
|