mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
fc93b13b55
commit
bb70f08e0c
2 changed files with 8 additions and 1 deletions
|
|
@ -17174,7 +17174,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
|
||||||
S_NULL, // xdeathstate
|
S_NULL, // xdeathstate
|
||||||
sfx_None, // deathsound
|
sfx_None, // deathsound
|
||||||
0, // speed
|
0, // speed
|
||||||
26*FRACUNIT, // radius
|
24*FRACUNIT, // radius
|
||||||
52*FRACUNIT, // height
|
52*FRACUNIT, // height
|
||||||
-1, // display offset
|
-1, // display offset
|
||||||
0, // mass
|
0, // mass
|
||||||
|
|
|
||||||
|
|
@ -8395,6 +8395,13 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
mobj->color = mobj->target->color;
|
mobj->color = mobj->target->color;
|
||||||
mobj->colorized = (mobj->target->player->kartstuff[k_comebackmode]);
|
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->target->player->kartstuff[k_comebacktimer] > 0)
|
||||||
{
|
{
|
||||||
if (mobj->state != &states[mobj->info->spawnstate])
|
if (mobj->state != &states[mobj->info->spawnstate])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue