Skip to content

Commit

Permalink
Made trigger_hurt strip invulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
KovaaK committed Sep 24, 2023
1 parent bbf9786 commit 51d9395
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/combat.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ void T_Damage(gedict_t *targ, gedict_t *inflictor, gedict_t *attacker, float dam
// can't apply damage to dead
if (!targ->s.v.takedamage || ISDEAD(targ))
{
if (!(cvar("k_smashmode") && isRA() && dtTRIGGER_HURT == targ->deathtype))
return;
}

Expand Down
3 changes: 3 additions & 0 deletions src/triggers.c
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,9 @@ void hurt_items()

void hurt_touch()
{
if (isRA() && ra_match_fight != 2 && cvar("k_smashmode") && streq(other->classname, "player"))
other->s.v.takedamage = DAMAGE_AIM;

if (!other->s.v.takedamage)
{
hurt_items();
Expand Down

0 comments on commit 51d9395

Please sign in to comment.