mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-05 06:22:51 +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
|
||||
? FixedDiv(FixedHypot(inflictor->momx, inflictor->momy), 4 * inflictor->radius) : 0;
|
||||
monitor->hitlag =
|
||||
6 * get_damage_multiplier(monitor) / FRACUNIT;
|
||||
3 * get_damage_multiplier(monitor) / FRACUNIT;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -3411,6 +3411,9 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
if (source && source->player && target)
|
||||
G_GhostAddHit((INT32) (source->player - players), target);
|
||||
|
||||
if ((gametyperules & GTR_BUMPERS) && !battleprisons)
|
||||
laglength /= 2;
|
||||
|
||||
K_SetHitLagForObjects(target, inflictor, source, laglength, true);
|
||||
|
||||
target->flags2 |= MF2_ALREADYHIT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue