mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Broly: scale hitbox
This commit is contained in:
parent
c5f421831f
commit
a96a64dff6
2 changed files with 5 additions and 3 deletions
|
|
@ -30674,8 +30674,8 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
|
||||||
S_NULL, // xdeathstate
|
S_NULL, // xdeathstate
|
||||||
sfx_None, // deathsound
|
sfx_None, // deathsound
|
||||||
0, // speed
|
0, // speed
|
||||||
0, // radius
|
40*FRACUNIT, // radius
|
||||||
0, // height
|
80*FRACUNIT, // height
|
||||||
0, // display offset
|
0, // display offset
|
||||||
100, // mass
|
100, // mass
|
||||||
1, // damage
|
1, // damage
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ struct Broly : Mobj
|
||||||
x->target(source);
|
x->target(source);
|
||||||
|
|
||||||
// Shrink into center of source object.
|
// Shrink into center of source object.
|
||||||
x->z = (source->z + source->height / 2);
|
x->z = source->center().z - (x->height / 2);
|
||||||
|
|
||||||
x->colorized = true;
|
x->colorized = true;
|
||||||
x->color = source->color;
|
x->color = source->color;
|
||||||
|
|
@ -90,9 +90,11 @@ struct Broly : Mobj
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Fixed center = z + (height / 2);
|
||||||
const Vec2<Fixed> v = size();
|
const Vec2<Fixed> v = size();
|
||||||
|
|
||||||
scale(Easing_OutSine(linear(), v.y, v.x));
|
scale(Easing_OutSine(linear(), v.y, v.x));
|
||||||
|
z = center - (height / 2);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue