Files

42 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Hector_Tudors.js — cast_titan() (satır 1410)
[← Hector_Tudors.js](index.md) · [← Master](../../wiki.md)
Parça 1/2 · [sonraki](cast_titan-2.md)
```javascript
function cast_titan(c) {
var p = c.getPlayer(); if (!p) return;
if (guard(p, "titan")) return;
var w = c.getWorld(), a = aimPoint(p, 30);
title(p, "§5§lDEV TİTAN", "§dçağrıldı!");
w.playSound("minecraft:entity.elder_guardian.curse", a.x, a.y, a.z, 3, 0.4);
var t = 0, RISE = 16;
function loop(ctx) {
var ww = ctx.getWorld(), caster = ctx.getPlayer();
if (t < RISE) {
var prog = t / RISE;
showAvatar(ww, a.x, a.y, a.z, (t * 12) % 360, 2); // gövde (avatar)
showHead(ww, a.x, a.y + 2.4 + prog * 3.0, a.z, 2 + prog * 8, 2); // dev kafa yükselir
fx(ww, "largesmoke", a.x, a.y, a.z, 20, 1.5, 0.4, 1.5, 0.03);
if (t % 4 === 0) ww.playSound("minecraft:block.anvil.land", a.x, a.y, a.z, 1.5, 0.5);
t++; ctx.scheduleScript(2, loop); return;
}
ww.playSound("minecraft:entity.generic.explode", a.x, a.y, a.z, 4, 0.4);
ww.playSound("minecraft:block.anvil.land", a.x, a.y, a.z, 3, 0.4);
showHead(ww, a.x, a.y + 5, a.z, 10, 4);
boom(ww, a.x, a.y, a.z, 7);
for (var ring = 0; ring < 8; ring++) {
(function (start) {
ctx.scheduleScript(start, function (cc) {
var w2 = cc.getWorld(), rr = 2 + start * 1.5;
for (var j = 0; j < 14; j++) {
var aa = (j / 14) * Math.PI * 2;
showHead(w2, a.x + Math.cos(aa) * rr, a.y + 0.5, a.z + Math.sin(aa) * rr, 1.3, 2);
}
});
})(ring);
}
```