Skip to content

Commit ec7602b

Browse files
authored
3.3.1 release
1 parent e05e505 commit ec7602b

1 file changed

Lines changed: 27 additions & 15 deletions

File tree

StateFarmClient.js

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//3.#.#-release for release
1717
//this ensures that each version of the script is counted as different
1818

19-
// @version 3.3.0-release
19+
// @version 3.3.1-release
2020

2121
// @match *://shellshock.io/*
2222
// @match *://algebra.best/*
@@ -75,7 +75,7 @@
7575
(function () {
7676
//script info
7777
const name="StateFarm Client";
78-
const version="3.3.0";
78+
const version="3.3.1";
7979
//startup sequence
8080
const startUp=function () {
8181
mainLoop()
@@ -320,6 +320,7 @@
320320
initModule({ location: tp.aimbotFolder, title: "1 Kill", storeAs: "oneKill", bindLocation: tp.combatTab.pages[1],});
321321
initModule({ location: tp.aimbotFolder, title: "LineOfSight", storeAs: "lineOfSight", bindLocation: tp.combatTab.pages[1],});
322322
tp.aimbotFolder.addSeparator();
323+
initModule({ location: tp.aimbotFolder, title: "MaxAngle", storeAs: "aimbotMaxAngle", bindLocation: tp.combatTab.pages[1], slider: {min: 0, max: Math.PI*2, step: 0.05}, defaultValue: Math.PI*2,});
323324
initModule({ location: tp.aimbotFolder, title: "AntiSnap", storeAs: "aimbotAntiSnap", bindLocation: tp.combatTab.pages[1], slider: {min: 0, max: 0.99, step: 0.01}, defaultValue: 0,});
324325
initModule({ location: tp.aimbotFolder, title: "AntiSneak", storeAs: "antiSneak", bindLocation: tp.combatTab.pages[1], slider: {min: 0, max: 5, step: 0.2}, defaultValue: 0,});
325326
tp.aimbotFolder.addSeparator();
@@ -364,6 +365,7 @@
364365
tp.renderTab.pages[0].addSeparator();
365366
initModule({ location: tp.renderTab.pages[0], title: "Show Bloom", storeAs: "revealBloom", bindLocation: tp.renderTab.pages[1],});
366367
initModule({ location: tp.renderTab.pages[0], title: "Show LOS", storeAs: "showLOS", bindLocation: tp.renderTab.pages[1],});
368+
initModule({ location: tp.renderTab.pages[0], title: "Leaderboard", storeAs: "highlightLeaderboard", bindLocation: tp.renderTab.pages[1],});
367369
tp.renderTab.pages[0].addSeparator();
368370
initModule({ location: tp.renderTab.pages[0], title: "Co-ords", storeAs: "showCoordinates", bindLocation: tp.renderTab.pages[1],});
369371
initModule({ location: tp.renderTab.pages[0], title: "HP Display", storeAs: "playerStats", bindLocation: tp.renderTab.pages[1],});
@@ -449,7 +451,11 @@
449451
tp.botParamsFolder.addSeparator();
450452
initModule({ location: tp.botParamsFolder, title: "DoPlay", storeAs: "botRespawn", bindLocation: tp.bottingTab.pages[1],});
451453
initModule({ location: tp.botParamsFolder, title: "DoSeizure", storeAs: "botSeizure", bindLocation: tp.bottingTab.pages[1],});
454+
tp.botParamsFolder.addSeparator();
455+
initModule({ location: tp.botParamsFolder, title: "DoTallChat", storeAs: "botTallChat", bindLocation: tp.bottingTab.pages[1],});
452456
initModule({ location: tp.botParamsFolder, title: "DoMock", storeAs: "botMock", bindLocation: tp.bottingTab.pages[1],});
457+
initModule({ location: tp.botParamsFolder, title: "DoAutoEZ", storeAs: "botAutoEZ", bindLocation: tp.bottingTab.pages[1],});
458+
initModule({ location: tp.botParamsFolder, title: "DoChAccuse", storeAs: "botCheatAccuse", bindLocation: tp.bottingTab.pages[1],});
453459
tp.botParamsFolder.addSeparator();
454460
initModule({ location: tp.botParamsFolder, title: "DoMove", storeAs: "botAutoMove", bindLocation: tp.bottingTab.pages[1],});
455461
initModule({ location: tp.botParamsFolder, title: "DoShoot", storeAs: "botAutoShoot", bindLocation: tp.bottingTab.pages[1],});
@@ -938,8 +944,10 @@
938944
];
939945
return resultRgb;
940946
};
941-
const distancePlayers = function (MYPLAYER,player) {
942-
return ss.BABYLONJS.Vector3.Distance(MYPLAYER,player); //pythagoras' theorem in 3 dimensions. no one owns maths, zert.
947+
const distancePlayers = function (ss,player,yMultiplier) {
948+
yMultiplier=yMultiplier||1;
949+
let vector = getDirectionVectorPlayer(ss,player);
950+
return Math.hypot(vector.x,vector.y*yMultiplier,vector.z); //pythagoras' theorem in 3 dimensions. no one owns maths, zert.
943951
};
944952
const setPrecision = function (value) { return Math.round(value * 8192) / 8192 }; //required precision
945953
const calculateYaw = function (pos) {
@@ -1477,7 +1485,7 @@
14771485
return newPos;
14781486
};
14791487
const getLineOfSight = function(ss,pos) { //returns true if no wall collisions
1480-
let distance=distancePlayers(ss.MYPLAYER,pos);
1488+
let distance=distancePlayers(ss,pos);
14811489
let dir = { yaw: ss.MYPLAYER.yaw, pitch: ss.MYPLAYER.pitch };
14821490
if (extract("antiBloom")) { dir=applyBloom(dir,-1) };
14831491

@@ -1790,6 +1798,9 @@
17901798
addParam("autoFireType",1);
17911799
addParam("enableSeizureX",extract("botSeizure"));
17921800
addParam("enableSeizureY",extract("botSeizure"));
1801+
addParam("autoEZ",extract("botAutoEZ"));
1802+
addParam("cheatAccuse",extract("botCheatAccuse"));
1803+
addParam("tallChat",extract("botTallChat"));
17931804

17941805
if (extract("botAimbot")) { //add antisneak
17951806
addParam("aimbotTargeting",1);
@@ -1921,7 +1932,7 @@
19211932
} else if (extract("enableBlacklistTracers") && extract("blacklistESPType")=="highlight" && isPartialMatch(blacklistPlayers,player.name) ) {
19221933
color=hexToRgb(extract("blacklistColor"));
19231934
} else if ( tracersType=="proximity" ) {
1924-
const distance = distancePlayers(ss.MYPLAYER,player);
1935+
const distance = distancePlayers(ss,player);
19251936
if (distance < extract("tracersColor1to2")) { //fade between first set
19261937
progress=(distance/extract("tracersColor1to2"));
19271938
color=fadeBetweenColors(extract("tracersColor1"),extract("tracersColor2"),progress);
@@ -2120,7 +2131,7 @@
21202131
let isLineOfSight=false;
21212132
if (extract("showLOS")) {
21222133
const player=currentlyTargeting||playerLookingAt||undefined
2123-
if (player) {
2134+
if (player && player.playing) {
21242135
isLineOfSight=getLineOfSight(ss,player);
21252136
};
21262137
};
@@ -2180,7 +2191,8 @@
21802191
const whitelisted=(!extract("enableWhitelistAimbot")||extract("enableWhitelistAimbot")&&isPartialMatch(whitelistPlayers,player.name));
21812192
const blacklisted=(extract("enableBlacklistAimbot")&&isPartialMatch(blacklistPlayers,player.name));
21822193
const passedLists=whitelisted&&(!blacklisted);
2183-
player.distance = distancePlayers(ss.MYPLAYER,player);
2194+
player.distance=distancePlayers(ss,player);
2195+
player.adjustedDistance=distancePlayers(ss,player,2);
21842196
const directionVector=getDirectionVectorPlayer(ss,player);
21852197
player.angleDiff=getAngularDifference(ss.MYPLAYER, {yaw: calculateYaw(directionVector), pitch: calculatePitch(directionVector)});
21862198

@@ -2192,13 +2204,13 @@
21922204
if (passedLists && ((!ss.MYPLAYER.team)||( player.team!==ss.MYPLAYER.team))) { //is an an enemy
21932205
if (extract("aimbot") && (extract("aimbotRightClick") ? isRightButtonDown : true) && ss.MYPLAYER.playing) { //is doing aimbot
21942206
if (selectNewTarget) {
2195-
if (player.distance<enemyMinimumValue) { //for antisneak, not targeting
2196-
enemyMinimumDistance = player.distance;
2207+
if (player.adjustedDistance<enemyMinimumValue) { //for antisneak, not targeting
2208+
enemyMinimumDistance = player.adjustedDistance;
21972209
enemyNearest = player;
21982210
};
21992211
if (targetType=="nearest") {
2200-
if ( player.distance < enemyMinimumValue && (!extract("lineOfSight") || getLineOfSight(ss,player))) {
2201-
enemyMinimumValue = player.distance;
2212+
if ( player.adjustedDistance < enemyMinimumValue && (!extract("lineOfSight") || getLineOfSight(ss,player))) {
2213+
enemyMinimumValue = player.adjustedDistance;
22022214
currentlyTargeting = player;
22032215
};
22042216
} else if (targetType=="pointingat") {
@@ -2216,8 +2228,8 @@
22162228
if (extract("aimbot") && (extract("aimbotRightClick") ? isRightButtonDown : true) && ss.MYPLAYER.playing) {
22172229
if ( currentlyTargeting && currentlyTargeting.playing ) { //found a target
22182230
didAimbot=true
2219-
if (!extract("silentAimbot")) {
2220-
const distanceBetweenPlayers = distancePlayers(ss.MYPLAYER,currentlyTargeting);
2231+
if ((!extract("silentAimbot")) && (targetingComplete||(extract("aimbotMaxAngle")>currentlyTargeting?.angleDiff))) {
2232+
const distanceBetweenPlayers = distancePlayers(ss,currentlyTargeting);
22212233

22222234
const aimbot=getAimbot(ss,currentlyTargeting);
22232235

@@ -2274,7 +2286,7 @@
22742286
ss.MYPLAYER.pitch+=extract("amountSeizureY")
22752287
};
22762288
};
2277-
highlightCurrentlyTargeting(ss, currentlyTargeting, didAimbot);
2289+
highlightCurrentlyTargeting(ss, currentlyTargeting, (extract("highlightLeaderboard")) ? didAimbot : false);
22782290
if (extract("upsideDown")) { //sorta useless
22792291
if (ss.MYPLAYER.pitch<1.5 && ss.MYPLAYER.pitch>-1.5) {
22802292
ss.MYPLAYER.pitch=Math.PI;

0 commit comments

Comments
 (0)