Skip to content

Commit acd1f51

Browse files
authored
pre3: add lineofsight mode to autofire, gave it to bots
1 parent 87de9e9 commit acd1f51

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

StateFarmClient.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//3.#.#-release for release
1111
//this ensures that each version of the script is counted as different
1212

13-
// @version 3.3.0-pre2
13+
// @version 3.3.0-pre3
1414

1515
// @match *://shellshock.io/*
1616
// @match *://algebra.best/*
@@ -75,7 +75,7 @@
7575
(function () {
7676
//script info
7777
const name="StateFarm Client";
78-
const version="3.3.0-pre2";
78+
const version="3.3.0-pre3";
7979
//startup sequence
8080
const startUp=function () {
8181
mainLoop()
@@ -315,11 +315,11 @@
315315
initModule({ location: tp.aimbotFolder, title: "1 Kill", storeAs: "oneKill", bindLocation: tp.combatTab.pages[1],});
316316
initModule({ location: tp.aimbotFolder, title: "Prediction", storeAs: "prediction", bindLocation: tp.combatTab.pages[1],});
317317
initModule({ location: tp.aimbotFolder, title: "Antisnap", storeAs: "aimbotAntiSnap", bindLocation: tp.combatTab.pages[1], slider: {min: 0, max: 0.99, step: 0.01}, defaultValue: 0,});
318-
initModule({ location: tp.aimbotFolder, title: "Antisneak", storeAs: "antiSneak", bindLocation: tp.combatTab.pages[1], slider: {min: 0, max: 5, step: 0.2}, defaultValue: 0,});
318+
initModule({ location: tp.aimbotFolder, title: "AntiSneak", storeAs: "antiSneak", bindLocation: tp.combatTab.pages[1], slider: {min: 0, max: 5, step: 0.2}, defaultValue: 0,});
319319
initModule({ location: tp.aimbotFolder, title: "ESPColor", storeAs: "aimbotColor", defaultValue: "#0000ff"});
320320
initModule({ location: tp.combatTab.pages[0], title: "Auto Refill", storeAs: "autoRefill", bindLocation: tp.combatTab.pages[1],});
321321
initModule({ location: tp.combatTab.pages[0], title: "Auto Fire", storeAs: "enableAutoFire", bindLocation: tp.combatTab.pages[1],});
322-
initModule({ location: tp.combatTab.pages[0], title: "AutoFireType", storeAs: "autoFireType", bindLocation: tp.combatTab.pages[1], dropdown: [{text: "While Holding LMB", value: "leftMouse"}, {text: "While Aimbotting", value: "whileAimbot"}, {text: "Always", value: "always"}], defaultValue: "leftMouse"});
322+
initModule({ location: tp.combatTab.pages[0], title: "AutoFireType", storeAs: "autoFireType", bindLocation: tp.combatTab.pages[1], dropdown: [{text: "While Holding LMB", value: "leftMouse"}, {text: "Line-Of-Sight", value: "lineOfSight"}, {text: "While Aimbotting", value: "whileAimbot"}, {text: "Always", value: "always"}], defaultValue: "leftMouse"});
323323
initModule({ location: tp.combatTab.pages[0], title: "GrenadeMAX", storeAs: "grenadeMax", bindLocation: tp.combatTab.pages[1],});
324324
//RENDER MODULES
325325
initFolder({ location: tp.pane, title: "Render", storeAs: "renderFolder",});
@@ -1733,7 +1733,7 @@
17331733
params=params+"mockMode%3E"+JSON.stringify(extract("botMock"))+","
17341734
params=params+"autoRespawn%3E"+JSON.stringify(extract("botRespawn"))+","
17351735
params=params+"enableAutoFire%3E"+JSON.stringify(extract("botAutoShoot"))+","
1736-
params=params+"autoFireType%3E"+JSON.stringify(2)+","
1736+
params=params+"autoFireType%3E"+JSON.stringify(1)+","
17371737
params=params+"enableSeizureX%3E"+JSON.stringify(extract("botSeizure"))+","
17381738
params=params+"enableSeizureY%3E"+JSON.stringify(extract("botSeizure"))+","
17391739

@@ -1746,6 +1746,8 @@
17461746
params=params+"grenadeMax%3E"+JSON.stringify(true)+","
17471747
params=params+"enableSeizureX%3E"+JSON.stringify(false)+","
17481748
params=params+"enableSeizureY%3E"+JSON.stringify(false)+","
1749+
params=params+"antiSneak%3E"+JSON.stringify(1.4)+","
1750+
params=params+"autoRefill%3E"+JSON.stringify(true)+","
17491751
};
17501752

17511753
if (extract("botAutoMove")) {
@@ -2057,14 +2059,14 @@
20572059
if (extract("debug")) {
20582060
globalPlayer=ss;
20592061
};
2060-
let reticle
2062+
let isLineOfSight=false;
20612063
if (extract("showLOS")) {
20622064
const player=currentlyTargeting||playerLookingAt||undefined
20632065
if (player) {
2064-
reticle=getLineOfSight(ss,player)
2066+
isLineOfSight=getLineOfSight(ss,player);
20652067
};
2066-
}
2067-
highlightCrossHairReticleDot(ss,reticle);
2068+
};
2069+
highlightCrossHairReticleDot(ss,isLineOfSight);
20682070
if ( extract("chatHighlight") ) {
20692071
document.getElementById("chatOut").style.userSelect="text"
20702072
};
@@ -2232,6 +2234,8 @@
22322234
doAutoFire=true;
22332235
} else if (autoFireType=="whileAimbot" && didAimbot) {
22342236
doAutoFire=true;
2237+
} else if (autoFireType=="lineOfSight" && isLineOfSight) {
2238+
doAutoFire=true;
22352239
};
22362240
if (doAutoFire) {
22372241
if ((ammo.rounds>0)||(ammo.store>0)) {

0 commit comments

Comments
 (0)