Skip to content
Snippets Groups Projects
Commit aa9cc6e6 authored by James R.'s avatar James R.
Browse files

Merge branch 'char-damage-fix' into 'next'

Fix Amy and Fang being able to attack other players in MP Special Stages

See merge request !558
parents e6532b9b 8d8e0ca2
Branches
Tags
2 merge requests!718Rename R_IsPointInSubsector to R_PointInSubsectorOrNull/Nil,!558Fix Amy and Fang being able to attack other players in MP Special Stages
...@@ -3426,6 +3426,24 @@ void P_SpecialStageDamage(player_t *player, mobj_t *inflictor, mobj_t *source) ...@@ -3426,6 +3426,24 @@ void P_SpecialStageDamage(player_t *player, mobj_t *inflictor, mobj_t *source)
if (player->powers[pw_invulnerability] || player->powers[pw_flashing] || player->powers[pw_super]) if (player->powers[pw_invulnerability] || player->powers[pw_flashing] || player->powers[pw_super])
return; return;
if (!cv_friendlyfire.value)
{
if (inflictor->type == MT_LHRT && !(player->powers[pw_shield] & SH_NOSTACK))
{
if (player->revitem != MT_LHRT && player->spinitem != MT_LHRT && player->thokitem != MT_LHRT) // Healers do not get to heal other healers.
{
P_SwitchShield(player, SH_PINK);
S_StartSound(player->mo, mobjinfo[MT_PITY_ICON].seesound);
}
}
if (source->player->ctfteam == player->ctfteam)
return;
}
if (inflictor->type == MT_LHRT)
return;
if (player->powers[pw_shield] || player->bot) //If One-Hit Shield if (player->powers[pw_shield] || player->bot) //If One-Hit Shield
{ {
P_RemoveShield(player); P_RemoveShield(player);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment