Advertisement
ksubagja

Source Code Boomberman

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