mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Fixed SFX for Unarmed Melee (#453)
Fixed a glitch where the player would make a strange axe sound instead of the actual punch/kick sound.
This commit is contained in:
+4
-10
@@ -228,19 +228,13 @@ public class CombatSounds {
|
||||
}
|
||||
|
||||
public static int getWeaponSounds(Player c) {
|
||||
if (c.playerEquipment[c.playerWeapon] <= 0) {
|
||||
return 417;
|
||||
}
|
||||
if (c.playerEquipment[c.playerWeapon] >= 1) {
|
||||
String wep = getItemName(c.playerEquipment[c.playerWeapon])
|
||||
.toLowerCase();
|
||||
if (c.playerEquipment[c.playerWeapon] <= 0) {
|
||||
switch (c.fightMode) {
|
||||
case 0:
|
||||
return 416;
|
||||
case 2:
|
||||
return 417;
|
||||
case 1:
|
||||
return 418;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (c.playerEquipment[c.playerWeapon] == 4718) {// Dharok's
|
||||
// Greataxe
|
||||
|
||||
Reference in New Issue
Block a user