Page 1 of 1

Bind with "voice"

Posted: Thu Jul 08, 2021 5:18 pm UTC
by Marietto
I don't know if I imagined it, but in an alien game I heard a bind "Incoming!" said with a particular voice (on the subject with aliens as sound). Is such a thing possible? Associate a bind with a sound?

Re: Bind with "voice"

Posted: Fri Jul 09, 2021 12:55 pm UTC
by illwieckz
Marietto wrote:I don't know if I imagined it, but in an alien game I heard a bind "Incoming!" said with a particular voice (on the subject with aliens as sound). Is such a thing possible? Associate a bind with a sound?
Yes we have some vsay command, you may investigate the vsay command in the console. Maybe one day we will do a circle menu for them (don't hold your breath though :grin:)…

Note: I moved the thread in General. The Assets & Artwork forum is for tracking and reviewing work-in-progress asset production. :wink:

Re: Bind with "voice"

Posted: Sat Jul 10, 2021 9:04 am UTC
by Gireen
As said on irc it doesn't require much programming skills to add this function. One need only some dedication.

What needs to be done is:

[*]create a lua table of all voice commands and what text should be displayed for them, maybe separated by neutral,aliens and humans
[*]copy the beaconmenu and modify it to use said table instead of beacons

format for the table would look like

Code: Select all

neutral = {
#{"command","displayname"},
{"yes","Yes"},
{"followme","Follow me"}
}

Re: Bind with "voice"

Posted: Sat Jul 10, 2021 10:24 am UTC
by illwieckz
Also we reserved the v key for the voice menu, so one may want to edit the input presets there to uncomment the relevant lines:

github.com/UnvanquishedAssets/unvanquished_src.dpkdir/tree/master/presets/input

given the related action would be named `voiceMenu`.