More changes to thrown items, higher gravity and fly faster

This commit is contained in:
Sryder13 2017-10-28 02:44:25 +01:00
parent bda85bea4a
commit 48e0d64525
2 changed files with 9 additions and 5 deletions

View file

@ -1927,13 +1927,13 @@ static mobj_t *K_ThrowKartItem(player_t *player, boolean missile, mobjtype_t map
switch (cv_kartcc.value)
{
case 50:
PROJSPEED = 40*FRACUNIT; // Avg Speed is 34
PROJSPEED = 68*FRACUNIT; // Avg Speed is 34
break;
case 150:
PROJSPEED = 60*FRACUNIT; // Avg Speed is 48
PROJSPEED = 96*FRACUNIT; // Avg Speed is 48
break;
default:
PROJSPEED = 50*FRACUNIT; // Avg Speed is 41
PROJSPEED = 82*FRACUNIT; // Avg Speed is 41
break;
}
@ -2050,9 +2050,9 @@ static mobj_t *K_ThrowKartItem(player_t *player, boolean missile, mobjtype_t map
INT32 HEIGHT;
if (dir == 2)
HEIGHT = 30*FRACUNIT + player->mo->momz;
HEIGHT = 40*FRACUNIT + player->mo->momz;
else
HEIGHT = 20*FRACUNIT + player->mo->momz;
HEIGHT = 30*FRACUNIT + player->mo->momz;
mo->momx = player->mo->momx + FixedMul(FINECOSINE(fa), PROJSPEED);
mo->momy = player->mo->momy + FixedMul(FINESINE(fa), PROJSPEED);

View file

@ -1378,6 +1378,10 @@ fixed_t P_GetMobjGravity(mobj_t *mo)
break;
case MT_WATERDROP:
gravityadd >>= 1;
case MT_BANANAITEM:
case MT_FAKEITEM:
case MT_BOMBITEM:
gravityadd = FixedMul(gravityadd, 5*FRACUNIT/2);
default:
break;
}