Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/action/g_combat.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,11 @@ void T_Damage (edict_t * targ, edict_t * inflictor, edict_t * attacker, const ve

if ((targ->flags & FL_GODMODE) || targ->solid == SOLID_NOT) return; //rekkie -- specators don't take damage

// Add health check early to prevent processing dead entities
// Will need to accommodate for this if you want to gib dead bodies
if (targ->health <= 0 || !IS_ALIVE(targ))
return;

// do this before teamplay check
if (!targ->takedamage)
return;
Expand Down