forked from mirrors/0ad
Add waypoint/rally point feedback sound
Update unit_actions.js Add author of rally sound to credits Two rally click options Use new rally_click sound.
This commit is contained in:
committed by
wowgetoffyourcellphone
parent
56a98fa5ee
commit
15cabcf8fc
Binary file not shown.
Binary file not shown.
@@ -148,6 +148,7 @@
|
||||
{ "nick": "lostchocolatelab", "name": "Damian Kastbauer" },
|
||||
{ "nick": "MattSherman", "name": "Matt Sherman" },
|
||||
{ "nick": "mclellandp", "name": "Pat Mclelland" },
|
||||
{ "nick": "p0ss" },
|
||||
{ "nick": "PhoenixDog", "name": "Shawn Anthony Poxleitner" },
|
||||
{ "nick": "Pureon" },
|
||||
{ "nick": "ryan827", "name": "Ryan Davies" },
|
||||
|
||||
@@ -12,6 +12,11 @@ var g_TargetMarker = {
|
||||
*/
|
||||
var g_FlareSound = "audio/interface/alarm/alarmally_1.ogg";
|
||||
|
||||
/**
|
||||
* Sound we play when setting a waypoint or rally point.
|
||||
*/
|
||||
var g_RallySound = "audio/interface/ui/rally_click_01.ogg";
|
||||
|
||||
/**
|
||||
* Which enemy entity types will be attacked on sight when patroling.
|
||||
*/
|
||||
@@ -1127,6 +1132,8 @@ var g_UnitActions =
|
||||
"queued": queued
|
||||
});
|
||||
|
||||
Engine.PlayUISound(g_RallySound, false);
|
||||
|
||||
// Display rally point at the new coordinates, to avoid display lag
|
||||
Engine.GuiInterfaceCall("DisplayRallyPoint", {
|
||||
"entities": selection,
|
||||
|
||||
Reference in New Issue
Block a user