mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add K_GivePointsToPlayer, gives the points and spawns the VFX in one fell swoop
This commit is contained in:
parent
b08dcc06c1
commit
b52384b294
3 changed files with 9 additions and 4 deletions
|
|
@ -3942,8 +3942,7 @@ void K_BattleAwardHit(player_t *player, player_t *victim, mobj_t *inflictor, UIN
|
|||
);
|
||||
}
|
||||
|
||||
P_AddPlayerScore(player, points);
|
||||
K_SpawnBattlePoints(player, victim, points);
|
||||
K_GivePointsToPlayer(player, victim, points);
|
||||
}
|
||||
|
||||
void K_SpinPlayer(player_t *player, mobj_t *inflictor, mobj_t *source, INT32 type)
|
||||
|
|
@ -4852,6 +4851,12 @@ void K_TakeBumpersFromPlayer(player_t *player, player_t *victim, UINT8 amount)
|
|||
S_StartSound(player->mo, sfx_3db06);
|
||||
}
|
||||
|
||||
void K_GivePointsToPlayer(player_t *player, player_t *victim, UINT8 amount)
|
||||
{
|
||||
P_AddPlayerScore(player, amount);
|
||||
K_SpawnBattlePoints(player, victim, amount);
|
||||
}
|
||||
|
||||
#define MINEQUAKEDIST 4096
|
||||
|
||||
// Does the proximity screen flash and quake for explosions
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ INT32 K_ExplodePlayer(player_t *player, mobj_t *inflictor, mobj_t *source);
|
|||
void K_DebtStingPlayer(player_t *player, mobj_t *source);
|
||||
void K_GiveBumpersToPlayer(player_t *player, player_t *victim, UINT8 amount);
|
||||
void K_TakeBumpersFromPlayer(player_t *player, player_t *victim, UINT8 amount);
|
||||
void K_GivePointsToPlayer(player_t *player, player_t *victim, UINT8 amount);
|
||||
void K_MineFlashScreen(mobj_t *source);
|
||||
void K_SpawnMineExplosion(mobj_t *source, skincolornum_t color, tic_t delay);
|
||||
void K_SpawnLandMineExplosion(mobj_t *source, skincolornum_t color, tic_t delay);
|
||||
|
|
|
|||
|
|
@ -1017,8 +1017,7 @@ void VS_BlendEye_Damage(mobj_t *mobj, mobj_t *inflictor, mobj_t *source, INT32 d
|
|||
|
||||
if (source && source->player)
|
||||
{
|
||||
P_AddPlayerScore(source->player, 1);
|
||||
K_SpawnBattlePoints(source->player, NULL, 1);
|
||||
K_GivePointsToPlayer(source->player, NULL, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue