-
Автор темы
- #1
Код:
UI.AddCheckbox("Display indicator")
UI.AddHotkey("Heavy Pistol Override")
UI.AddSliderInt("Heavy Pistol Mindmg", 0, 130)
UI.AddHotkey("Scout Override")
UI.AddSliderInt("Scout Mindmg", 0, 130)
UI.AddHotkey("AWP Override")
UI.AddSliderInt("AWP Mindmg", 0, 130)
UI.AddHotkey("Auto Override")
UI.AddSliderInt("Auto Mindmg", 0, 130)
var heavy_cache = UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage")
var scout_cache = UI.GetValue("Rage", "SCOUT", "Targeting", "Minimum damage")
var awp_cache = UI.GetValue("Rage", "AWP", "Targeting", "Minimum damage")
var auto_cache = UI.GetValue("Rage", "AUTOSNIPER", "Targeting", "Minimum damage")
function isActive(a)
{
return UI.IsHotkeyActive("Script items", a)
}
function setValue(cat, value)
{
UI.SetValue("Rage", cat.toUpperCase(), "Targeting", "Minimum damage", value)
}
function isHeavyPistol(name)
{
if (name == "r8 revolver" || name == "desert eagle")
{
return true
}
}
function isAutoSniper(name)
{
if(name == "scar 20" || weapon_name == "g3sg1")
{
return true
}
}
function onCM()
{
heavy_value = UI.GetValue("Script items", "Heavy Pistol Mindmg")
scout_value = UI.GetValue("Script items", "Scout Mindmg")
awp_value = UI.GetValue("Script items", "AWP Mindmg")
auto_value = UI.GetValue("Script items", "Auto Mindmg")
weapon_name = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))
if (isActive("Heavy Pistol Override") && isHeavyPistol(weapon_name))
{
setValue("HEAVY PISTOL", heavy_value)
}
else{
setValue("HEAVY PISTOL", heavy_cache)
}
if (isActive("Scout Override") && weapon_name == "ssg 08")
{
setValue("SCOUT", scout_value)
}
else{
setValue("SCOUT", scout_cache)
}
if (isActive("AWP Override") && weapon_name == "awp")
{
setValue("AWP", awp_value)
}
else{
setValue("AWP", awp_cache)
}
if (isActive("Auto Override") && isAutoSniper(weapon_name))
{
setValue("AUTOSNIPER", auto_value)
}
else
{
setValue("AUTOSNIPER", auto_cache)
}
}
function indicator()
{
font = Render.AddFont("Veranda", 8, 300 )
screen = Render.GetScreenSize()
wep = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))
x = screen[0]-screen[0] + 955
y = screen[1] - 556
heavy ="" + UI.GetValue("Rage", "HEAVY PISTOL", "Targeting", "Minimum damage")
scout ="" +UI.GetValue("Rage", "SCOUT", "Targeting", "Minimum damage")
awp ="" +UI.GetValue("Rage", "AWP", "Targeting", "Minimum damage")
auto ="" +UI.GetValue("Rage", "AUTOSNIPER", "Targeting", "Minimum damage")
var str = ""
if (UI.GetValue("Script items", "Display indicator") && Entity.IsValid(Entity.GetLocalPlayer()) && Entity.IsAlive(Entity.GetLocalPlayer()))
{
if (isHeavyPistol(wep))
{
str = heavy
}
else if(wep == "ssg 08")
{
str = scout
}
else if(wep == "awp")
{
str = awp
}
else if (isAutoSniper(wep))
{
str = auto
}
}
if (str == "" + 0)
{
str = "DYNAMIC"
}
Render.StringCustom(x+1, y+1, 0, str+"", [86,179,174,1], font)
Render.StringCustom(x, y, 0, str+"", [173,255,47,255], font)
}
Cheat.RegisterCallback("Draw", "indicator")
Cheat.RegisterCallback("CreateMove", "onCM")
UI.AddLabel(" Antiaim ");
UI.AddSliderInt("Antiaim_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("Antiaim_y", 0, Global.GetScreenSize()[1]);
UI.AddColorPicker("changing the color");
var color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "poloska blya");
if (color[3] == 0)
UI.SetColor("Misc", "JAVASCRIPT", "Script items", "poloska blya", [102, 111, 99, 255]);
function in_bounds(vec, x, y, x2, y2) {
return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}
function draw_arc(x, y, radius, start_angle, percent, thickness, color) {
var precision = (2 * Math.PI) / 30;
var step = Math.PI / 180;
var inner = radius - thickness;
var end_angle = (start_angle + percent) * step;
var start_angle = (start_angle * Math.PI) / 180;
for (; radius > inner; --radius) {
for (var angle = start_angle; angle < end_angle; angle += precision) {
var cx = Math.round(x + radius * Math.cos(angle));
var cy = Math.round(y + radius * Math.sin(angle));
var cx2 = Math.round(x + radius * Math.cos(angle + precision));
var cy2 = Math.round(y + radius * Math.sin(angle + precision));
Render.Line(cx, cy, cx2, cy2, color);
}
}
}
function main_aa() {
if (!World.GetServerString()) return;
const x = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Antiaim_x"),
y = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Antiaim_y");
var font = Render.AddFont("Verdana", 7, 100);
var RealYaw = Local.GetRealYaw();
var FakeYaw = Local.GetFakeYaw();
var delta = Math.min(Math.abs(RealYaw - FakeYaw) / 2, 60).toFixed(1);
var safety = Math.min(Math.round(1.7 * Math.abs(delta)), 100);
if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
var side = "<";
} else {
var side = ">";
}
var text = "FAKE (" + delta.toString() + " ) | safety: " + safety.toString() + "% | side: " + side;
var w = Render.TextSizeCustom(text, font)[0] + 8;
var x3 = x - w - 3;
color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "poloska blya");
Render.FilledRect(x3, y + 2, 2, 18, [ color[0], color[1], color[2], 255 ]);
Render.StringCustom(x + 5 - w, y + 5, 0, text, [0, 0, 0, 180], font);
Render.StringCustom(x + 4 - w, y + 4, 0, text, [255, 255, 255, 255], font);
Render.Circle(x + 5 - w + Render.TextSizeCustom("FAKE (" + delta.toString(), font)[0], y + 8, 1, [255, 255, 255, 255]);
if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
const mouse_pos = Global.GetCursorPosition();
if (in_bounds(mouse_pos, x - w, y, x + w, y + 30)) {
UI.SetValue("Misc", "JAVASCRIPT", "Script items", "Antiaim_x", mouse_pos[0] + w / 2);
UI.SetValue("Misc", "JAVASCRIPT", "Script items", "Antiaim_y", mouse_pos[1] - 20);
}
}
}
Global.RegisterCallback("Draw", "main_aa");
UI.AddSliderFloat("delay thing", 0, 5)
// variables
var local;
var lastAircheck;
var inAir = false;
var firstRun=false; // use on line
var timed1=false;
var delay1 = .2;
var lastTime1=Globals.Curtime();
var timed=false;
var delay = .2;
var lastTime=Globals.Curtime();
var runMainFunction=0;
var info=0;
var delayedPos=0
function setSlide(value){
// turn on and off slide walk
// 1=on, 0=off
UI.SetValue("Misc", "GENERAL", "Movement", "Slide walk", value);
}
// 0=off, 1=down, 2= , 3=zero
function setPitch(val){
UI.SetValue("Anti-Aim", "Extra", "Pitch", val);
}
function checkIfAlive(){
local = Entity.GetLocalPlayer();
if(!Entity.IsAlive(local)){
return;
}
}
function checkIfInAir(){
// shoutout to Ultranite for this code, all credits to him for this function.
air = Entity.GetProp(local, "CBasePlayer", "m_flFallVelocity");
if (air < -1 || air > 1) {
inAir = true;
} else {
inAir = false;
}
}
function checkRestrictions(){
info = UI.GetValue( "Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions");
if (info=1){
UI.SetValue( "Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", 0);
}
}
function poggers(){
checkRestrictions();
coolDelay = UI.GetValue( "Misc", "JAVASCRIPT", "Script items", "delay thing");
local = Entity.GetLocalPlayer();
if(!Entity.IsAlive(local)){
return;
}
if (timed1 == false) {
lastTime1 = Globals.Curtime();
timed1 = true;
}
if (Globals.Curtime() > lastTime1 + .3) { // delays when to check if you're inair so it doesn't go off as much when you're bhopping.
// shoutout to Ultranite for this code, all credits to him for this function.
air = Entity.GetProp(local, "CBasePlayer", "m_flFallVelocity");
if (air < -1 || air > 1) {
inAir = true;
} else {
inAir = false;
}
timed1 = false;
}
// if statement, if space is held, return.
// This should stop any false activations of the zero pitch, i hope ;-;
if (Input.IsKeyPressed(0x20)){
return;
}
if (lastAircheck == true && inAir==false){
//Cheat.Print( 'if statement was ran successfully' ); this is working correctly
if (delayedPos==0 && firstRun==false) {
firstRun=true;
}
runMainFunction=1;
}
if (runMainFunction==1){
if (timed == false) {
lastTime = Globals.Curtime();
timed = true;
}
// the var firstRun lets the shit skip the delay for the zero pitch, so then the delay will put the aa down
if (Globals.Curtime() > lastTime + coolDelay || firstRun==true) {
if (delayedPos==1){
//Cheat.Print("1");
setSlide(0);
setPitch(1);
delayedPos=0;
runMainFunction=0;
timed = false;
return;
}
if (delayedPos==0){
//Cheat.Print("0");
setSlide(1);
setPitch(3);
delayedPos=1;
firstRun=false;
timed = false;
return;
}
//timed = false;
}
}
lastAircheck=inAir;
}
function onUnload() {
UI.SetValue( "Misc", "Performance & Information", "Information", "Restrictions", 1);
setPitch(1);
}
Cheat.RegisterCallback("Unload", "onUnload");
Cheat.RegisterCallback("CreateMove", "poggers");
UI.AddLabel(" Aimbot logging");
UI.AddCheckbox( "Enable chat logging" );
hitboxes = [
'generic',
'head',
'chest',
'stomach',
'left arm',
'right arm',
'left leg',
'right leg',
'?'
];
var scriptitems = ("Misc", "JAVASCRIPT", "Script items");
var shots = 0;
var predicthc = 0;
var safety = 0;
var hitboxName = "";
var choked = 0;
var exploit = 0;
var logs = [];
var logsct = [];
var logsalpha = [];
function getHitboxName(index)
{
switch (index)
{
case 0:
hitboxName = "head";
break;
case 1:
hitboxName = "head";
break;
case 2:
hitboxName = "stomach";
break;
case 3:
hitboxName = "stomach";
break;
case 4:
hitboxName = "stomach";
break;
case 5:
hitboxName = "chest";
break;
case 6:
hitboxName = "chest";
break;
case 7:
hitboxName = "left leg";
break;
case 8:
hitboxName = "right leg";
break;
case 9:
hitboxName = "left leg";
break;
case 10:
hitboxName = "right leg";
break;
case 11:
hitboxName = "left leg";
break;
case 12:
hitboxName = "right leg";
break;
case 13:
hitboxName = "left arm";
break;
case 14:
hitboxName = "right arm";
break;
case 15:
hitboxName = "left arm";
break;
case 16:
hitboxName = "left arm";
break;
case 17:
hitboxName = "right arm";
break;
case 18:
hitboxName = "right arm";
break;
default:
hitboxName = "body";
}
return hitboxName;
}
function HitgroupName(index) {
return hitboxes[index] || 'body';
}
var target = -1;
var shots_fired = 0;
var hits = 0;
var lastUpdate = 0;
var logged = false;
function ragebot_fire() {
predicthc = Event.GetInt("hitchance");
safety = Event.GetInt("safepoint");
hitboxName = getHitboxName(Event.GetInt("hitbox"));
exploit = (Event.GetInt("exploit")+1).toString();
target = Event.GetInt("target_index");
shots_fired++;
logged = false;
lastUpdate = Globals.Curtime();
}
function hitlog() {
var hit = Entity.GetEntityFromUserID(Event.GetInt("userid"));
var attacker = Entity.GetEntityFromUserID(Event.GetInt("attacker"));
if (attacker == Entity.GetLocalPlayer() && hit == target) hits++;
var hittype = "Hit ";
me = Entity.GetLocalPlayer();
hitbox = Event.GetInt('hitgroup');
target_damage = Event.GetInt("dmg_health");
target_health = Event.GetInt("health");
victim = Event.GetInt('userid');
attacker = Event.GetInt('attacker');
weapon = Event.GetString('weapon');
victimIndex = Entity.GetEntityFromUserID(victim);
attackerIndex = Entity.GetEntityFromUserID(attacker);
name = Entity.GetName(victimIndex);
var simtime = Globals.Tickcount() % 17;
var flags = "";
if (exploit == 2)
flags += "T";
flags += "B";
if (hitbox == 1)
flags += "H";
if (safety == 1) {
safety = "true";
}
else {
safety = "false";
}
if (weapon == "hegrenade")
hittype = "Naded ";
else if (weapon == "inferno")
hittype = "Burned ";
else if (weapon == "knife")
hittype = "Knifed ";
if (me == attackerIndex && me != victimIndex) {
Cheat.PrintColor([172, 252, 4, 1], "[bust.js] ");
if (hittype == "Hit ") {
if (UI.GetValue("Script items", "Enable chat logging")) {
Cheat.PrintChat(" \x08[\x0cbust.js\x08] [\x0c"+shots.toString()+"\x08] "+hittype+name+"'s \x10"+HitgroupName(hitbox)+"\x08 for \x07"+target_damage.toString()+"\x08 ("+target_health.toString()+" remaining) aimed=\x10"+hitboxName+"\x08("+predicthc.toString()+"%%) safety=\x03"+safety+"\x08 (\x10"+flags+"\x08) (\x10"+simtime+"\x08:\x10"+exploit+"\x08)\n");
}
Cheat.Print("["+shots.toString()+"] "+hittype+name+"'s "+HitgroupName(hitbox)+" for "+target_damage.toString()+" ("+target_health.toString()+" remaining) aimed="+hitboxName+"("+predicthc.toString()+"%%) bt=0 ("+flags+") ("+simtime+":"+exploit+")\n");
logs.push("["+shots.toString()+"] "+hittype+name+"'s "+HitgroupName(hitbox)+" for "+target_damage.toString()+" ("+target_health.toString()+" remaining) aimed="+hitboxName+"("+predicthc.toString()+"%%) bt=0 ("+flags+") ("+simtime+":"+exploit+")");
}
else {
Cheat.Print("["+shots.toString()+"] "+hittype+name+"'s "+HitgroupName(hitbox)+" for "+target_damage.toString()+" ("+target_health.toString()+" remaining) \n");
logs.push("["+shots.toString()+"] "+hittype+name+"'s "+HitgroupName(hitbox)+" for "+target_damage.toString()+" ("+target_health.toString()+" remaining)");
}
logsct.push(Globals.Curtime());
logsalpha.push(255);
}
if (shots == 99)
shots = 0;
else
shots++;
}
function removelogs() {
if (logs.length > 6) {
logs.shift();
logsct.shift();
logsalpha.shift();
}
if (logsct[0] + 6.5 < Globals.Curtime()) {
logsalpha[0] -= Globals.Frametime() * 600;
if (logsalpha[0] < 0) {
logs.shift();
logsct.shift();
logsalpha.shift();
}
}
}
function item_purchase() {
Cheat.PrintColor([172, 252, 4, 1], "[bust.js] ");
Cheat.Print(Entity.GetName(Entity.GetEntityFromUserID(Event.GetInt("userid")))+" bought "+Event.GetString("weapon")+"\n");
logs.push(Entity.GetName(Entity.GetEntityFromUserID(Event.GetInt("userid")))+" bought "+Event.GetString("weapon")+"");
logsct.push(Globals.Curtime());
logsalpha.push(255);
}
function onDraw() {
if (!World.GetServerString()) return;
var font = Render.AddFont("Lucida Console", 8, 0);
for (i = 0; i < logs.length; i++) {
Render.StringCustom(4, 4 + 13*i, 0, logs[i], [0, 0, 0, logsalpha[i]], font);
Render.StringCustom(3, 3 + 13*i, 0, logs[i], [255, 255, 255, logsalpha[i]], font);
}
if (shots_fired > hits && (Globals.Curtime() - lastUpdate > 0.33)) {
if (Globals.Curtime() - lastUpdate > 1) {
shots_fired = 0;
hits = 0;
}
if (!logged) {
var simtime = Globals.Tickcount() % 16;
logged = true;
var issafe = "true";
var reason = "?";
if (safety == 0) {
issafe = "false";
}
if (Entity.IsAlive(target) == false)
reason = "death";
else if (Entity.IsAlive(Entity.GetLocalPlayer()) == false)
reason = "dead";
else if (safety == true && predicthc < 76)
reason = "spread";
else if (safety == true && predicthc > 76)
reason = "prediction error";
var flags = "";
if (exploit == 2)
flags += "T";
flags += "B";
Cheat.PrintColor([172, 252, 4, 1], "[bust.js] ");
Cheat.Print("["+shots.toString()+"] "+"Missed "+Entity.GetName(target)+"'s "+hitboxName+"("+predicthc.toString()+"%%) due to "+reason+", bt=0 ("+flags+") ("+simtime+":"+exploit+")\n");
logs.push("["+shots.toString()+"] "+"Missed "+Entity.GetName(target)+"'s "+hitboxName+"("+predicthc.toString()+"%%) due to "+reason+", bt=0 ("+flags+") ("+simtime+":"+exploit+")");
if (UI.GetValue("Script items", "Enable chat logging")) {
Cheat.PrintChat(" \x08[\x0cbust.js\x08] [\x0c"+shots.toString()+"\x08] "+"\x08Missed "+Entity.GetName(target)+"'s \x10"+hitboxName+"\x08("+predicthc.toString()+"%%) due to \x07"+reason+"\x08, safety=\x03"+issafe+"\x08 (\x10"+flags+"\x08) (\x10"+simtime+"\x08:\x10"+exploit+"\x08)");
}
logsct.push(Globals.Curtime());
logsalpha.push(255);
if (shots == 99)
shots = 0;
else
shots++;
}
}
}
function main() {
Global.RegisterCallback("ragebot_fire", "ragebot_fire");
Global.RegisterCallback("item_purchase", "item_purchase");
Global.RegisterCallback("player_hurt", "hitlog");
Global.RegisterCallback("Draw", "onDraw");
Global.RegisterCallback("Draw", "removelogs");
}
main();
UI.AddColorPicker("Watermark");
var color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Watermark");
if (color[3] == 0)
UI.SetColor("Misc", "JAVASCRIPT", "Script items", "Watermark", [89, 119, 239, 255]);
function draw() {
if(!World.GetServerString())
return;
var today = new Date();
var hours1 = today.getHours();
var minutes1 = today.getMinutes();
var seconds1 = today.getSeconds();
var hours = hours1 <= 9 ? "0"+hours1+":" : hours1+":";
var minutes = minutes1 <= 9 ? "0" + minutes1+":" : minutes1+":";
var seconds = seconds1 <= 9 ? "0" + seconds1 : seconds1;
var server_tickrate = Globals.Tickrate().toString()
var username = "kane"
var ebanaya_hueta = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()
color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Watermark");
var font = Render.AddFont("Verdana", 7, 400);
var text = "BUST.js [main] | " + username + " | delay: " + ebanaya_hueta + "ms | " + server_tickrate + "tick";
var w = Render.TextSizeCustom(text, font)[0] + 8;
var x = Global.GetScreenSize()[0];
x = x - w - 10;
Render.FilledRect(x, 10, w, 2, [ color[0], color[1], color[2], 255 ]);
Render.FilledRect(x, 12, w, 18, [ 17, 17, 17, color[3] ]);
Render.StringCustom(x+4, 10 + 4, 0, text, [ 255, 255, 255, 255 ], font);
}
Cheat.RegisterCallback("Draw", "draw");