47 lines
1.6 KiB
Markdown
47 lines
1.6 KiB
Markdown
# ezoic_viltrumite.js — doSpeedBlitz() (satır 790)
|
||
|
||
[← ezoic_viltrumite.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
Parça 2/2 · [önceki](doSpeedBlitz.md)
|
||
|
||
```javascript
|
||
ww.playSound("minecraft:entity.enderdragon.flap", startPos.x, startPos.y, startPos.z, 1.5, 1.5);
|
||
spawnFx(ww, "cloud", startPos.x, startPos.y + 0.5, startPos.z, 15, 0.5, 0.5, 0.5, 0.05);
|
||
return;
|
||
}
|
||
|
||
var t = targets[idx];
|
||
if (t && t.isLivingBase() && t.getHp() > 0) {
|
||
var tpos = t.getPosition();
|
||
var look = t.getLook();
|
||
|
||
// Hedefin arkasına ışınlan
|
||
var bx = tpos.x - look.x * 1.5;
|
||
var by = tpos.y;
|
||
var bz = tpos.z - look.z * 1.5;
|
||
|
||
pp.setPosition(bx, by, bz);
|
||
pp.setMotion(0, 0, 0);
|
||
pp.setFallDistance(0);
|
||
pp.swingArm();
|
||
|
||
// Hasar ver + fırlat
|
||
t.damage(15);
|
||
t.addMotion(look.x * 1.5, 0.4, look.z * 1.5);
|
||
|
||
// Efektler
|
||
ww.playSound("minecraft:entity.generic.explode", tpos.x, tpos.y, tpos.z, 1.0, 1.6);
|
||
ww.playSound("minecraft:entity.blaze.shoot", tpos.x, tpos.y, tpos.z, 1.5, 1.5);
|
||
spawnFx(ww, "sweepAttack", tpos.x, tpos.y + 1, tpos.z, 1, 0, 0, 0, 0);
|
||
spawnFx(ww, "fireworksSpark", tpos.x, tpos.y + 1, tpos.z, 4, 0.1, 0.1, 0.1, 0.05);
|
||
spawnFx(ww, "cloud", tpos.x, tpos.y + 0.5, tpos.z, 3, 0.2, 0.2, 0.2, 0.02);
|
||
}
|
||
|
||
idx++;
|
||
ctx.scheduleScript(2, blitzNext);
|
||
}
|
||
|
||
c.scheduleScript(1, blitzNext);
|
||
}
|
||
```
|