mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-16 17:51:27 +00:00
More changes to thrown items, higher gravity and fly faster
This commit is contained in:
parent
bda85bea4a
commit
48e0d64525
2 changed files with 9 additions and 5 deletions
10
src/k_kart.c
10
src/k_kart.c
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue