Give karma items their own hitbox size

Bombs & fakes get 24, items get 36. Technically a slight nerf to bomb, but it's more consistent and it's so tiny of a change that it'll be unnoticeable I feel :V
This commit is contained in:
TehRealSalt 2018-10-24 17:16:32 -04:00
parent 2e3f6b09af
commit 3dba084fd9
2 changed files with 8 additions and 1 deletions

View file

@ -17174,7 +17174,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
S_NULL, // xdeathstate
sfx_None, // deathsound
0, // speed
26*FRACUNIT, // radius
24*FRACUNIT, // radius
52*FRACUNIT, // height
-1, // display offset
0, // mass

View file

@ -8395,6 +8395,13 @@ void P_MobjThinker(mobj_t *mobj)
mobj->color = mobj->target->color;
mobj->colorized = (mobj->target->player->kartstuff[k_comebackmode]);
// Give items an item-sized hitbox
if (mobj->target->player->kartstuff[k_comebackmode] == 1)
mobj->radius = 36*mobj->target->scale;
else
mobj->radius = 24*mobj->target->scale;
mobj->height = 2*mobj->radius;
if (mobj->target->player->kartstuff[k_comebacktimer] > 0)
{
if (mobj->state != &states[mobj->info->spawnstate])