Attano / L4D2-Competitive-Framework

This repository contains the most up-to-date plugins(both binaries and sources), extensions, vscripts and shared settings files. Configs such as ProMod and Equilibrium rely on this framework.
GNU General Public License v3.0
31 stars 38 forks source link

l4d2_play_stats wrong percents fixes #19

Closed Electr0 closed 7 years ago

Electr0 commented 7 years ago

l4d2_play_stats: fixed errors with inccorrect percents values like -2147483648% or 200% for fix cases like this:

`[MVP - Game] SI: BOT [Rochelle/Zoey] (159 dmg[61%], 0 kills [**-2147483648%**])
[MVP - Game] CI: BOT [Rochelle/Zoey] (9 common [35%])
[MVP] SI: Zoey [BOT] (159 dmg[60%], 0 kills [%])
[MVP] CI: Zoey [BOT] (9 common [34%])`

fixed compilie prevent errors with emums (1.7-x compiliers) l4d2_survivor_ff: little fix about logic.

playermanagement: prevent plugin work after server got shutdown commands, In very rare cases it was crash server after _restart command, because plugin flood creating bots.