mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Pitblame in Race, stop spinout when lightsnaking
This commit is contained in:
parent
5dda483460
commit
db467088f9
2 changed files with 14 additions and 11 deletions
|
|
@ -9263,6 +9263,9 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
||||||
player->flashing = K_GetKartFlashing(player);
|
player->flashing = K_GetKartFlashing(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player->spinouttimer && player->respawn.state != RESPAWNST_NONE)
|
||||||
|
player->spinouttimer = 0;
|
||||||
|
|
||||||
if (player->spinouttimer)
|
if (player->spinouttimer)
|
||||||
{
|
{
|
||||||
if (((P_IsObjectOnGround(player->mo)
|
if (((P_IsObjectOnGround(player->mo)
|
||||||
|
|
|
||||||
|
|
@ -2590,20 +2590,20 @@ static boolean P_KillPlayer(player_t *player, mobj_t *inflictor, mobj_t *source,
|
||||||
player->roundconditions.checkthisframe = true;
|
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)
|
if (gametyperules & (GTR_BUMPERS|GTR_CHECKPOINTS))
|
||||||
&& (playeringame[player->pitblame]) && (!players[player->pitblame].spectator)
|
|
||||||
&& (players[player->pitblame].mo) && (!P_MobjWasRemoved(players[player->pitblame].mo)))
|
|
||||||
{
|
|
||||||
P_DamageMobj(player->mo, players[player->pitblame].mo, players[player->pitblame].mo, 1, DMG_KARMA);
|
P_DamageMobj(player->mo, players[player->pitblame].mo, players[player->pitblame].mo, 1, DMG_KARMA);
|
||||||
player->pitblame = -1;
|
else
|
||||||
}
|
K_SpawnAmps(&players[player->pitblame], 20, player->mo);
|
||||||
else if (player->mo->health > 1 || K_Cooperative())
|
player->pitblame = -1;
|
||||||
{
|
}
|
||||||
|
else if (player->mo->health > 1 || K_Cooperative())
|
||||||
|
{
|
||||||
|
if (gametyperules & (GTR_BUMPERS|GTR_CHECKPOINTS))
|
||||||
player->mo->health--;
|
player->mo->health--;
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modeattacking & ATTACKING_SPB)
|
if (modeattacking & ATTACKING_SPB)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue