CS2_SimpleRanks icon indicating copy to clipboard operation
CS2_SimpleRanks copied to clipboard

[BUG] HeadshotPoints 0 doesn't count kill point

Open csportalsk opened this issue 2 years ago • 3 comments

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

csportalsk avatar Nov 11 '23 11:11 csportalsk

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

K4ryuu avatar Nov 11 '23 13:11 K4ryuu

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.

csportalsk avatar Nov 11 '23 14:11 csportalsk

Oh I see!

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

K4ryuu avatar Nov 11 '23 14:11 K4ryuu