OpenXcom Forum

Modding => Help => Topic started by: Wolfstarr on November 24, 2018, 04:39:17 am

Title: Different move sounds for Flying / Walking?
Post by: Wolfstarr 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
Title: Re: Different move sounds for Flying / Walking?
Post by: The Reaver of Darkness 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.
Title: Re: Different move sounds for Flying / Walking?
Post by: Wolfstarr 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.
Title: Re: Different move sounds for Flying / Walking?
Post by: Meridian 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
Title: Re: Different move sounds for Flying / Walking?
Post by: Wolfstarr 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?
Title: Re: Different move sounds for Flying / Walking?
Post by: The Reaver of Darkness on November 29, 2018, 01:39:33 pm
Perhaps there should be an attribute called "flySound" for unit or armor.
Title: Re: Different move sounds for Flying / Walking?
Post by: Wolfstarr on December 16, 2018, 02:52:30 am
That would be ideal reaver! :)