test
This commit is contained in:
@@ -64,13 +64,12 @@
|
|||||||
let index = mp.game.joaat(player.getVariable("AnimationData"));
|
let index = mp.game.joaat(player.getVariable("AnimationData"));
|
||||||
let currentAnim = animationSyncData.animations[index];
|
let currentAnim = animationSyncData.animations[index];
|
||||||
let { id, name, animDict, animName, duration, loop, flag } = currentAnim;
|
let { id, name, animDict, animName, duration, loop, flag } = currentAnim;
|
||||||
let pair = pairData.find(pair => pair.from == name);
|
|
||||||
|
|
||||||
if (loop && !player.isPlayingAnim(animDict, animName, 3) && pair) {
|
if (loop && !player.isPlayingAnim(animDict, animName, 3)) {
|
||||||
loadAnimDict(animDict, function () {
|
loadAnimDict(animDict, function () {
|
||||||
mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1)
|
mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1)
|
||||||
});
|
});
|
||||||
} else if (!loop && player.isPlayingAnim(animDict, animName, 3)) {
|
} else if (!loop) {
|
||||||
let a = setInterval(function () {
|
let a = setInterval(function () {
|
||||||
if (player == mp.players.local) {
|
if (player == mp.players.local) {
|
||||||
mp.events.callRemote("CLIENT:ClearAnimationData", player);
|
mp.events.callRemote("CLIENT:ClearAnimationData", player);
|
||||||
@@ -112,6 +111,7 @@
|
|||||||
|
|
||||||
mp.events.add("render", () => {
|
mp.events.add("render", () => {
|
||||||
if (blockInput) {
|
if (blockInput) {
|
||||||
|
mp.game.controls.disableControlAction(32, 25, true);
|
||||||
mp.game.controls.disableControlAction(32, 24, true);
|
mp.game.controls.disableControlAction(32, 24, true);
|
||||||
mp.game.controls.disableControlAction(32, 22, true);
|
mp.game.controls.disableControlAction(32, 22, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user