mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Scale Gachabom and Ballhog with Grow/Shrink
This commit is contained in:
parent
d0a66f9a4e
commit
8524401c03
1 changed files with 5 additions and 0 deletions
|
|
@ -12406,6 +12406,8 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
{
|
{
|
||||||
INT32 numhogs = min((player->ballhogcharge / BALLHOGINCREMENT), player->itemamount);
|
INT32 numhogs = min((player->ballhogcharge / BALLHOGINCREMENT), player->itemamount);
|
||||||
|
|
||||||
|
K_SetItemOut(player); // need this to set itemscale
|
||||||
|
|
||||||
if (numhogs <= 0)
|
if (numhogs <= 0)
|
||||||
{
|
{
|
||||||
// no tapfire scams
|
// no tapfire scams
|
||||||
|
|
@ -12434,6 +12436,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
K_PlayAttackTaunt(player->mo);
|
K_PlayAttackTaunt(player->mo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
K_UnsetItemOut(player);
|
||||||
player->ballhogcharge = 0;
|
player->ballhogcharge = 0;
|
||||||
player->itemflags &= ~IF_HOLDREADY;
|
player->itemflags &= ~IF_HOLDREADY;
|
||||||
player->botvars.itemconfirm = 0;
|
player->botvars.itemconfirm = 0;
|
||||||
|
|
@ -12772,7 +12775,9 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
case KITEM_GACHABOM:
|
case KITEM_GACHABOM:
|
||||||
if (ATTACK_IS_DOWN && !HOLDING_ITEM && NO_HYUDORO)
|
if (ATTACK_IS_DOWN && !HOLDING_ITEM && NO_HYUDORO)
|
||||||
{
|
{
|
||||||
|
K_SetItemOut(player); // need this to set itemscale
|
||||||
K_ThrowKartItem(player, true, MT_GACHABOM, 0, 0, 0);
|
K_ThrowKartItem(player, true, MT_GACHABOM, 0, 0, 0);
|
||||||
|
K_UnsetItemOut(player);
|
||||||
K_PlayAttackTaunt(player->mo);
|
K_PlayAttackTaunt(player->mo);
|
||||||
player->itemamount--;
|
player->itemamount--;
|
||||||
player->roundconditions.gachabom_miser = (
|
player->roundconditions.gachabom_miser = (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue