Advertisement
ksubagja

Untitled

Jul 29th, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.98 KB | None | 0 0
  1. //----------------------------------------------------------------------------------------------------//
  2. void _fastcall DamageUp() {
  3. __try{
  4. DWORD CGameCharaBase = GetGameCharaBase(GetMyCharaIndex());
  5. if(!CGameCharaBase)return;
  6.     DWORD CGameCharaWeaponContext = GetGameCharaWeaponContext(CGameCharaBase);
  7.     DWORD WeaponBase    = GetCurrentWeapon(CGameCharaWeaponContext);
  8.     if (WeaponBase)
  9.     {
  10.         for (int IsSlot = 0; IsSlot < 16; IsSlot++)
  11.         {
  12.             if (GetMyCharaIndex(IsSlot) != IsSlot)
  13.             {
  14.                 if (GetMyCharaIndex(IsSlot) %2 != IsSlot % 2)
  15.                 {
  16.                     if(IsSlot != -1)
  17.                     {
  18.                         if(GetUserLifeX(IsSlot))
  19.                             {
  20.                             SetDoLineColl(WeaponBase,GetVectorBonePos(IsSlot,4), GetVectorBonePos(IsSlot,33), IsSlot);
  21.                             SetWriteGameEvent(WeaponBase,GetVectorBonePos(IsSlot,33));
  22.                             }
  23.                         }
  24.                     }
  25.                 }
  26.         }
  27.             }
  28.     }__except( EXCEPTION_EXECUTE_HANDLER ){}
  29. }
  30.  
  31. void CallerDamageK400 () //Simpan CallerDamageK400(); < DI MAIN.CPP
  32. {
  33.     if (Damagae ==1)
  34.     {
  35.         DamageUp();
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement