Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void _fastcall DamageUp() {
- __try{
- DWORD CGameCharaBase = GetGameCharaBase(GetMyCharaIndex());
- if(!CGameCharaBase)return;
- DWORD CGameCharaWeaponContext = GetGameCharaWeaponContext(CGameCharaBase);
- DWORD WeaponBase = GetCurrentWeapon(CGameCharaWeaponContext);
- if (WeaponBase)
- {
- for (int IsSlot = 0; IsSlot < 16; IsSlot++)
- {
- if (GetMyCharaIndex(IsSlot) != IsSlot)
- {
- if (GetMyCharaIndex(IsSlot) %2 != IsSlot % 2)
- {
- if(IsSlot != -1)
- {
- if(GetUserLifeX(IsSlot))
- {
- SetDoLineColl(WeaponBase,GetVectorBonePos(IsSlot,4), GetVectorBonePos(IsSlot,33), IsSlot);
- SetWriteGameEvent(WeaponBase,GetVectorBonePos(IsSlot,33));
- }
- }
- }
- }
- }
- }
- }__except( EXCEPTION_EXECUTE_HANDLER ){}
- }
- void CallerDamageK400 ()
- {
- if (Damagae ==1)
- {
- DamageUp();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement