Use the attack sound for attack-move.

And define it (the attack_move sound) in the templates, such that
modders can change it at will.

Patch by: @wowgetoffyourcellphone
Differential revision: https://code.wildfiregames.com/D4364
This was SVN commit r26073.
This commit is contained in:
Freagarach 2021-12-15 07:11:03 +00:00
parent 89c181ded1
commit 5cbdc6c62a
13 changed files with 13 additions and 1 deletions

View File

@ -279,6 +279,7 @@
{ "nick": "vts", "name": "Jeroen DR" },
{ "nick": "wacko", "name": "Andrew Spiering" },
{ "nick": "WhiteTreePaladin", "name": "Brian Ashley" },
{ "nick": "wowgetoffyourcellphone", "name": "Justus Avramenko" },
{ "nick": "wraitii", "name": "Lancelot de Ferrière le Vayer" },
{ "nick": "Xentelian", "name": "Mark Strawson" },
{ "nick": "Xienen", "name": "Dayle Flowers" },

View File

@ -118,7 +118,7 @@ var g_UnitActions =
DrawTargetMarker(target);
Engine.GuiInterfaceCall("PlaySound", {
"name": "order_walk",
"name": "order_attack_move",
"entity": action.firstAbleEntity
});

View File

@ -81,6 +81,7 @@
<SoundGroups>
<attack_slaughter>attack/weapon/sword_attack.xml</attack_slaughter>
<order_attack>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack>
<order_attack_move>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack_move>
<order_garrison>voice/{lang}/civ/civ_{phenotype}_garrison.xml</order_garrison>
<order_gather>voice/{lang}/civ/civ_{phenotype}_gather.xml</order_gather>
<order_walk>voice/{lang}/civ/civ_{phenotype}_walk.xml</order_walk>

View File

@ -29,6 +29,7 @@
<Sound>
<SoundGroups>
<order_attack>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack>
<order_attack_move>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack_move>
<order_garrison>voice/{lang}/civ/civ_{phenotype}_garrison.xml</order_garrison>
<order_gather>voice/{lang}/civ/civ_{phenotype}_gather.xml</order_gather>
<order_walk>voice/{lang}/civ/civ_{phenotype}_walk.xml</order_walk>

View File

@ -48,6 +48,7 @@
<Sound>
<SoundGroups>
<order_attack>voice/global/civ_dog_move.xml</order_attack>
<order_attack_move>voice/global/civ_dog_move.xml</order_attack_move>
<order_walk>voice/global/civ_dog_move.xml</order_walk>
<select>voice/global/civ_dog_bark.xml</select>
<walk>actor/mounted/movement/walk.xml</walk>

View File

@ -41,6 +41,7 @@
<select>actor/fauna/animal/elephant_select.xml</select>
<order_walk>actor/fauna/animal/elephant_order.xml</order_walk>
<order_attack>actor/fauna/animal/elephant_attack_order.xml</order_attack>
<order_attack_move>actor/fauna/animal/elephant_attack_order.xml</order_attack_move>
<order_gather>actor/fauna/animal/elephant_order.xml</order_gather>
<order_garrison>actor/fauna/animal/elephant_order.xml</order_garrison>
<walk>actor/mounted/movement/walk.xml</walk>

View File

@ -5,6 +5,7 @@
<select>voice/global/civ_dog_bark.xml</select>
<order_walk>voice/global/civ_dog_move.xml</order_walk>
<order_attack>voice/global/civ_dog_move.xml</order_attack>
<order_attack_move>voice/global/civ_dog_move.xml</order_attack_move>
<walk>actor/mounted/movement/walk.xml</walk>
<run>actor/mounted/movement/walk.xml</run>
<attack_melee>attack/weapon/sword.xml</attack_melee>

View File

@ -49,6 +49,7 @@
<Sound>
<SoundGroups>
<order_attack>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack>
<order_attack_move>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack_move>
<order_garrison>voice/{lang}/civ/civ_{phenotype}_garrison.xml</order_garrison>
<order_gather>voice/{lang}/civ/civ_{phenotype}_gather.xml</order_gather>
<order_walk>voice/{lang}/civ/civ_{phenotype}_walk.xml</order_walk>

View File

@ -59,6 +59,7 @@
<select>actor/fauna/animal/elephant_select.xml</select>
<order_walk>actor/fauna/animal/elephant_order.xml</order_walk>
<order_attack>actor/fauna/animal/elephant_attack_order.xml</order_attack>
<order_attack_move>actor/fauna/animal/elephant_attack_order.xml</order_attack_move>
<order_gather>actor/fauna/animal/elephant_order.xml</order_gather>
<order_garrison>actor/fauna/animal/elephant_order.xml</order_garrison>
<attack_melee>actor/fauna/animal/elephant_attack.xml</attack_melee>

View File

@ -83,6 +83,7 @@
<SoundGroups>
<attack_slaughter>attack/weapon/knife_attack.xml</attack_slaughter>
<order_attack>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack>
<order_attack_move>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack_move>
<order_build>voice/{lang}/civ/civ_{phenotype}_build.xml</order_build>
<order_garrison>voice/{lang}/civ/civ_{phenotype}_garrison.xml</order_garrison>
<order_gather>voice/{lang}/civ/civ_{phenotype}_gather.xml</order_gather>

View File

@ -61,6 +61,7 @@
<select>actor/ship/ship_select_01.xml</select>
<order_walk>actor/ship/warship_move_01.xml</order_walk>
<order_attack>actor/ship/warship_move_01.xml</order_attack>
<order_attack_move>actor/ship/warship_move_01.xml</order_attack_move>
<order_gather>actor/ship/warship_move_01.xml</order_gather>
<death>actor/ship/warship_death.xml</death>
</SoundGroups>

View File

@ -46,6 +46,7 @@
<select>attack/siege/siege_select.xml</select>
<order_walk>attack/siege/ram_move.xml</order_walk>
<order_attack>attack/siege/ram_move.xml</order_attack>
<order_attack_move>attack/siege/ram_move.xml</order_attack_move>
<trained>attack/siege/ram_trained.xml</trained>
</SoundGroups>
</Sound>

View File

@ -76,6 +76,7 @@
<gather_ruins>resource/mining/mining.xml</gather_ruins>
<invalid_building_placement>interface/alarm/alarm_invalid_building_placement.xml</invalid_building_placement>
<order_attack>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack>
<order_attack_move>voice/{lang}/civ/civ_{phenotype}_attack.xml</order_attack_move>
<order_build>voice/{lang}/civ/civ_{phenotype}_build.xml</order_build>
<order_repair>voice/{lang}/civ/civ_{phenotype}_repair.xml</order_repair>
<trained>interface/alarm/alarm_create_female.xml</trained>