Files

41 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.
# ezoic_radyasyon.js — runSlam() (satır 471)
[← ezoic_radyasyon.js](index.md) · [← Master](../../wiki.md)
Parça 2/3 · [önceki](runSlam.md) · [sonraki](runSlam-3.md)
```javascript
var de = dd < 0.01 ? 0.01 : dd;
ent.addMotion((hx / de) * 2.6, 1.3, (hz / de) * 2.6);
ent.setFallDistance(0);
ent.executeCommand("/mp event trigger @s ezodm2");
var ep2 = ent.getPosition();
spawnFx(cc.getWorld(), "largeexplode", ep2.x, ep2.y + 1, ep2.z, 1, 0.2, 0.2, 0.2, 0.0);
spawnFx(cc.getWorld(), "happyVillager", ep2.x, ep2.y + 1, ep2.z, 12, 0.5, 1.0, 0.5, 0.1);
});
})(e, dx, dz, dist);
}
// Dalga halkası dışa yayılır
var waveT = 0;
function waveLoop(wctx) {
if (waveT * step >= OUTER_RADIUS) return;
var ww2 = wctx.getWorld();
var r = waveT * step;
var pts = Math.min(56, Math.floor(10 + r * 1.6));
for (var i = 0; i < pts; i++) {
var a = (i / pts) * Math.PI * 2;
var rx = cx + Math.cos(a) * r;
var rz = cz + Math.sin(a) * r;
if (r <= INNER_RADIUS) {
spawnFx(ww2, "happyVillager", rx, cy + 0.5, rz, 3, 0.2, 0.8, 0.2, 0.05);
spawnFx(ww2, "endRod", rx, cy + 0.3, rz, 2, 0.1, 0.5, 0.1, 0.08);
spawnFx(ww2, "dragonbreath", rx, cy + 0.5, rz, 2, 0.3, 0.5, 0.3, 0.02);
if (i % 4 === 0) spawnFx(ww2, "largesmoke", rx, cy + 0.3, rz, 1, 0.3, 0.3, 0.3, 0.02);
} else {
// Dışta seyreklesir
spawnFx(ww2, "happyVillager", rx, cy + 0.5, rz, 1, 0.2, 0.4, 0.2, 0.02);
```