talking units

talking units

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
dcore221
Posts: 110
Joined: 09 Jul 2010, 19:53

talking units

Post by dcore221 »

is it possible to make units play .wav audio files at certain times or in certain situations?

i want to make a evil villain style unit that mocks players
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: talking units

Post by CarRepairer »

dcore221 wrote:is it possible to make units play .wav audio files at certain times or in certain situations?

i want to make a evil villain style unit that mocks players
Load up a game of CA and be sure to choose Core as your faction. (If you don't hear voices, hit F11 and enable the Voices widget.)
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: talking units

Post by manolo_ »

xta coms are able to sing (select them and press the sing-button)
User avatar
dcore221
Posts: 110
Joined: 09 Jul 2010, 19:53

Re: talking units

Post by dcore221 »

the ca talking units widget is cool but can the sounds be heard by other players? the unit im making will be an enemy unit so players have to hear it,
i dont want any other units to talk just this one unit,
is there anything i can add to the fbi/lua?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: talking units

Post by knorke »

xta coms singing is heard by enemies
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: talking units

Post by FLOZi »

Note that lua only has Spring.PlaySoundFile and Spring.PlaySoundStream, which lack some of the functionality of COB based unit sounds (which has a param to control who and how will hear it)
User avatar
dcore221
Posts: 110
Joined: 09 Jul 2010, 19:53

Re: talking units

Post by dcore221 »

knorke wrote:xta coms singing is heard by enemies
ano but you have to press a button to make it sing, the unit will be a replacement for the chicken queen it will be controlled by a bot dont see how it could work

is there not some magic code i could put in the lua/fbi file linking to some .wav files with timers?
User avatar
dcore221
Posts: 110
Joined: 09 Jul 2010, 19:53

Re: talking units

Post by dcore221 »

FLOZi wrote:Note that lua only has Spring.PlaySoundFile and Spring.PlaySoundStream, which lack some of the functionality of COB based unit sounds (which has a param to control who and how will hear it)
what do you mean by cob based unit sounds?
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: talking units

Post by FLOZi »

Sounds played via the units animation script (currently only the bos/cob format not lua unit scripts)
Post Reply

Return to “Game Development”