Skip to content

fix: look at explosion on suicide, fix FF for mine#66

Open
WofWca wants to merge 1 commit intoec-:masterfrom
WofWca:fix-look-at-missile-on-suicide
Open

fix: look at explosion on suicide, fix FF for mine#66
WofWca wants to merge 1 commit intoec-:masterfrom
WofWca:fix-look-at-missile-on-suicide

Conversation

@WofWca
Copy link
Contributor

@WofWca WofWca commented Jan 26, 2026

  1. When killing self with a missile, look at the explosion instead of looking at the center of the world.
  2. Make proximity mines not damage teammates, even with g_friendlyFire 1. This makes sense since proximity mines already don't damage self.

I have checked through all the usages of inflictor inside of G_Damage:

  • player_die() -> Team_FragBonuses: unused.
  • player_die -> LookAtKiller: used, and it's the point of this commit.
  • targ->use: none of the use functions utilize inflictor.
  • mod == MOD_PROXIMITY_MINE: also fixes a bug.

1. When killing self with a missile, look at the explosion
   instead of looking at the center of the world.
2. Make proximity mines not damage teammates,
   even with `g_friendlyFire 1`.
   This makes sense since proximity mines already don't damage self.

I have checked through all the usages of `inflictor`
inside of `G_Damage`:
- `player_die() -> Team_FragBonuses`: unused.
- `player_die -> LookAtKiller`: used,
  and it's the point of this commit.
- `targ->use`: none of the `use` functions utilize `inflictor`.
- `mod == MOD_PROXIMITY_MINE`: also fixes a bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant