Привет Бро кароче смотри вот моя Killaura.java package com.Ananas.Modules; import…
- User
Привет Бро кароче смотри вот моя Killaura.java package com.Ananas.Modules;
import com.Ananas.ModuleSystem.Module; import com.Ananas.ModuleSystem.Category; import com.Ananas.Utils.TimerUtils; import net.minecraft.client.Minecraft; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.EnumHand; import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.RayTraceResult; import net.minecraft.util.math.Vec3d; import org.lwjgl.input.Keyboard;
import java.util.Random;
public class KillAura extends Module { private TimerUtils timer; private float range = 3.0f; private long minCPS = 8; private long maxCPS = 12; private boolean multi = false; private float fov = 90.0f; private boolean silentSwing = true; private boolean losCheck = true; private final Random random = new Random(); private Minecraft mc = Minecraft.getMinecraft();
public KillAura() { super("KillAura", Keyboard.KEY_R, Category.Combat); }
// Геттеры public float getRange() { return range; }
public long getMinCPS() { return minCPS; }
public long getMaxCPS() { return maxCPS; }
public boolean getMulti() { return multi; }
public float getFov() { return fov; }
public boolean getSilentSwing() { return silentSwing; }
public boolean getLosCheck() { return losCheck; }
// Сеттеры public void setRange(float range) { this.range = range; }
public void setMinCPS(long minCPS) { this.minCPS = minCPS; }
public void setMaxCPS(long maxCPS) { this.maxCPS = maxCPS; }
public void setMulti(boolean multi) { this.multi = multi; }
public void setFov(float fov) { this.fov = fov; }
public void setSilentSwing(boolean silentSwing) { this.silentSwing = silentSwing; }
public void setLosCheck(boolean losCheck) { this.losCheck = losCheck; }
@Override public void onEnable() { this.timer = new TimerUtils(); }
@Override public void onUpdate() { if (!this.isEnabled() || mc.player == null || mc.world == null) return;
long delay = (long) (1000.0 / (minCPS + random.nextFloat() * (maxCPS - minCPS)));
if (timer.check(delay)) { for (Entity ent : mc.world.loadedEntityList) { if (isValidTarget(ent)) { faceEntity(ent); attackEntity(ent); if (!multi) break; } } timer.reset(); } }
private boolean isValidTarget(Entity entity) { if (!(entity instanceof EntityPlayer) || entity == mc.player) return false; if (entity.isDead || ((EntityLivingBase) entity).getHealth() <= 0) return false; if (mc.player.getDistanceToEntity(entity) > range) return false; if (!isInFov(entity)) return false; if (losCheck && !canEntityBeSeen(entity)) return false; if (((EntityPlayer) entity).isInvisible()) return false; return true; }
private boolean isInFov(Entity entity) { double angle = getAngleToEntity(entity); return Math.abs(angle) <= fov; }
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.