var mem require memoryjs var aks require asynckeystate var sleep requi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
var mem = require('memoryjs');
var aks = require("asynckeystate");
var sleep = require('sleep');
var procName = "csgo.exe";
var proc = mem.openProcess(procName);
var clientModule = mem.findModule("client.dll", proc.th32ProcessID);
var cDLL = clientModule.modBaseAddr;
var engineModule = mem.findModule("engine.dll", proc.th32ProcessID);
var eDLL = engineModule.modBaseAddr;
var dwForceJump = 0x4F174E0;
var dwLocalPlayer = 0xAA3154;
var dwFlags = 0x100;
var dwEntList = 0x4A80254;
var dwTeamNum = 0xF0;
var dwCrosshairID = 0xB2A4;
var dwForceAttack = 0x2EC25E0;
var dwFlashMaxAlpha = 0xA2F4;
var dwEntLoopDist = 0x10;
function trig()
{
var localPlayer = mem.readMemory(cDLL + dwLocalPlayer, "int");
var localPlayerTeam = mem.readMemory(localPlayer + dwTeamNum, "int");
var localInCross = mem.readMemory(localPlayer + dwCrosshairID, "int");
var entityInCross = mem.readMemory(cDLL + dwEntList + ((localInCross - 1) * dwEntLoopDist), "int");
if (aks.getAsyncKeyState(0x12)) //Тут меняем кнопку
{
mem.writeMemory(cDLL + dwForceAttack, (localInCross > 0 && localInCross <= 64) && (entityInCross != localPlayerTeam)?5:4, "int");
sleep.usleep(1);
}
}
function noflash()
{
var localPlayer = mem.readMemory(cDLL + dwLocalPlayer, "int");
var flashMaxAlpha = mem.readMemory(localPlayer + dwFlashMaxAlpha, "float");
if (flashMaxAlpha > 0.0)
{
mem.writeMemory(localPlayer + dwFlashMaxAlpha, 0.0, "float");
}
}
function bunnyhop()
{
var localPlayer = mem.readMemory(cDLL + dwLocalPlayer, "int");
var iFlags = mem.readMemory(localPlayer + dwFlags, "int");
if (aks.getAsyncKeyState(0x20))
{
mem.writeMemory(cDLL + dwForceJump, ((iFlags==257)||(iFlags==263))?5:4, "int");
}
}
while (1)
{
bunnyhop();
noflash();
trig();
sleep.usleep(10);
}