This commit is contained in:
2021-04-06 16:39:26 +02:00
parent f4f42eee73
commit 9d71fb3306

View File

@@ -63,11 +63,11 @@ export default function animationSync() {
mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1) mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1)
}); });
if (player == mp.players.local) { //block player from using LMB to attack if (player == mp.players.local) { //block player from using LMB to attack
mp.game.controls.disableControlAction(32, 24, true); mp.game.controls.disableControlAction(0, 24, true);
mp.game.controls.disableControlAction(32, 140, true); mp.game.controls.disableControlAction(0, 140, true);
mp.game.controls.disableControlAction(32, 141, true); mp.game.controls.disableControlAction(0, 141, true);
mp.game.controls.disableControlAction(32, 142, true); mp.game.controls.disableControlAction(0, 142, true);
mp.game.controls.disableControlAction(32, 257, true); mp.game.controls.disableControlAction(0, 257, true);
} }
} }
}); });
@@ -77,11 +77,11 @@ export default function animationSync() {
entity.clearTasksImmediately(); entity.clearTasksImmediately();
if (entity == mp.players.local) { //allow player using LMB to attack if (entity == mp.players.local) { //allow player using LMB to attack
mp.game.controls.disableControlAction(32, 24, false); mp.game.controls.disableControlAction(0, 24, false);
mp.game.controls.disableControlAction(32, 140, false); mp.game.controls.disableControlAction(0, 140, false);
mp.game.controls.disableControlAction(32, 141, false); mp.game.controls.disableControlAction(0, 141, false);
mp.game.controls.disableControlAction(32, 142, false); mp.game.controls.disableControlAction(0, 142, false);
mp.game.controls.disableControlAction(32, 257, false); mp.game.controls.disableControlAction(0, 257, false);
} }
if (string == null) { if (string == null) {
@@ -101,11 +101,11 @@ export default function animationSync() {
}); });
if (entity == mp.players.local) { //block player from using LMB to attack if (entity == mp.players.local) { //block player from using LMB to attack
mp.game.controls.disableControlAction(32, 24, true); mp.game.controls.disableControlAction(0, 24, true);
mp.game.controls.disableControlAction(32, 140, true); mp.game.controls.disableControlAction(0, 140, true);
mp.game.controls.disableControlAction(32, 141, true); mp.game.controls.disableControlAction(0, 141, true);
mp.game.controls.disableControlAction(32, 142, true); mp.game.controls.disableControlAction(0, 142, true);
mp.game.controls.disableControlAction(32, 257, true); mp.game.controls.disableControlAction(0, 257, true);
} }
let pair = pairData.find(pair => pair.from == string); let pair = pairData.find(pair => pair.from == string);