Skip to content

Commit c818196

Browse files
committed
fix: shotgun not gibbing unless aiming at feet
Closes #794. Note that now when shooting at two players standing behind each other, the second target will take less damage, because the dead body of the first player will absorb the pellets until it gets gibbed (that is, up to 4 pellets, see `GIB_HEALTH` and `DEFAULT_SHOTGUN_DAMAGE`). The purpose of the removed line is not entirely clear. Maybe it's just leftover code, because the height of a dead body is handled in `PM_CheckDuck`. See the issue description for more details.
1 parent b2a9284 commit c818196

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

code/game/g_combat.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,6 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
601601

602602
self->s.loopSound = 0;
603603

604-
self->r.maxs[2] = -8;
605-
606604
// don't allow respawn until the death anim is done
607605
// g_forcerespawn may force spawning at some later time
608606
self->client->respawnTime = level.time + 1700;

0 commit comments

Comments
 (0)