K4ryuu / CS2_SimpleRanks

A CS2 server extension that allows you to create an unlimited number of ranks with customizable experience thresholds and rank colors. Players gain or lose experience during various in-game events, enabling them to advance or regress between ranks. The extension is fully configurable using 'configs.json' and utilizes MySQL to store data.
GNU General Public License v3.0
27 stars 1 forks source link

[BUG] HeadshotPoints 0 doesn't count kill point #29

Open csportalsk opened 8 months ago

csportalsk commented 8 months ago

Hi,

I tried set HeadshotPoints to 0 and with this config KillPoints doesn't counts. Both situations > normal kill or HS kill.

CounterStrikeSharp v30 "Simple Ranks" (v2.1.2) by K4ryuu

K4ryuu commented 8 months ago

Why is that a bug? If you set a point to 0 that means you disable any points given or removed for that event.

csportalsk commented 8 months ago

When you want set config for get points for kill, but not bonus point when you kill HS.

"KillPoints": 2,
"HeadshotPoints": 0,

With this settings you expect: get +2 points only for kill, doesn't mather if kill was by HS. But with this settings you get nothing for kill normal or kill HS.

With this settings you get +2 points for kill and +1 point bonus kill HS and all works.

"KillPoints": 2,
"HeadshotPoints": 1,

But "HeadshotPoints": 0, stop giving points at for all kills.

K4ryuu commented 8 months ago

Oh I see!

I will push a patch with this to the new system this night.