mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-01 20:52:47 +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);
|
||||
}
|
||||
|
||||
if (player->spinouttimer && player->respawn.state != RESPAWNST_NONE)
|
||||
player->spinouttimer = 0;
|
||||
|
||||
if (player->spinouttimer)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
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