gemidyne / microtf2

A custom gamemode for Team Fortress 2 - Players compete against each other to get the most points by playing a series of rapid fire microgames in order to win the round!
https://www.gemidyne.com/projects/microtf2
GNU General Public License v2.0
30 stars 17 forks source link

Players can stealthjoin or leave/rejoin during Lowest Score Wins to cheat the Special Round #70

Closed HeatRiser closed 5 years ago

HeatRiser commented 5 years ago

One of our runs with the plugin showed players leaving/rejoining to get a score of 0 during Lowest Score Wins - we've counteracted this by changing line 226 of AS-MicroTF2.sp from:

if (!player.IsParticipating && SpecialRoundID != 17)

to

if (!player.IsParticipating && SpecialRoundID != 9 && SpecialRoundID != 17)

(probably worth changing the comments roundabout those lines.)

safalin1 commented 5 years ago

good catch! Will add this in just now