Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[TF2] Inconsistent mp_friendlyfire 1 interactions

Open Professor-Heavy opened this issue 8 months ago • 2 comments

Sorry, but I can't exactly simplify this one too much.

Some mp_friendlyfire 1 interactions are not treated consistently, either among friendly fire itself, or just in general. This has been prevalent for some time now, only this is just a question of what should be worked on. Should mp_friendlyfire 1 be more on similar ground to regular play, only teammates can also be at the brunt of any form of damage? How much impact would fixing it have on regular play if the cvar is disabled?

This issue is just to keep track of any, and determine what could actually be reasonably fixed out of the bunch. Even for a silly multiplayer cvar, some of these could be more easily fixed than others to make it function better rather than one that lets you melee or shoot your teammates (unless you're a Sniper or Pyro, see below for that one).

This doubles up as both a bug issue for inconsistencies, and a feature request for more control over what can be affected by friendly fire and what can't (on-hit/on-kill effects, resource gain, etc)

Taunt Kills

Functional
  • Pyro's Hadouken
  • Pyro's Gas Blast
  • Soldier's Grenade
  • Spy's Fencing (Triggers "Silent Killer" attributes on hit)
Non-functional

Most of these are because they explicitly check for matching teams before dealing damage.

  • Scout's Grand Slam
  • Pyro's Armageddon
  • Pyro's Execution
  • Demoman's Barbarian Swing
  • Heavy's High Noon taunt
  • Engineer's Arm Blender and Guitar Smash taunt
  • Engineer's Texan Trickshot
  • Medic's Uberslice. If this is to be the case, any uber gain from it could be disabled, reflecting the weapon's main use.
  • Sniper's Arrow Stab

Weapons

Inconsistent Weapon Interactions
  • Some projectiles cannot hit teammates, any resulting explosions can. Most projectiles in this case will only hit teammates directly when they pass through a friendly target (Loose Cannon can't, etc)
  • Some "rage" weapons refill on hit (Could be a made a ConVar. This only assumes that this way is incorrect.)
    • Soda Popper
    • Gas Passer
    • Soldier's banner secondary weapons
  • Some beneficial on-hit/on-kill weapons trigger on hit (Same with the above)
    • Pretty Boy's Pocket Pistol
    • Half-Zatoichi
    • Soldier's banner secondary weapons
    • Air Strike
    • Powerjack
    • Black Box
    • Eyelander
    • Warrior's Spirit
    • L'Etranger
  • Scout's Mad Milk cannot affect teammates
  • Scout's Shortstop shove cannot hit teammates
  • Scout's Fan o'War will not mark teammates for death
  • Pyro's flamethrower cannot hit teammates
  • Pyro's Gas Passer cannot hit teammates
  • Pyro's Thermal Thruster does not push back teammates on landing
  • Heavy's Huo-Long Heater inferno ring cannot hit teammates
  • Heavy's Holiday Punch negates damage correctly from behind, but does not force a laugh taunt
  • Engineer's Short Circuit secondary fire cannot not hit teammates. Effect on projectiles unknown
  • Engineer's buildings cannot be hit by teammates, nor can it track/detect them, this also sounds like something that could be a ConVar.
  • Engineer teleporters aren't capable of telefragging.
  • Medic's Crusader's Crossbow heals allies and deals no damage (This is a weird one to think about resolving)
  • Medic's Vita-Saw organ harvesting spawns a gib on hit, despite the effect not actually triggering.
  • Sniper Rifle cannot hit teammates under any circumstance
  • Sniper's Jarate cannot affect teammates
  • Spy cannot backstab teammates
Correct Weapon Interactions

These are weapons that work despite their other weapon classes (see above). These are those exceptions:

  • Scout's Wrap Assassin (explosion and direct)
  • Scout's Baby Face's Blaster does not gain boost on hit
  • Scout's dodge buff considers friendly fire to be absorbed damage
  • Soldier's Black Box does not heal on friendly damage
  • Pyro's Hot Hand does not grant a speed boost when hitting teammates
  • Heavy's Eviction Notice does not grant a speed boost on hit
  • Engineer Gunslinger attacks on teammates does not count towards the third hit guaranteeing a crit
  • Engineer's Widowmaker does not grant any metal on hit
  • Engineer's Pomson 6000 collides with teammates. The secondary effects have not been tested.
  • Medic's Blutsauger does not heal on friendly damage
  • Medic's Ubersaw does not refill Ubercharge when hitting allies
  • Medic's Vita-saw does not grant Organs on hit
  • Sniper's Cleaner's Carbine does not gain rage on hit
  • Sniper's Machina can deal damage at full charge

Friendly Fire Inconsistencies

These are general inconsistencies within friendly fire itself, where friendly fire's design (removing kills) directly contradicts itself (increasing score).

Inconsistencies
  • Friendly fire kills will decrement your kill scoreboard counter, but NOT your overall score.
  • Dominations against teammates (what?) will increment the scoreboard counter for dominations

Summary

In conclusion, I spent WAY too long on writing this list as I wanted to confirm most of these for myself. While some are a little more subjective than others (again, resource gain), there evidently isn't a clear baseline as of where that consistency belongs. Taunt kills are perhaps the only thing I can think of that warrants a change as a bug fix, whereas mostly everything else is a feature request.

Even though the friendly fire feature might not be used much, some of these are glaring, making the feature a remnant of the beta that should be brought up to match the current game.

Professor-Heavy avatar Mar 15 '26 22:03 Professor-Heavy

This is incredibly easy to fix, but its time consuming. and require manual adaptation in some sub-classes. For Example the sniper rifle, there's a specific one that has his own separate check. most of the Taunt kills also require proper made statements, for each one.

ALIEN31ITA avatar Mar 16 '26 00:03 ALIEN31ITA

That's my goal, yes. While this is easy to fix, I'm also trying to make sure the code is clean and doesn't take some kind of messy workaround to accomplish it. I've read that historically some projectiles are iffy even without friendly fire in place.

Fortunately a lot of it just comes down to removing any hardcoded same-team checks. I haven't had a chance to look over every area, but I hope all of them are the same way. A tauntkill PR is already up that just removes the check, while making sure that any others with side effects actually perform it correctly. I personally believe that consolidating the taunts towards the way that the functional ones do it is the best way to go here.

Professor-Heavy avatar Mar 16 '26 00:03 Professor-Heavy