Thread: Ping Faker 1.5
View Single Post
Valer4
Junior Member
Join Date: Aug 2012
Old 05-02-2016 , 08:15   Re: Ping Faker 1.5
Reply With Quote #192

Why do we need these inspections?

if (bit_count < 1)
Minimally transmitted bit_count == 1.

if (bit_count > (32 - bits_added))
During this test bits_added is a maximum of 25 = 7 from the previous player + 1 + 5 + 12 and bit_count is then equal to 7.
In other cases bits_added max: 7, 8, 13, 7, and bit_count is then equal to: 1, 5, 12, 1, respectively.

if (value >= (1 << bit_count))
the maximum value is 1, 31, 4095, 1 << bit_count:
1 << 1 = 2, 1 << 5 = 32, 1 << 12 = 4096

I also heard there are meta or amxx module, do not tell me how is called or where to find?

Last edited by Valer4; 05-02-2016 at 08:17.
Valer4 is offline