Advertisement
ksubagja

Untitled

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