Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function glow() {
- var localPlayer = mem.readMemory(cDLL + dwLocalPlayer, "int");
- var localPlayerTeam = mem.readMemory(localPlayer + dwTeamNum, "int");
- var iObjCount = mem.readMemory(cDLL + dwGlowObject + 0x4, "int");
- for (var i = 1; i < iObjCount; i++){
- var dwEntity = mem.readMemory(cDLL + dwEntList + ( i - 1) * 0x10, "int");
- var iEntityTeam = mem.readMemory(dwEntity + dwTeamNum, "int");
- var bEntityDormant = mem.readMemory(dwEntity + dwbDormant, "int");
- var a1 = mem.readMemory(dwEntity + 0x8, "int");
- var a2 = mem.readMemory(a1 + 2 * 0x4, "int");
- var a3 = mem.readMemory(a2 + 0x1, "int");
- var iClassID = mem.readMemory(a3 + 0x14, "int");
- if (iClassID == 35)
- {
- if (!bEntityDormant)
- {
- var iGlowIndex = mem.readMemory(dwEntity + dwGlowIndex, "int");
- if (iEntityTeam == localPlayerTeam)
- color = hexToRgb('#00ff00');
- else
- color = hexToRgb('#ff0f0f');
- setGlow(i, color.r, color.g, color.b, color.a);
- }
- }
- else if (iClassID == /*OUTRO ID, tipo galinha, bot, c4, sei la*/)
- {
- color = hexToRgb('#ff0f0f');
- setGlow(i, color.r, color.g, color.b, color.a);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement