mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Whip collects items
This commit is contained in:
parent
a9e3472e21
commit
136cb20cb6
1 changed files with 5 additions and 3 deletions
|
|
@ -1059,11 +1059,13 @@ boolean K_InstaWhipCollide(mobj_t *shield, mobj_t *victim)
|
||||||
shield->extravalue1 = 1;
|
shield->extravalue1 = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (P_DamageMobj(victim, shield, attacker, 1, DMG_NORMAL))
|
if (!K_TryPickMeUp(attackerPlayer->mo, victim))
|
||||||
{
|
{
|
||||||
K_AddHitLag(attacker, attackerHitlag, false);
|
P_DamageMobj(victim, shield, attacker, 1, DMG_NORMAL);
|
||||||
shield->hitlag = attacker->hitlag;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
K_AddHitLag(attacker, attackerHitlag, false);
|
||||||
|
shield->hitlag = attacker->hitlag;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue