Bind with "voice"

Talk about anything related to Unvanquished.
Post Reply
Marietto
Posts: 18
Joined: Fri Apr 09, 2021 4:10 pm UTC

Bind with "voice"

Post 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?
User avatar
illwieckz
Project Head
Posts: 717
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: Bind with "voice"

Post 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:

This comment is licensed under cc ​​by 4 and antecedent.

User avatar
Gireen
Graphic Designer
Posts: 295
Joined: Wed Mar 07, 2012 1:26 pm UTC
Clan: [DoH]
Location: Germany
Contact:

Re: Bind with "voice"

Post 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"}
}

fear ma engrish :granger:

User avatar
illwieckz
Project Head
Posts: 717
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Re: Bind with "voice"

Post 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`.

This comment is licensed under cc ​​by 4 and antecedent.

Post Reply