Jump to content

how implement new sounds?


Lion.Kanzen
 Share

Recommended Posts

I have some questions.

Actually I know how implement buildings  alarm.

  1. How implement new trained unit sound? Train healer or military unit
  2. How implement an alarm from existing one? For example from capture relic or make a wonder. (event)
Link to comment
Share on other sites

12 minutes ago, Lion.Kanzen said:

How implement new trained unit sound? Train healer or military unit

  <Sound>
    <SoundGroups>
      ...
      <trained>actor/fauna/animal/goat_trained.xml</trained>
    </SoundGroups>
  </Sound>

 

13 minutes ago, Lion.Kanzen said:

How implement an alarm from existing one? For example from capture relic or make a wonder. (event)

I'm not sure I understand this one...

Link to comment
Share on other sites

Ok i will paste your mp reply, thank you.

Quote

[5:19 a. m., 3/7/2020] Stan Dolcini: Just looked, when a unit is attacked
[5:19 a. m., 3/7/2020] Stan Dolcini: the game plays
[5:19 a. m., 3/7/2020] Stan Dolcini: <attacked>interface/alarm/alarm_attackplayer.xml</attacked>
[5:19 a. m., 3/7/2020] Stan Dolcini: Because
[5:19 a. m., 3/7/2020] Stan Dolcini: in https://github.com/0ad/0ad/blob/4b35ac33f7f30e6bb0a674a6996357a8a75cf1a3/binaries/data/mods/public/simulation/components/AttackDetection.js
[5:19 a. m., 3/7/2020] Stan Dolcini: There is
[5:19 a. m., 3/7/2020] Stan Dolcini: PlaySound("attacked", target);
[5:20 a. m., 3/7/2020] Marcio Duron: Ok
[5:20 a. m., 3/7/2020] Stan Dolcini: I could change there

[5:20 a. m., 3/7/2020] Stan Dolcini: PlaySound(attackerOwner === 0 ? "attacked_gaia" : "attacked", target);

[5:39 a. m., 3/7/2020] Stan Dolcini: So basically
[5:40 a. m., 3/7/2020] Stan Dolcini: normal attack
[5:40 a. m., 3/7/2020] Stan Dolcini: soundGroup = attacked
[5:40 a. m., 3/7/2020] Stan Dolcini: gaia attack
[5:40 a. m., 3/7/2020] Stan Dolcini: soungroup = attacked_gaia
[5:40 a. m., 3/7/2020] Stan Dolcini: capture
[5:40 a. m., 3/7/2020] Stan Dolcini: normal
[5:40 a. m., 3/7/2020] Stan Dolcini: attacked_capture
[5:40 a. m., 3/7/2020] Stan Dolcini: gaia
[5:40 a. m., 3/7/2020] Stan Dolcini: attacked_capture_gaia
[5:41 a. m., 3/7/2020] Stan Dolcini: That means you have to put it in

 

Edited by Lion.Kanzen
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...