redsunservers / SuperZombieFortress

Custom Team Fortress 2 Gamemode, inspired from Left 4 Dead
GNU General Public License v3.0
36 stars 27 forks source link

Fix the Disciplinary Action not hitting teammates #127

Closed Mikusch closed 2 years ago

Mikusch commented 2 years ago

87a2dc8bb61ea1b66e94d483d09679d6cc0b4141 allowed all melee hits to ignore teammates, but this broke the Soldier's whip speed boost.

This PR reverts the Disciplinary Action to the previous behavior.

FortyTwoFortyTwo commented 2 years ago

Is there a way to have DoSwingTraceInternal be called twice, first without hitting teammates, then 2nd to hit teammates if didn't hit anything? This is so that Disciplinary Action can first attempt to hit enemies for damage as first priority, then teammates for speed boost.

Mikusch commented 2 years ago

Probably, but I can see the code for that not being very pretty. And I'm not sure it's worth it. If you use the whip you WANT to prioritize hitting your teammates, so I think this is fine.