UI.AddSubTab(["Visuals", "SUBTAB_MGR"], "pastetap")
var path = ["Visuals", "onetap", "onetap"];
UI.AddCheckbox(path, "Enable chat logging" );
hitboxes = [
'generic',
'head',
'chest',
'stomach',
'left arm',
'right arm',
'left leg',
'right leg',
'neck'
];
var scriptitems = ( ["Visuals", "onetap", "onetap"]);
var shots = 0;
var predicthc = 0;
var safety1 = 0;
var hitboxName = "";
var choked1 = 0;
var exploit = 0;
var logs = [];
var logsct = [];
var logsalpha = [];
var nlogs = [];
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;
var myPing = Math.floor(Local.Latency()*1000/1.5);
var tickrate = Globals.Tickrate()
var jopadeath = Math.floor(Local.Latency()*1000/2.5);
function ragebot_fire() {
predicthc = Event.GetInt("hitchance");
safety1 = 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 (safety1 == 1) {
safety1 = "1";
}
else {
safety1 = "0";
}
if (weapon == "hegrenade")
hittype = "Naded ";
else if (weapon == "inferno")
hittype = "Burned ";
else if (weapon == "knife")
hittype = "Knifed ";
if (me == attackerIndex && me != victimIndex) {1
Cheat.PrintColor([89, 119, 239, 255], "[pastetap] ");
if (hittype == "Hit ") {
if (UI.GetValue(["Visuals", "onetap", "onetap", "Enable chat logging"])) {
Cheat.PrintChat(" \x08[\x0cpastetap\x08] [\x06"+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"+safety1+"\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+" (hitchance: "+predicthc.toString()+"%% | safety: "+safety1+") ("+flags+") ("+simtime+":"+exploit+")\n");
logs.push("["+shots.toString()+"] "+hittype+name+"'s "+HitgroupName(hitbox)+" for "+target_damage.toString()+" ("+target_health.toString()+" remaining) aimed="+hitboxName+" (hitchance: "+predicthc.toString()+"% | safety: "+safety1+") ("+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([89, 119, 239, 255], "[pastetap] ");
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.GetFont("verdana.ttf", 10, true);
for (i = 0; i < logs.length; i++) {
Render.String(4, 4 + 13*i, 0, logs[i], [0, 0, 0, logsalpha[i]], font);
Render.String(3, 3 + 13*i, 0, logs[i], [255, 255, 255, logsalpha[i]], font);
}
if (shots_fired > hits && (Globals.Curtime() - lastUpdate > 0.17)) {
if (Globals.Curtime() - lastUpdate > 1) {
shots_fired = 0;
hits = 0;
}
if (!logged) {
var simtime = Globals.Tickcount() % 16;
logged = true;
var issafe = "1";
var reason = "resolver";
if (safety1 == 0) {
issafe = "0";
}
if (Entity.IsAlive(target) == false)
reason = "death";
else if (Entity.IsAlive(Entity.GetLocalPlayer()) == false)
reason = "dead";
else if (safety1 == true && predicthc < 92)
reason = "spread";
else if (safety1 == true && predicthc == 93)
reason = "spread:"
else if (safety1 == true && predicthc == 94)
reason = "spread:"
else if (safety1 == true && predicthc == 95)
reason = "spread:"
else if (safety1 == true && predicthc == 96)
reason = "spread:"
else if (safety1 == true && predicthc > 97)
reason = "prediction error";
var flags = "";
if (exploit == 2)
flags += "T";
flags += "B";
if (reason == "dead") {
Cheat.PrintColor([89, 119, 239, 255], "[pastetap] ");
Cheat.PrintColor([255, 255, 255, 255], "["+shots.toString()+"] ");
Cheat.PrintColor([255, 255, 255, 255],"Missed "+Entity.GetName(target)+"'s "+hitboxName+" due to ");
Cheat.PrintColor([37, 255, 40, 255],reason);
Cheat.PrintColor([255, 255, 255, 255]," (hitchance: "+predicthc.toString()+"%% | safety= "+issafe+") ("+flags+") ("+simtime+":"+exploit+") (delay: " +Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()+ " | tickrate: " +tickrate+ ")\n");
}
if (reason == "death") {
Cheat.PrintColor([89, 119, 239, 255], "[pastetap] ");
Cheat.PrintColor([255, 255, 255, 255], "["+shots.toString()+"] ");
Cheat.PrintColor([255, 255, 255, 255],"Missed "+Entity.GetName(target)+"'s "+hitboxName+" due to ");
Cheat.PrintColor([37, 255, 40, 255],reason);
Cheat.PrintColor([255, 255, 255, 255]," (hitchance: "+predicthc.toString()+"%% | safety= "+issafe+") ("+flags+") ("+simtime+":"+exploit+") (delay: " +Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()+ " | tickrate: " +tickrate+ ")\n");
}
if (reason == "prediction error") {
Cheat.PrintColor([89, 119, 239, 255], "[pastetap] ");
Cheat.PrintColor([255, 255, 255, 255], "["+shots.toString()+"] ");
Cheat.PrintColor([255, 255, 255, 255],"Missed "+Entity.GetName(target)+"'s "+hitboxName+" due to ");
Cheat.PrintColor([241, 255, 64, 255],reason);
Cheat.PrintColor([126, 255, 99, 255]," [accuracy]");
Cheat.PrintColor([255, 255, 255, 255],", (hitchance: "+predicthc.toString()+"%% | safety= "+issafe+") ("+flags+") ("+simtime+":"+exploit+")\n");
}
if (reason == "resolver") {
Cheat.PrintColor([89, 119, 239, 255], "[pastetap] ");
Cheat.PrintColor([255, 255, 255, 255], "["+shots.toString()+"] ");
Cheat.PrintColor([255, 255, 255, 255],"Missed "+Entity.GetName(target)+"'s "+hitboxName+" due to ");
Cheat.PrintColor([255, 0, 0, 255],reason);
Cheat.PrintColor([255, 255, 255, 255],", (hitchance: "+predicthc.toString()+"%% | safety= "+issafe+") ("+flags+") ("+simtime+":"+exploit+")\n");
}
if (reason == "spread") {
Cheat.PrintColor([89, 119, 239, 255], "[pastetap] ");
Cheat.PrintColor([255, 255, 255, 255], "["+shots.toString()+"] ");
Cheat.PrintColor([255, 255, 255, 255],"Missed "+Entity.GetName(target)+"'s "+hitboxName+" due to ");
Cheat.PrintColor([0, 112, 255, 255],reason);
Cheat.PrintColor([0, 112, 255, 255],":");
Cheat.PrintColor([58, 255, 255, 255],"[occlusion: 0]");
Cheat.PrintColor([255, 255, 255, 255],", (hitchance: "+predicthc.toString()+"%% | safety= "+issafe+") ("+flags+") ("+simtime+":"+exploit+")\n");
}
if (reason == "spread:") {
Cheat.PrintColor([89, 119, 239, 255], "[pastetap] ");
Cheat.PrintColor([255, 255, 255, 255], "["+shots.toString()+"] ");
Cheat.PrintColor([255, 255, 255, 255],"Missed "+Entity.GetName(target)+"'s "+hitboxName+" due to ");
Cheat.PrintColor([0, 112, 255, 255],reason);
Cheat.PrintColor([58, 255, 255, 255],"[occlusion: 1]");
Cheat.PrintColor([255, 255, 255, 255],", (hitchance: "+predicthc.toString()+"%% | safety= "+issafe+") ("+flags+") ("+simtime+":"+exploit+")\n");
}
if (reason == "dead") {
Cheat.PrintColor([37, 255, 40, 255],"(ʃ)");
Cheat.PrintColor([255, 71, 99, 255],"[Shot missed due to death despite the server ");
Cheat.PrintColor([255, 188, 248, 255],"having " +jopadeath+ "ms");
Cheat.PrintColor([255, 71, 99, 255]," to process our shot.]\n")
}
if (reason == "death") {
Cheat.PrintColor([37, 255, 40, 255],"(Ω)");
Cheat.PrintColor([255, 71, 99, 255],"[Shot missed due to death because your cheat or ping didn't have time to transmit information to the server]\n")
}
if (reason == "spread:") {
Cheat.PrintColor([199, 250, 156, 255],"(λ)");
Cheat.PrintColor([255, 207, 137, 255],"[Shot missed because problem of the rage autowall]\n")
}
if (reason == "prediction error") {
Cheat.PrintColor([241, 255, 64, 255],"(Δ)");
Cheat.PrintColor([255, 71, 99, 255],"[Shot missed due to unexpected failure in cheat prediction performance]\n")
}
// Cheat.PrintColor([89, 119, 239, 255], "[pastetap] ");
// Cheat.Print("["+shots.toString()+"] "+"Missed "+Entity.GetName(target)+"'s "+hitboxName+"("+predicthc.toString()+"%%) due to "+reason+", safety="+issafe+" ("+flags+") ("+simtime+":"+exploit+")\n");
logs.push("["+shots.toString()+"] "+"Missed "+Entity.GetName(target)+"'s "+hitboxName+" due to "+reason+" (hitchance: "+predicthc.toString()+"% | safety= "+issafe+") ("+flags+") ("+simtime+":"+exploit+")");
if (UI.GetValue(["Visuals", "onetap", "onetap", "Enable chat logging"])) {
Cheat.PrintChat(" \x08[\x0cpastetap\x08] [\x06"+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 main1() {
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");
}
main1();