mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Battle: reduce damage hitlag + monitor hitlag
This commit is contained in:
parent
76a42ca44f
commit
dd71c81b24
2 changed files with 4 additions and 1 deletions
|
|
@ -664,7 +664,7 @@ Obj_MonitorOnDamage
|
||||||
monitor_rammingspeed(monitor) = inflictor
|
monitor_rammingspeed(monitor) = inflictor
|
||||||
? FixedDiv(FixedHypot(inflictor->momx, inflictor->momy), 4 * inflictor->radius) : 0;
|
? FixedDiv(FixedHypot(inflictor->momx, inflictor->momy), 4 * inflictor->radius) : 0;
|
||||||
monitor->hitlag =
|
monitor->hitlag =
|
||||||
6 * get_damage_multiplier(monitor) / FRACUNIT;
|
3 * get_damage_multiplier(monitor) / FRACUNIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -3411,6 +3411,9 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
||||||
if (source && source->player && target)
|
if (source && source->player && target)
|
||||||
G_GhostAddHit((INT32) (source->player - players), target);
|
G_GhostAddHit((INT32) (source->player - players), target);
|
||||||
|
|
||||||
|
if ((gametyperules & GTR_BUMPERS) && !battleprisons)
|
||||||
|
laglength /= 2;
|
||||||
|
|
||||||
K_SetHitLagForObjects(target, inflictor, source, laglength, true);
|
K_SetHitLagForObjects(target, inflictor, source, laglength, true);
|
||||||
|
|
||||||
target->flags2 |= MF2_ALREADYHIT;
|
target->flags2 |= MF2_ALREADYHIT;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue