-
Автор темы
- #1
Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:
- бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
- маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
- приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
- обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.
Спасибо!
ну типа да
ss:
ss:
wt:
DragWaterMark dwm = (DragWaterMark) Smertnix.instance.draggableHUD.getDraggableComponentByClass(DragWaterMark.class);
dwm.setWidth(134);
dwm.setHeight(15);
int y = dwm.getY();
Color onecolor = new Color(oneColor.getColorValue());
Color twocolor = new Color(ModuleList.twoColor.getColorValue());
Color a1 = new Color(101, 0, 255);
Color a2 = new Color(3, 24, 250);
Color a3 = new Color(0, 255, 196);
Color a4 = new Color(223, 17, 255);
Color g1 = ColorUtils2.interpolateColorsBackAndForth(15, 270, a4, a1);
Color gg2 = ColorUtils2.interpolateColorsBackAndForth(15, 270, a3, a2);
Color gg3 = ColorUtils2.interpolateColorsBackAndForth(15, 270, g1, gg2);
if (ModuleList.colorList.currentMode.equals("Rainbow")) {
gradientColor1 = ColorUtils.rainbowCol(15, 0, 1, 5);
gradientColor2 = ColorUtils.rainbowCol(15, 90, 1, 5);
gradientColor3 = ColorUtils.rainbowCol(15, 180, 1, 5);
gradientColor4 = ColorUtils.rainbowCol(15, 270, 1, 5);
} else if (ModuleList.colorList.currentMode.equals("Custom")) {
gradientColor1 = ColorUtils2.interpolateColorsBackAndForth(15, 0, onecolor, twocolor);
gradientColor2 = ColorUtils2.interpolateColorsBackAndForth(15, 90, onecolor, twocolor);
gradientColor3 = ColorUtils2.interpolateColorsBackAndForth(15, 180, onecolor, twocolor);
gradientColor4 = ColorUtils2.interpolateColorsBackAndForth(15, 270, onecolor, twocolor);
} else if (ModuleList.colorList.currentMode.equals("Astolfo")) {
gradientColor1 = astolfo(15, 0, 1F, 3f);
gradientColor2 = astolfo(15, 90, 1F, 3f);
gradientColor3 = astolfo(15, 180, 1F, 3f);
gradientColor4 = astolfo(15, 270, 1F, 3f);
} else if (ModuleList.colorList.currentMode.equals("Astolfo 2")) {
gradientColor1 = ColorUtils2.interpolateColorsBackAndForth(15, 0, a1, a2);
gradientColor2 = ColorUtils2.interpolateColorsBackAndForth(15, 90, a3, a4);
gradientColor3 = ColorUtils2.interpolateColorsBackAndForth(15, 180, a1, a2);
gradientColor4 = ColorUtils2.interpolateColorsBackAndForth(15, 270, a3, a4);
} else if (ModuleList.colorList.currentMode.equals("Fade")) {
gradientColor1 = ColorUtils2.interpolateColorsBackAndForth(15, 0, onecolor, Color.BLACK);
gradientColor2 = ColorUtils2.interpolateColorsBackAndForth(15, 90, onecolor, Color.BLACK);
gradientColor3 = ColorUtils2.interpolateColorsBackAndForth(15, 180, onecolor, Color.BLACK);
gradientColor4 = ColorUtils2.interpolateColorsBackAndForth(15, 270, onecolor, Color.BLACK);
}
Color finalgradientColor1 = gradientColor1;
Color finalgradientColor2 = gradientColor2;
Color finalgradientColor3 = gradientColor3;
Color finalgradientColor4 = gradientColor4;
Color colora = ColorUtils.TwoColoreffect(new Color(finalgradientColor4.getRGB()), new Color(finalgradientColor1.getRGB()), Math.abs(System.currentTimeMillis() / 10) / 100.0 + 3.0F * (4 * 2.55) / 60);
Color colora2 = ColorUtils.TwoColoreffect(new Color(finalgradientColor3.getRGB()), new Color(finalgradientColor2.getRGB()), Math.abs(System.currentTimeMillis() / 10) / 100.0 + 3.0F * (4 * 2.55) / 60);
String name = Smertnix.instance.featureManager.getFeature(NameProtect.class).isEnabled() && NameProtect.myName.getCurrentValue() ? "" + "Protected" : "" + Minecraft.player.getName();
final String time = " " + ChatFormatting.WHITE + " | " + name + " | " + ChatFormatting.RESET + "fps - " + Math.round(Minecraft.getDebugFPS());
final String t1 = "S";
final String t2 = " U";
final String t3 = " S";
RenderUtils.drawBlurredShadow(dwm.getX() + 5 + 1.0F, dwm.getY() + 4 + 1.0F, (float) Minecraft.getMinecraft().tenacity17.getStringWidth(time) + 13, dwm.getHeight() - 0.5F, 15, RenderUtils.injectAlpha(ClientHelper.getClientColor(dwm.getY(), 0, 5), 150));
RoundedUtil.drawGradientRound(dwm.getX() + 5, dwm.getY() + 4, (float) Minecraft.getMinecraft().tenacity17.getStringWidth(time) + 13, dwm.getHeight() - 0.5F, 5.0f, ColorUtils2.applyOpacity(finalgradientColor4, 10.85f).brighter(), finalgradientColor1.brighter(), finalgradientColor3.brighter(), finalgradientColor2.brighter());
RoundedUtil.drawRound(dwm.getX() + 5 + 1.0F, dwm.getY() + 4 + 1.0F, (float) Minecraft.getMinecraft().tenacity17.getStringWidth(time) + 13 - 2.0F, dwm.getHeight() - 2.0F - 0.5F, 4.0f, Color.BLACK /*new Color(20, 20, 20, 150)*/);
Minecraft.getMinecraft().tenacity17.drawStringWithShadow("", dwm.getX() + 11, dwm.getY() + 8.5f, -1);
Minecraft.getMinecraft().tenacity17.drawStringWithShadow(time, (float) (dwm.getX() + 9 + Minecraft.getMinecraft().tenacity17.getStringWidth("")), (float) (dwm.getY() + 8), -1);
Minecraft.getMinecraft().tenacity17.drawStringWithShadow(t1, (float) (dwm.getX() + 10 + Minecraft.getMinecraft().tenacity17.getStringWidth("")), (float) (dwm.getY() + 8), gradientColor1.getRGB());
Minecraft.getMinecraft().tenacity17.drawStringWithShadow(t2, (float) (dwm.getX() + 10 + Minecraft.getMinecraft().tenacity17.getStringWidth("")), (float) (dwm.getY() + 8), gradientColor2.getRGB());
Minecraft.getMinecraft().tenacity17.drawStringWithShadow(t3, (float) (dwm.getX() + 11 + Minecraft.getMinecraft().tenacity17.getStringWidth("")), (float) (dwm.getY() + 8), gradientColor3.getRGB());
break;
Radar:
public class Radar extends Module {
public static final NumberSetting size = new NumberSetting("Size", 90, 75, 125, 1);
public final ListSetting colorMode = new ListSetting("Color", "Colored", "Colored", "Dark");
public final ListSetting degree = new ListSetting("Degree", "30", "30", "-30");
private final ColorSetting color1 = new ColorSetting("Color 1", ClientHelper.getClientColor().getRGB());
private final ColorSetting color2 = new ColorSetting("Color 2", ClientHelper.getAlternateClientColor().getRGB());
public final BooleanSetting targets = new BooleanSetting("Players",true,() -> true);
private static NumberSetting xC = new NumberSetting("X",0,-700,700,1);
private static NumberSetting yC = new NumberSetting("Y",0,-700,700,1);
private static NumberSetting xCC = new NumberSetting("X",0,-700,700,1);
private static NumberSetting yCC = new NumberSetting("Y",0,-700,700,1);
private final List<EntityLivingBase> entities = new ArrayList<>();
public Radar() {
super("Radar","Shows entites on a gui", ModuleCategory.Hud);
//color1.addParent(colorMode, modeSetting -> modeSetting.is("Gradient") || modeSetting.is("Analogous"));
//color2.addParent(colorMode, modeSetting -> modeSetting.is("Gradient") && !modeSetting.is("Analogous"));
//degree.addParent(colorMode, modeSetting -> modeSetting.is("Analogous"));
addSettings(colorMode/*, xCC, yCC*/, size);
}
@EventTarget
private void ShaderEvent(ShaderEvent event) {
float x = yC.getCurrentValue(), y = yC.getCurrentValue(), size = this.size.getCurrentValue(), middleX = x + size / 2f, middleY = y + size / 2f;
RoundedUtil.drawRound(x, y, size, size, 6, false, Color.WHITE);
}
private Color gradientColor1 = Color.WHITE, gradientColor2 = Color.WHITE, gradientColor3 = Color.WHITE, gradientColor4 = Color.WHITE;
@EventTarget
private void onRender2D(EventRender2D eventRender2D) {
GlStateManager.pushMatrix();
GlStateManager.translate(-xCC.getCurrentValue(), -yCC.getCurrentValueInt(), 1);
getEntities();
dr dr = (dr) Smertnix.instance.draggableHUD.getDraggableComponentByClass(dr.class);
float x = dr.getX(), y = dr.getY(), size = this.size.getCurrentValue(), middleX = x + size / 2f, middleY = y + size / 2f;
//float x = yC.getCurrentValue(), y = yC.getCurrentValue(), size = this.size.getCurrentValue(), middleX = x + size / 2f, middleY = y + size / 2f;
Color lineColor = new Color(255, 255, 255, 30);
boolean HudMod = true;
if (colorMode.currentMode.equals("Colored")) {
Color onecolor = new Color(oneColor.getColorValue());
Color twocolor = new Color(twoColor.getColorValue());
if (ModuleList.colorList.currentMode.equals("Rainbow")) {
gradientColor1 = ColorUtils.rainbowCol(15, 0, 1, 5);
gradientColor2 = ColorUtils.rainbowCol(15, 90, 1, 5);
gradientColor3 = ColorUtils.rainbowCol(15, 180, 1, 5);
gradientColor4 = ColorUtils.rainbowCol(15, 270, 1, 5);
} else if (ModuleList.colorList.currentMode.equals("Custom")) {
gradientColor1 = ColorUtils2.interpolateColorsBackAndForth(5, 0, onecolor, twocolor);
gradientColor2 = ColorUtils2.interpolateColorsBackAndForth(5, 90, onecolor, twocolor);
gradientColor3 = ColorUtils2.interpolateColorsBackAndForth(5, 180, onecolor, twocolor);
gradientColor4 = ColorUtils2.interpolateColorsBackAndForth(5, 270, onecolor, twocolor);
} else if (ModuleList.colorList.currentMode.equals("Astolfo")) {
gradientColor1 = astolfo(15, 0, 1F, 3f);
gradientColor2 = astolfo(15, 90, 1F, 3f);
gradientColor3 = astolfo(15, 180, 1F, 3f);
gradientColor4 = astolfo(15, 270, 1F, 3f);
} else if (ModuleList.colorList.currentMode.equals("Fade")) {
gradientColor1 = ColorUtils2.interpolateColorsBackAndForth(15, 0, onecolor, Color.BLACK);
gradientColor2 = ColorUtils2.interpolateColorsBackAndForth(15, 90, onecolor, Color.BLACK);
gradientColor3 = ColorUtils2.interpolateColorsBackAndForth(15, 180, onecolor, Color.BLACK);
gradientColor4 = ColorUtils2.interpolateColorsBackAndForth(15, 270, onecolor, Color.BLACK);
}
Color finalgradientColor1 = gradientColor1;
Color finalgradientColor2 = gradientColor2;
Color finalgradientColor3 = gradientColor3;
Color finalgradientColor4 = gradientColor4;
dr drd = (dr) Smertnix.instance.draggableHUD.getDraggableComponentByClass(dr.class);
drd.setWidth(Radar.size.getCurrentValueInt());
drd.setHeight(Radar.size.getCurrentValueInt());
RenderUtils.drawBlurredShadow(drd.getX() + 1, drd.getY() + 1, drd.getWidth() - 2, drd.getHeight() - 2 - 0.5F, 15, gradientColor1);
RoundedUtil.drawGradientRound(drd.getX(), drd.getY(), drd.getWidth(), drd.getHeight() - 0.5F, 6, ColorUtils2.applyOpacity(gradientColor4, 10.85f).brighter(), gradientColor1.brighter(), gradientColor3.brighter(), gradientColor2.brighter());
RoundedUtil.drawGradientRound(drd.getX() + 1, drd.getY() + 1, drd.getWidth() - 2, drd.getHeight() - 2 - 0.5F, 6, ColorUtils2.applyOpacity(gradientColor4, 10.85f).darker(), gradientColor1.darker(), gradientColor3.darker(), gradientColor2.darker());
} else if (colorMode.currentMode.equals("Dark")){
Color onecolor = new Color(oneColor.getColorValue());
Color twocolor = new Color(twoColor.getColorValue());
if (ModuleList.colorList.currentMode.equals("Rainbow")) {
gradientColor1 = ColorUtils.rainbowCol(15, 0, 1, 5);
gradientColor2 = ColorUtils.rainbowCol(15, 90, 1, 5);
gradientColor3 = ColorUtils.rainbowCol(15, 180, 1, 5);
gradientColor4 = ColorUtils.rainbowCol(15, 270, 1, 5);
} else if (ModuleList.colorList.currentMode.equals("Custom")) {
gradientColor1 = ColorUtils2.interpolateColorsBackAndForth(5, 0, onecolor, twocolor);
gradientColor2 = ColorUtils2.interpolateColorsBackAndForth(5, 90, onecolor, twocolor);
gradientColor3 = ColorUtils2.interpolateColorsBackAndForth(5, 180, onecolor, twocolor);
gradientColor4 = ColorUtils2.interpolateColorsBackAndForth(5, 270, onecolor, twocolor);
} else if (ModuleList.colorList.currentMode.equals("Astolfo")) {
gradientColor1 = astolfo(15, 0, 1F, 3f);
gradientColor2 = astolfo(15, 90, 1F, 3f);
gradientColor3 = astolfo(15, 180, 1F, 3f);
gradientColor4 = astolfo(15, 270, 1F, 3f);
} else if (ModuleList.colorList.currentMode.equals("Fade")) {
gradientColor1 = ColorUtils2.interpolateColorsBackAndForth(15, 0, onecolor, Color.BLACK);
gradientColor2 = ColorUtils2.interpolateColorsBackAndForth(15, 90, onecolor, Color.BLACK);
gradientColor3 = ColorUtils2.interpolateColorsBackAndForth(15, 180, onecolor, Color.BLACK);
gradientColor4 = ColorUtils2.interpolateColorsBackAndForth(15, 270, onecolor, Color.BLACK);
}
Color finalgradientColor1 = gradientColor1;
Color finalgradientColor2 = gradientColor2;
Color finalgradientColor3 = gradientColor3;
Color finalgradientColor4 = gradientColor4;
dr drd = (dr) Smertnix.instance.draggableHUD.getDraggableComponentByClass(dr.class);
drd.setWidth(Radar.size.getCurrentValueInt());
drd.setHeight(Radar.size.getCurrentValueInt());
RenderUtils.drawBlurredShadow(drd.getX() + 1, drd.getY() + 1, drd.getWidth() - 2, drd.getHeight() - 2 - 0.5F, 15, gradientColor1);
RoundedUtil.drawGradientRound(drd.getX(), drd.getY(), drd.getWidth(), drd.getHeight() - 0.5F, 6/*, new Color(10, 10, 10, 80), new Color(-2)*/, ColorUtils2.applyOpacity(gradientColor4, 10.85f).brighter(), gradientColor1.brighter(), gradientColor3.brighter(), gradientColor2.brighter());
RoundedUtil.drawRound(drd.getX() + 1, drd.getY() + 1, drd.getWidth() - 2, drd.getHeight() - 2 - 0.5F, 6/*, new Color(10, 10, 10, 80), new Color(-2)*/, Color.BLACK);
}
{
Gui.drawRect2(x - 1, y + (size / 2f - .5), size + 2, 1, lineColor.getRGB());
Gui.drawRect2(x + (size / 2f - .5), y - 1, 1, size + 2, lineColor.getRGB());
}/*else {
Gui.drawRect2(x + 1, y + (size / 2f - .5), size - 2, 1, lineColor.getRGB());
Gui.drawRect2(x + (size / 2f - .5), y + 1, 1, size - 2, lineColor.getRGB());
}*/
StencilUtil.initStencilToWrite();
RenderUtils.renderRoundedRect(x, y, size, size, 6, -1);
StencilUtil.readStencilBuffer(1);
GLUtil.rotate(middleX, middleY, Minecraft.player.rotationYaw, () -> {
for (EntityLivingBase entity : entities) {
double xDiff = MathUtils.interpolate(entity.prevPosX, entity.posX, Minecraft.timer.renderPartialTicks) - MathUtils.interpolate(Minecraft.player.prevPosX, Minecraft.player.posX, Minecraft.timer.renderPartialTicks);
double zDiff = MathUtils.interpolate(entity.prevPosZ, entity.posZ, Minecraft.timer.renderPartialTicks) - MathUtils.interpolate(Minecraft.player.prevPosZ, Minecraft.player.posZ, Minecraft.timer.renderPartialTicks);
if ((xDiff + zDiff) < (size / 2f)) {
float translatedX = (float) (middleX - xDiff);
float translatedY = (float) (middleY - zDiff);
RoundedUtil.drawRound(translatedX, translatedY, 3, 3, 1f, new Color(255, 255, 255, 255));
//Gui.drawRect2(translatedX, translatedY, 3, 3, -1);
}
}
});
StencilUtil.uninitStencilBuffer();
GlStateManager.popMatrix();
}
public void getEntities() {
entities.clear();
for (Entity entity : Minecraft.world.loadedEntityList) {
if (entity instanceof EntityLivingBase) {
if (entity instanceof EntityPlayer && entity != null && !entity.isInvisible()) {
entities.add((EntityLivingBase) entity);
}
}
}
}
@Override
public void onEnable() {
super.onEnable();
}
}
Последнее редактирование: