Files

619 B
Raw Permalink Blame History

TelekinesiLal.js — tickHold() (satır 259)

← TelekinesiLal.js · ← Master

function tickHold(c, w, owner, target, s) {
    s.tick++;
    var hp = holdPoint(owner, s.tick);

    breakBodyBlocks(w, s, hp.x, hp.y, hp.z, HOLD_BREAKS_PER_TICK);
    target.setPosition(hp.x, hp.y, hp.z);
    lockHard(target, hp.x, hp.y, hp.z);
    noMotion(target);

    if (s.tick % 4 === 0) {
        targetAuraFx(w, hp.x, hp.y, hp.z, s.tick);
    }

    if (s.tick % 20 === 0) {
        w.playSound(SOUND_HOLD, hp.x, hp.y + 1.0, hp.z, 0.25, 1.55);
    }
}