Hello guys!
I'm wondering how to calculate ACCURATE chance to do something. At the moment I use that script but it's lame and doesn't calculate right chance.
Code:
cvar_slash_chance = register_cvar("bs_slash_chance", "33")
static random_num0
random_num0 = random_num(0, 100)
if(random_num0 <= get_pcvar_num(cvar_slash_chance))
Of course it's just cut from whole code.
Can anyone manage how to be more accurate with setting %chance?