Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function glow() {
  2.     var localPlayer = mem.readMemory(cDLL + dwLocalPlayer, "int");
  3.     var localPlayerTeam = mem.readMemory(localPlayer + dwTeamNum, "int");
  4.     var iObjCount = mem.readMemory(cDLL + dwGlowObject + 0x4, "int");
  5.     for (var i = 1; i < iObjCount; i++){
  6.         var dwEntity =  mem.readMemory(cDLL + dwEntList + ( i - 1) * 0x10, "int");
  7.         var iEntityTeam = mem.readMemory(dwEntity + dwTeamNum, "int");
  8.         var bEntityDormant = mem.readMemory(dwEntity + dwbDormant, "int");
  9.  
  10.         var a1 = mem.readMemory(dwEntity + 0x8, "int");
  11.         var a2 = mem.readMemory(a1 + 2 * 0x4, "int");
  12.         var a3 = mem.readMemory(a2 + 0x1, "int");
  13.         var iClassID = mem.readMemory(a3 + 0x14, "int");
  14.        
  15.         if (iClassID == 35)
  16.         {
  17.             if (!bEntityDormant)
  18.             {
  19.                 var iGlowIndex = mem.readMemory(dwEntity + dwGlowIndex, "int");
  20.                 if (iEntityTeam == localPlayerTeam)
  21.                     color = hexToRgb('#00ff00');
  22.                 else
  23.                     color = hexToRgb('#ff0f0f');
  24.  
  25.                 setGlow(i, color.r, color.g, color.b, color.a);
  26.             }
  27.         }
  28.         else if (iClassID == /*OUTRO ID, tipo galinha, bot, c4, sei la*/)
  29.         {
  30.             color = hexToRgb('#ff0f0f');
  31.             setGlow(i, color.r, color.g, color.b, color.a);
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement