mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-19 22:42:46 +00:00
srb2::Mobj: add exact_hitlag method
This commit is contained in:
parent
52449bdb5e
commit
9d0650786e
1 changed files with 5 additions and 0 deletions
|
|
@ -276,6 +276,11 @@ struct Mobj : mobj_t
|
|||
{
|
||||
K_SetHitLagForObjects(this, inflictor, source, tics, damage);
|
||||
}
|
||||
void exact_hitlag(INT32 tics, bool damage)
|
||||
{
|
||||
mobj_t::hitlag = tics;
|
||||
mobj_t::eflags = (mobj_t::eflags & ~MFE_DAMAGEHITLAG) | (MFE_DAMAGEHITLAG * damage);
|
||||
}
|
||||
};
|
||||
|
||||
}; // namespace srb2
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue