Исходник Arrows/Triangle Skid Nurik | Expensive 3.1 ready

Начинающий
Статус
Оффлайн
Регистрация
5 Апр 2023
Сообщения
343
Реакции[?]
0
Поинты[?]
1K
ну крч делал стрелочки как в нурике вот и всё

Код:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.command.friends.FriendStorage;
import im.expensive.events.EventDisplay;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.utils.math.MathUtil;
import im.expensive.utils.player.MoveUtils;
import im.expensive.utils.player.PlayerUtils;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.entity.player.AbstractClientPlayerEntity;
import net.minecraft.client.gui.screen.inventory.InventoryScreen;
import net.minecraft.client.settings.PointOfView;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.MathHelper;
import org.lwjgl.opengl.GL11;

import java.awt.*;

@FunctionRegister(name = "Triangle", type = Category.Render)
public class Pointers extends Function {

public float animationStep;

private float lastYaw;
private float lastPitch;

private float animatedYaw;
private float animatedPitch;

@Subscribe
public void onDisplay(EventDisplay e) {
if (mc.player == null || mc.world == null || e.getType() != EventDisplay.Type.PRE) {
return;
}

animatedYaw = MathUtil.fast(animatedYaw, (mc.player.moveStrafing) * 10,
5);
animatedPitch = MathUtil.fast(animatedPitch,
(mc.player.moveForward) * 10, 5);

float size = 70;

if (mc.currentScreen instanceof InventoryScreen) {
size += 80;
}

if (MoveUtils.isMoving()) {
size += 10;
}
animationStep = MathUtil.fast(animationStep, size, 6);
if (mc.gameSettings.getPointOfView() == PointOfView.FIRST_PERSON) {
for (AbstractClientPlayerEntity player : mc.world.getPlayers()) {
if (!PlayerUtils.isNameValid(player.getNameClear()) || mc.player == player)
continue;

double x = player.lastTickPosX + (player.getPosX() - player.lastTickPosX) * mc.getRenderPartialTicks()
- mc.getRenderManager().info.getProjectedView().getX();
double z = player.lastTickPosZ + (player.getPosZ() - player.lastTickPosZ) * mc.getRenderPartialTicks()
- mc.getRenderManager().info.getProjectedView().getZ();

double cos = MathHelper.cos((float) (mc.getRenderManager().info.getYaw() * (Math.PI * 2 / 360)));
double sin = MathHelper.sin((float) (mc.getRenderManager().info.getYaw() * (Math.PI * 2 / 360)));
double rotY = -(z * cos - x * sin);
double rotX = -(x * cos + z * sin);

float angle = (float) (Math.atan2(rotY, rotX) * 180 / Math.PI);

double x2 = animationStep * MathHelper.cos((float) Math.toRadians(angle)) + window.getScaledWidth() / 2f;
double y2 = animationStep * MathHelper.sin((float) Math.toRadians(angle)) + window.getScaledHeight() / 2f;

x2 += animatedYaw;
y2 += animatedPitch;

GlStateManager.pushMatrix();
GlStateManager.disableBlend();
GlStateManager.translated(x2, y2, 0);
GlStateManager.rotatef(angle, 0, 0, 1);

int color = FriendStorage.isFriend(player.getGameProfile().getName()) ? FriendStorage.getColor() : ColorUtils.rgb(255,255,255);
//ColorUtils.getColor(1);

DisplayUtils.drawShadowCircle(1, 0, 14, ColorUtils.setAlpha(color, 255));

drawTriangle(-4, -1F, 4F, 7F, new Color(0, 0, 0, 32));
drawTriangle(-3F, 0F, 3F, 5F, new Color(color));

GlStateManager.enableBlend();
GlStateManager.popMatrix();
}
}
lastYaw = mc.player.rotationYaw;
lastPitch = mc.player.rotationPitch;
}

public static void drawTriangle(float x, float y, float width, float height, Color color) {

DisplayUtils.drawImage(new ResourceLocation("expensive/images/triangle.png"), -8.0F, -9.0F, 18.0F, 18.0F, -1);

GL11.glPushMatrix();
GL11.glPopMatrix();
}
}
картинка = triangle.png

ss= 1715609823378.png

100% будет в диамонд клиент
 
Начинающий
Статус
Оффлайн
Регистрация
24 Авг 2022
Сообщения
41
Реакции[?]
0
Поинты[?]
0
Дам совет для тех кто будет это пастить, просто уберите DisplayUtils.drawShadow и всё
 
Начинающий
Статус
Оффлайн
Регистрация
2 Фев 2024
Сообщения
17
Реакции[?]
0
Поинты[?]
0
ну крч делал стрелочки как в нурике вот и всё

Код:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.command.friends.FriendStorage;
import im.expensive.events.EventDisplay;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.utils.math.MathUtil;
import im.expensive.utils.player.MoveUtils;
import im.expensive.utils.player.PlayerUtils;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.entity.player.AbstractClientPlayerEntity;
import net.minecraft.client.gui.screen.inventory.InventoryScreen;
import net.minecraft.client.settings.PointOfView;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.MathHelper;
import org.lwjgl.opengl.GL11;

import java.awt.*;

@FunctionRegister(name = "Triangle", type = Category.Render)
public class Pointers extends Function {

public float animationStep;

private float lastYaw;
private float lastPitch;

private float animatedYaw;
private float animatedPitch;

@Subscribe
public void onDisplay(EventDisplay e) {
if (mc.player == null || mc.world == null || e.getType() != EventDisplay.Type.PRE) {
return;
}

animatedYaw = MathUtil.fast(animatedYaw, (mc.player.moveStrafing) * 10,
5);
animatedPitch = MathUtil.fast(animatedPitch,
(mc.player.moveForward) * 10, 5);

float size = 70;

if (mc.currentScreen instanceof InventoryScreen) {
size += 80;
}

if (MoveUtils.isMoving()) {
size += 10;
}
animationStep = MathUtil.fast(animationStep, size, 6);
if (mc.gameSettings.getPointOfView() == PointOfView.FIRST_PERSON) {
for (AbstractClientPlayerEntity player : mc.world.getPlayers()) {
if (!PlayerUtils.isNameValid(player.getNameClear()) || mc.player == player)
continue;

double x = player.lastTickPosX + (player.getPosX() - player.lastTickPosX) * mc.getRenderPartialTicks()
- mc.getRenderManager().info.getProjectedView().getX();
double z = player.lastTickPosZ + (player.getPosZ() - player.lastTickPosZ) * mc.getRenderPartialTicks()
- mc.getRenderManager().info.getProjectedView().getZ();

double cos = MathHelper.cos((float) (mc.getRenderManager().info.getYaw() * (Math.PI * 2 / 360)));
double sin = MathHelper.sin((float) (mc.getRenderManager().info.getYaw() * (Math.PI * 2 / 360)));
double rotY = -(z * cos - x * sin);
double rotX = -(x * cos + z * sin);

float angle = (float) (Math.atan2(rotY, rotX) * 180 / Math.PI);

double x2 = animationStep * MathHelper.cos((float) Math.toRadians(angle)) + window.getScaledWidth() / 2f;
double y2 = animationStep * MathHelper.sin((float) Math.toRadians(angle)) + window.getScaledHeight() / 2f;

x2 += animatedYaw;
y2 += animatedPitch;

GlStateManager.pushMatrix();
GlStateManager.disableBlend();
GlStateManager.translated(x2, y2, 0);
GlStateManager.rotatef(angle, 0, 0, 1);

int color = FriendStorage.isFriend(player.getGameProfile().getName()) ? FriendStorage.getColor() : ColorUtils.rgb(255,255,255);
//ColorUtils.getColor(1);

DisplayUtils.drawShadowCircle(1, 0, 14, ColorUtils.setAlpha(color, 255));

drawTriangle(-4, -1F, 4F, 7F, new Color(0, 0, 0, 32));
drawTriangle(-3F, 0F, 3F, 5F, new Color(color));

GlStateManager.enableBlend();
GlStateManager.popMatrix();
}
}
lastYaw = mc.player.rotationYaw;
lastPitch = mc.player.rotationPitch;
}

public static void drawTriangle(float x, float y, float width, float height, Color color) {

DisplayUtils.drawImage(new ResourceLocation("expensive/images/triangle.png"), -8.0F, -9.0F, 18.0F, 18.0F, -1);

GL11.glPushMatrix();
GL11.glPopMatrix();
}
}
картинка = Посмотреть вложение 276763

ss= Посмотреть вложение 276765

100% будет в диамонд клиент
Вырвите мне глазки плиз хотя сами стрелки не плохи
 
Начинающий
Статус
Оффлайн
Регистрация
29 Апр 2023
Сообщения
209
Реакции[?]
1
Поинты[?]
2K
ну крч делал стрелочки как в нурике вот и всё

Код:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.command.friends.FriendStorage;
import im.expensive.events.EventDisplay;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.utils.math.MathUtil;
import im.expensive.utils.player.MoveUtils;
import im.expensive.utils.player.PlayerUtils;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.entity.player.AbstractClientPlayerEntity;
import net.minecraft.client.gui.screen.inventory.InventoryScreen;
import net.minecraft.client.settings.PointOfView;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.MathHelper;
import org.lwjgl.opengl.GL11;

import java.awt.*;

@FunctionRegister(name = "Triangle", type = Category.Render)
public class Pointers extends Function {

public float animationStep;

private float lastYaw;
private float lastPitch;

private float animatedYaw;
private float animatedPitch;

@Subscribe
public void onDisplay(EventDisplay e) {
if (mc.player == null || mc.world == null || e.getType() != EventDisplay.Type.PRE) {
return;
}

animatedYaw = MathUtil.fast(animatedYaw, (mc.player.moveStrafing) * 10,
5);
animatedPitch = MathUtil.fast(animatedPitch,
(mc.player.moveForward) * 10, 5);

float size = 70;

if (mc.currentScreen instanceof InventoryScreen) {
size += 80;
}

if (MoveUtils.isMoving()) {
size += 10;
}
animationStep = MathUtil.fast(animationStep, size, 6);
if (mc.gameSettings.getPointOfView() == PointOfView.FIRST_PERSON) {
for (AbstractClientPlayerEntity player : mc.world.getPlayers()) {
if (!PlayerUtils.isNameValid(player.getNameClear()) || mc.player == player)
continue;

double x = player.lastTickPosX + (player.getPosX() - player.lastTickPosX) * mc.getRenderPartialTicks()
- mc.getRenderManager().info.getProjectedView().getX();
double z = player.lastTickPosZ + (player.getPosZ() - player.lastTickPosZ) * mc.getRenderPartialTicks()
- mc.getRenderManager().info.getProjectedView().getZ();

double cos = MathHelper.cos((float) (mc.getRenderManager().info.getYaw() * (Math.PI * 2 / 360)));
double sin = MathHelper.sin((float) (mc.getRenderManager().info.getYaw() * (Math.PI * 2 / 360)));
double rotY = -(z * cos - x * sin);
double rotX = -(x * cos + z * sin);

float angle = (float) (Math.atan2(rotY, rotX) * 180 / Math.PI);

double x2 = animationStep * MathHelper.cos((float) Math.toRadians(angle)) + window.getScaledWidth() / 2f;
double y2 = animationStep * MathHelper.sin((float) Math.toRadians(angle)) + window.getScaledHeight() / 2f;

x2 += animatedYaw;
y2 += animatedPitch;

GlStateManager.pushMatrix();
GlStateManager.disableBlend();
GlStateManager.translated(x2, y2, 0);
GlStateManager.rotatef(angle, 0, 0, 1);

int color = FriendStorage.isFriend(player.getGameProfile().getName()) ? FriendStorage.getColor() : ColorUtils.rgb(255,255,255);
//ColorUtils.getColor(1);

DisplayUtils.drawShadowCircle(1, 0, 14, ColorUtils.setAlpha(color, 255));

drawTriangle(-4, -1F, 4F, 7F, new Color(0, 0, 0, 32));
drawTriangle(-3F, 0F, 3F, 5F, new Color(color));

GlStateManager.enableBlend();
GlStateManager.popMatrix();
}
}
lastYaw = mc.player.rotationYaw;
lastPitch = mc.player.rotationPitch;
}

public static void drawTriangle(float x, float y, float width, float height, Color color) {

DisplayUtils.drawImage(new ResourceLocation("expensive/images/triangle.png"), -8.0F, -9.0F, 18.0F, 18.0F, -1);

GL11.glPushMatrix();
GL11.glPopMatrix();
}
}
картинка = Посмотреть вложение 276763

ss= Посмотреть вложение 276765

100% будет в диамонд клиент
ебать ты туда глоу нахуярил,а так +rep ,ждем в даймонде
 
Начинающий
Статус
Оффлайн
Регистрация
22 Фев 2024
Сообщения
71
Реакции[?]
2
Поинты[?]
2K
ну крч делал стрелочки как в нурике вот и всё

Код:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.command.friends.FriendStorage;
import im.expensive.events.EventDisplay;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.utils.math.MathUtil;
import im.expensive.utils.player.MoveUtils;
import im.expensive.utils.player.PlayerUtils;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.entity.player.AbstractClientPlayerEntity;
import net.minecraft.client.gui.screen.inventory.InventoryScreen;
import net.minecraft.client.settings.PointOfView;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.MathHelper;
import org.lwjgl.opengl.GL11;

import java.awt.*;

@FunctionRegister(name = "Triangle", type = Category.Render)
public class Pointers extends Function {

public float animationStep;

private float lastYaw;
private float lastPitch;

private float animatedYaw;
private float animatedPitch;

@Subscribe
public void onDisplay(EventDisplay e) {
if (mc.player == null || mc.world == null || e.getType() != EventDisplay.Type.PRE) {
return;
}

animatedYaw = MathUtil.fast(animatedYaw, (mc.player.moveStrafing) * 10,
5);
animatedPitch = MathUtil.fast(animatedPitch,
(mc.player.moveForward) * 10, 5);

float size = 70;

if (mc.currentScreen instanceof InventoryScreen) {
size += 80;
}

if (MoveUtils.isMoving()) {
size += 10;
}
animationStep = MathUtil.fast(animationStep, size, 6);
if (mc.gameSettings.getPointOfView() == PointOfView.FIRST_PERSON) {
for (AbstractClientPlayerEntity player : mc.world.getPlayers()) {
if (!PlayerUtils.isNameValid(player.getNameClear()) || mc.player == player)
continue;

double x = player.lastTickPosX + (player.getPosX() - player.lastTickPosX) * mc.getRenderPartialTicks()
- mc.getRenderManager().info.getProjectedView().getX();
double z = player.lastTickPosZ + (player.getPosZ() - player.lastTickPosZ) * mc.getRenderPartialTicks()
- mc.getRenderManager().info.getProjectedView().getZ();

double cos = MathHelper.cos((float) (mc.getRenderManager().info.getYaw() * (Math.PI * 2 / 360)));
double sin = MathHelper.sin((float) (mc.getRenderManager().info.getYaw() * (Math.PI * 2 / 360)));
double rotY = -(z * cos - x * sin);
double rotX = -(x * cos + z * sin);

float angle = (float) (Math.atan2(rotY, rotX) * 180 / Math.PI);

double x2 = animationStep * MathHelper.cos((float) Math.toRadians(angle)) + window.getScaledWidth() / 2f;
double y2 = animationStep * MathHelper.sin((float) Math.toRadians(angle)) + window.getScaledHeight() / 2f;

x2 += animatedYaw;
y2 += animatedPitch;

GlStateManager.pushMatrix();
GlStateManager.disableBlend();
GlStateManager.translated(x2, y2, 0);
GlStateManager.rotatef(angle, 0, 0, 1);

int color = FriendStorage.isFriend(player.getGameProfile().getName()) ? FriendStorage.getColor() : ColorUtils.rgb(255,255,255);
//ColorUtils.getColor(1);

DisplayUtils.drawShadowCircle(1, 0, 14, ColorUtils.setAlpha(color, 255));

drawTriangle(-4, -1F, 4F, 7F, new Color(0, 0, 0, 32));
drawTriangle(-3F, 0F, 3F, 5F, new Color(color));

GlStateManager.enableBlend();
GlStateManager.popMatrix();
}
}
lastYaw = mc.player.rotationYaw;
lastPitch = mc.player.rotationPitch;
}

public static void drawTriangle(float x, float y, float width, float height, Color color) {

DisplayUtils.drawImage(new ResourceLocation("expensive/images/triangle.png"), -8.0F, -9.0F, 18.0F, 18.0F, -1);

GL11.glPushMatrix();
GL11.glPopMatrix();
}
}
картинка = Посмотреть вложение 276763

ss= Посмотреть вложение 276765

100% будет в диамонд клиент
Спасибо, теперь у меня передоз свечения.
 
Начинающий
Статус
Оффлайн
Регистрация
5 Апр 2023
Сообщения
343
Реакции[?]
0
Поинты[?]
1K
Дам совет для тех кто будет это пастить, просто уберите DisplayUtils.drawShadow и всё
ага,ток не будет видно друзей по стрелочком ну ладно :roflanEbalo:
не сорри я наа 2.0 перешел
ваще похую
опять чел который просто засирает всё посты 1715841238139.png
 
Сверху Снизу