mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 21:31:32 +00:00
Change "player" to "user" to make it easier to read
This commit is contained in:
parent
0a3183aa82
commit
9b7eea408d
1 changed files with 8 additions and 8 deletions
16
src/k_kart.c
16
src/k_kart.c
|
@ -3135,20 +3135,20 @@ void K_DoSneaker(player_t *player, INT32 type)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void K_DoShrink(player_t *player)
|
static void K_DoShrink(player_t *user)
|
||||||
{
|
{
|
||||||
INT32 i;
|
INT32 i;
|
||||||
|
|
||||||
S_StartSound(player->mo, sfx_kc46); // Sound the BANG!
|
S_StartSound(user->mo, sfx_kc46); // Sound the BANG!
|
||||||
player->pflags |= PF_ATTACKDOWN;
|
user->pflags |= PF_ATTACKDOWN;
|
||||||
|
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
if (!playeringame[i] || players[i].spectator || !players[i].mo)
|
if (!playeringame[i] || players[i].spectator || !players[i].mo)
|
||||||
continue;
|
continue;
|
||||||
if (&players[i] == player)
|
if (&players[i] == user)
|
||||||
continue;
|
continue;
|
||||||
if (players[i].kartstuff[k_position] < player->kartstuff[k_position])
|
if (players[i].kartstuff[k_position] < user->kartstuff[k_position])
|
||||||
{
|
{
|
||||||
//P_FlashPal(&players[i], PAL_NUKE, 10);
|
//P_FlashPal(&players[i], PAL_NUKE, 10);
|
||||||
|
|
||||||
|
@ -3163,10 +3163,10 @@ static void K_DoShrink(player_t *player)
|
||||||
|
|
||||||
// Wipeout
|
// Wipeout
|
||||||
K_DropItems(&players[i]);
|
K_DropItems(&players[i]);
|
||||||
K_SpinPlayer(&players[i], player->mo, 1, false);
|
K_SpinPlayer(&players[i], user->mo, 1, false);
|
||||||
|
|
||||||
// P_RingDamage
|
// P_RingDamage
|
||||||
P_DoPlayerPain(&players[i], player->mo, player->mo);
|
P_DoPlayerPain(&players[i], user->mo, user->mo);
|
||||||
P_ForceFeed(&players[i], 40, 10, TICRATE, 40 + min((players[i].mo->health-1), 100)*2);
|
P_ForceFeed(&players[i], 40, 10, TICRATE, 40 + min((players[i].mo->health-1), 100)*2);
|
||||||
P_PlayRinglossSound(players[i].mo); // Ringledingle!
|
P_PlayRinglossSound(players[i].mo); // Ringledingle!
|
||||||
|
|
||||||
|
@ -3178,7 +3178,7 @@ static void K_DoShrink(player_t *player)
|
||||||
quake.time = 5;
|
quake.time = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
players[i].kartstuff[k_growshrinktimer] -= (200+(40*(16-players[i].kartstuff[k_position])));
|
players[i].kartstuff[k_growshrinktimer] -= (200+(40*(MAXPLAYERS-players[i].kartstuff[k_position])));
|
||||||
players[i].kartstuff[k_sneakertimer] = 0;
|
players[i].kartstuff[k_sneakertimer] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue