Author Topic: Different move sounds for Flying / Walking?  (Read 3792 times)

Offline Wolfstarr

  • Colonel
  • ****
  • Posts: 248
    • View Profile
Different move sounds for Flying / Walking?
« on: November 24, 2018, 04:39:17 am »
Hello everyone,

Was wondering if it is possible to assign different move sounds to a unit in OXCE which can change depending on if it is floating or whether it is walking? E.g. if a unit used a jet pack for example you wouldn’t want the normal walking sound to play.

If not is this something I could request somewhere?

Thanks in advance! :)

SQ

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: Different move sounds for Flying / Walking?
« Reply #1 on: November 24, 2018, 02:40:07 pm »
It's already in the base game. I can't find where in the ruleset the movement sounds are declared, however.

Offline Wolfstarr

  • Colonel
  • ****
  • Posts: 248
    • View Profile
Re: Different move sounds for Flying / Walking?
« Reply #2 on: November 24, 2018, 02:52:28 pm »
I’m sure it was too reaver but I’m stumped :(

Thought there was a floatSound tag or something in the ruleset but can’t see anything obvious.

I have a cool unit I want to showcase later hopefully if I can sort this issue out.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9090
    • View Profile
Re: Different move sounds for Flying / Walking?
« Reply #3 on: November 24, 2018, 04:49:24 pm »
In OXC, the footstep sounds are defined on the map tiles.
The flying sound is a global parameter "flyingSound"... see for example vars.rul in TFTD
There's also "moveSound" on unit level.

In OXCE, there is an additional parameter "moveSound" on armor level: https://openxcom.org/forum/index.php/topic,4187.msg75980.html#msg75980

Offline Wolfstarr

  • Colonel
  • ****
  • Posts: 248
    • View Profile
Re: Different move sounds for Flying / Walking?
« Reply #4 on: November 25, 2018, 01:51:08 pm »
Thanks All :)

You may have seen what I’m trying to achieve on the WIP thread, I have a HWP robot that changes into a plane when it is flying so want a servo sound to play when walking and a jet style sound to play when airborne.  I tried using flyingSound in vars.rul but doesn’t seem to be working :S

Is there a way to run a unit script or something for the actual unit to change the sound?

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: Different move sounds for Flying / Walking?
« Reply #5 on: November 29, 2018, 01:39:33 pm »
Perhaps there should be an attribute called "flySound" for unit or armor.

Offline Wolfstarr

  • Colonel
  • ****
  • Posts: 248
    • View Profile
Re: Different move sounds for Flying / Walking?
« Reply #6 on: December 16, 2018, 02:52:30 am »
That would be ideal reaver! :)