-
Автор темы
- #1
123:
решил в общем я переписать скрипт на индикаторы, но столкнулся с проблемкой, индикаторы попросту не рендерятся, помогите пж
var animation = 0;
var menu_path = ["Rage","acatel","acatel"]
UI.AddSubTab(["Rage","SUBTAB_MGR"],"acatel");
var active = UI.AddCheckbox(menu_path, "[acatel] Indicators");
function mainind() {
if (Entity.GetLocalPlayer() == null || !Entity.IsAlive(Entity.GetLocalPlayer())) return
if (!UI.GetValue(menu_path, "[acatel] Indicators")) return
var checkonshot = UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Hide shots"]); var checkdt = UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Double tap"])
var safepoint = UI.GetValue(["Rage", "General", "General", "Key assignment", "Force safe point"]); var baim = UI.GetValue(["Rage", "General", "General", "Key assignment", "Force body aim"])
var fs = UI.GetValue(["Rage", "Anti Aim", "Directions", "Auto direction"]) && Input.IsKeyPressed(0x12);
var small = Render.GetFont("smallest_pixel-7.ttf", 10, true)
var bodyyaw = Local.GetRealYaw() - Local.GetFakeYaw()
var real = Local.GetRealYaw();
var isScoped = Entity.GetProp(Entity.GetLocalPlayer(), "CCSPlayer", "m_bIsScoped");
animation = Lerp(animation, isScoped ? 256 : 0, 0.1)
var cn = 1
var sx = Render.GetScreenSize()[0]; var sy = Render.GetScreenSize()[1]
var r = UI.GetColor(color_picker)[0]; var g = UI.GetColor(color_picker)[1]; var b = UI.GetColor(color_picker)[2]; var a = 255
var alpha = Math.sin(Math.abs((Math.PI * -1) + (Globals.Curtime() * 1.5) % (Math.PI * 2))) * 255
outline_string((sx/2-20)+ 30 * (animation / 254), sy/2 + 20, 0, "ACATEL", [255, 255, 255, 255], small)
outline_string((sx/2-20 + Render.TextSize("ACATEL", small)[0]+2)+ 30 * (animation / 254), sy/2 + 20, 0, "BETA", [r, g, b, alpha], small); cn+=1
outline_string((sx/2-20)+ 30 * (animation / 254), (sy/2 + 18) + 5 * cn, 0, "DEFAULT:", [r, g, b, 255, 255], small)
outline_string((sx/2-20 + Render.TextSize("DEFAULT:", small)[0]+2)+ 30 * (animation / 254), (sy/2 + 18) + 5 * cn, 0, bodyyaw < 0 ? "LEFT" : "RIGHT", [142, 165, 229, 255], small); cn+=1
outline_string((sx/2-20)+ 30 * (animation / 254), (sy/2 + 21) + 5 * cn, 0, "DT", checkdt ? [170, 235, 140, 255] : [255, 255, 255, 100], small)
outline_string((sx/2-8)+ 30 * (animation / 254), (sy/2 + 21) + 5 * cn, 0, "HS", checkonshot ? [255, 255, 255, 255] : [255, 255, 255, 100], small)
outline_string((sx/2+5)+ 30 * (animation / 254), (sy/2 + 21) + 5 * cn, 0, "FS", fs ? [255, 255, 255, 255] : [255, 255, 255, 100], small)
outline_string((sx/2+18)+ 30 * (animation / 254), (sy/2 + 21) + 5 * cn, 0, "M:D", [255, 255, 255, 255], small)
}
Cheat.RegisterCallback("Draw", "mainind")
Последнее редактирование: