mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-23 08:22:58 +00:00
Instawhip monitor hack: one contact per whip
This commit is contained in:
parent
d95ceac1c4
commit
57e03e8a80
1 changed files with 9 additions and 0 deletions
|
|
@ -814,6 +814,15 @@ boolean K_InstaWhipCollide(mobj_t *t1, mobj_t *t2)
|
|||
|| t2->type == MT_GARDENTOP || t2->type == MT_DROPTARGET || t2->type == MT_BATTLECAPSULE
|
||||
|| t2->type == MT_MONITOR)
|
||||
{
|
||||
// Monitor hack. We can hit monitors once per instawhip, no multihit shredding!
|
||||
// Damage values in Obj_MonitorGetDamage.
|
||||
if (t2->type == MT_MONITOR)
|
||||
{
|
||||
if (t1->extravalue1 != 1)
|
||||
return false;
|
||||
t1->extravalue1 = 1;
|
||||
}
|
||||
|
||||
P_DamageMobj(t2, t1, t1, 1, DMG_NORMAL);
|
||||
K_AddHitLag(t1->target, attackerHitlag, false);
|
||||
t1->hitlag = t1->target->hitlag;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue