Anti Farm Patch - m-unkel/OHSystem GitHub Wiki
Anti Farm is a patch to prevent users from farming and manupulating stats with this, sometimes people give up on games and decide to leave. Sometimes only one player is afk on one side of the base and enemies can simple leak them out of the fountain frequently.
To prevent such things we have implement a anti farm script, there 4 configs for the hoster which can be set.
-
antifarm_minkills, does set the amount of kills which are required to mark someone as farmer and stop recording stats, this stats are only counting on leaved players and computers aswell. If he does kill other players the stats will be still fully reported.By default this value is set to 3, this does mean, if a player now kill 2 leavers he wont be marked, but as soon as he killed 3 people he will get automatically substracted all the kills he gained against leavers.
-
antifarm_mindeaths, this config can set the amount of deaths until a player will get deaths removed. This is only interseting for the players who left or disconnected. Sometimes allied player sent them to 'def' the base etc, if he get killed more times than this value, he will get his deaths decreased by the numbers of deaths after he left.
-
antifarm_minassists, this config does exactly the same as the antifarm_minkills, only for assists
-
antifarm_deathsbyleaver, if a player was killed by a leaver this kills get reduced. But this does only reduce the deaths as long as he didnt assisted or killed a leaver. The idea is that left players cant be used to finish enemy players with global spells (Warth), we only reduce deaths if he really played fair and didnt try to kill a leaver or tried to farm.
The whole patch work complete for itself, players will be notified on the allchat when something has stopped to be recorded on the statistics.