mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Do not spawn Heavy Magician box/particles, or play associated sounds, if the player is a spectator
This commit is contained in:
parent
ddb55c95c7
commit
79401a888f
1 changed files with 6 additions and 3 deletions
|
|
@ -433,7 +433,7 @@ void SetRandomFakePlayerSkin(player_t* player, boolean fast)
|
||||||
|
|
||||||
SetFakePlayerSkin(player, i);
|
SetFakePlayerSkin(player, i);
|
||||||
|
|
||||||
if (player->mo)
|
if (player->mo && player->spectator == false)
|
||||||
{
|
{
|
||||||
S_StartSound(player->mo, sfx_kc33);
|
S_StartSound(player->mo, sfx_kc33);
|
||||||
S_StartSound(player->mo, sfx_cdfm44);
|
S_StartSound(player->mo, sfx_cdfm44);
|
||||||
|
|
@ -500,8 +500,11 @@ void ClearFakePlayerSkin(player_t* player)
|
||||||
if ((flags & SF_IRONMAN) && !P_MobjWasRemoved(player->mo))
|
if ((flags & SF_IRONMAN) && !P_MobjWasRemoved(player->mo))
|
||||||
{
|
{
|
||||||
SetFakePlayerSkin(player, skinid);
|
SetFakePlayerSkin(player, skinid);
|
||||||
S_StartSound(player->mo, sfx_s3k9f);
|
if (player->spectator == false)
|
||||||
K_SpawnMagicianParticles(player->mo, 5);
|
{
|
||||||
|
S_StartSound(player->mo, sfx_s3k9f);
|
||||||
|
K_SpawnMagicianParticles(player->mo, 5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
player->fakeskin = MAXSKINS;
|
player->fakeskin = MAXSKINS;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue