mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'no-pain-respawn' into 'master'
Pitblame in Race, stop spinout when lightsnaking Closes #1360 See merge request kart-krew-dev/ring-racers-internal!2534
This commit is contained in:
commit
c1b10750a3
2 changed files with 14 additions and 11 deletions
|
|
@ -9292,6 +9292,9 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
player->flashing = K_GetKartFlashing(player);
|
||||
}
|
||||
|
||||
if (player->spinouttimer && player->respawn.state != RESPAWNST_NONE)
|
||||
player->spinouttimer = 0;
|
||||
|
||||
if (player->spinouttimer)
|
||||
{
|
||||
if (((P_IsObjectOnGround(player->mo)
|
||||
|
|
|
|||
|
|
@ -2600,20 +2600,20 @@ static boolean P_KillPlayer(player_t *player, mobj_t *inflictor, mobj_t *source,
|
|||
player->roundconditions.checkthisframe = true;
|
||||
}
|
||||
|
||||
if (gametyperules & (GTR_BUMPERS|GTR_CHECKPOINTS))
|
||||
if ((player->pitblame > -1) && (player->pitblame < MAXPLAYERS)
|
||||
&& (playeringame[player->pitblame]) && (!players[player->pitblame].spectator)
|
||||
&& (players[player->pitblame].mo) && (!P_MobjWasRemoved(players[player->pitblame].mo)))
|
||||
{
|
||||
if ((player->pitblame > -1) && (player->pitblame < MAXPLAYERS)
|
||||
&& (playeringame[player->pitblame]) && (!players[player->pitblame].spectator)
|
||||
&& (players[player->pitblame].mo) && (!P_MobjWasRemoved(players[player->pitblame].mo)))
|
||||
{
|
||||
if (gametyperules & (GTR_BUMPERS|GTR_CHECKPOINTS))
|
||||
P_DamageMobj(player->mo, players[player->pitblame].mo, players[player->pitblame].mo, 1, DMG_KARMA);
|
||||
player->pitblame = -1;
|
||||
}
|
||||
else if (player->mo->health > 1 || K_Cooperative())
|
||||
{
|
||||
else
|
||||
K_SpawnAmps(&players[player->pitblame], 20, player->mo);
|
||||
player->pitblame = -1;
|
||||
}
|
||||
else if (player->mo->health > 1 || K_Cooperative())
|
||||
{
|
||||
if (gametyperules & (GTR_BUMPERS|GTR_CHECKPOINTS))
|
||||
player->mo->health--;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (modeattacking & ATTACKING_SPB)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue