Permalink
Browse files

Added an incorrect password sound effect.

  • Loading branch information...
Ri5ux committed Nov 5, 2017
1 parent 9503ee1 commit 65281a2da6aae9ffffd830842a5410d13ce7727b
@@ -567,13 +567,18 @@ public void playOpenSound()
public void playUnlockSound()
{
AliensVsPredator.sounds().BLASTDOOR_UNLOCK.playSound(world, pos.getX(), pos.getY(), pos.getZ(), 50F, 1F, false);
AliensVsPredator.sounds().BLASTDOOR_UNLOCK.playSound(world, pos.getX(), pos.getY(), pos.getZ(), 1F, 1F, false);
}
public void playLockSound()
{
AliensVsPredator.sounds().BLASTDOOR_LOCK.playSound(world, pos.getX(), pos.getY(), pos.getZ(), 1F, 1F, false);
}
public void playIncorrectPasswordSound()
{
AliensVsPredator.sounds().ALARM_BUZZER.playSound(world, pos.getX(), pos.getY(), pos.getZ(), 1F, 1F, false);
}
public boolean authenticate(String key)
{
@@ -583,6 +588,10 @@ public boolean authenticate(String key)
this.setOpen(true);
return true;
}
else
{
this.playIncorrectPasswordSound();
}
return false;
}
@@ -52,5 +52,6 @@
"blocks.hive.step": { "sounds": [ "avp:blocks/hive/step0", "avp:blocks/hive/step1", "avp:blocks/hive/step2", "avp:blocks/hive/step3" ] },
"blocks.newglass.step": { "sounds": [ "avp:blocks/newglass/step0", "avp:blocks/newglass/step1", "avp:blocks/newglass/step2", "avp:blocks/newglass/step3" ] },
"blocks.alarm.access": { "sounds": [ "avp:blocks/alarm/access" ] },
"blocks.alarm.buzzer": { "sounds": [ "avp:blocks/alarm/buzzer" ] },
"blocks.alarm.emergency": { "sounds": [ "avp:blocks/alarm/emergency" ] }
}
Binary file not shown.

0 comments on commit 65281a2

Please sign in to comment.