mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'eid-super-ring-exploit-fix' into 'master'
Only apply facing angle Super Ring thrust if on ground Closes #1605 See merge request kart-krew-dev/ring-racers-internal!2685
This commit is contained in:
commit
13eb0e1470
1 changed files with 9 additions and 2 deletions
11
src/k_kart.c
11
src/k_kart.c
|
|
@ -14971,8 +14971,15 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
if (ATTACK_IS_DOWN && !HOLDING_ITEM && NO_HYUDORO)
|
||||
{
|
||||
S_StartSound(player->mo, sfx_gsha7);
|
||||
P_Thrust(player->mo, K_MomentumAngle(player->mo), 25*player->mo->scale);
|
||||
P_Thrust(player->mo, player->mo->angle, 25*player->mo->scale);
|
||||
if (P_IsObjectOnGround(player->mo)) // facing angle blends w/ momentum angle for game-feel
|
||||
{
|
||||
P_Thrust(player->mo, player->mo->angle, 25*player->mo->scale);
|
||||
P_Thrust(player->mo, K_MomentumAngle(player->mo), 25*player->mo->scale);
|
||||
}
|
||||
else // air version is momentum angle only, reduces cheese, is twice as strong to compensate
|
||||
{
|
||||
P_Thrust(player->mo, K_MomentumAngle(player->mo), 50*player->mo->scale);
|
||||
}
|
||||
|
||||
UINT8 numsparks = 8;
|
||||
for (UINT8 i = 0; i < numsparks; i++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue