I just spent the last hour fixing a bug due to using ReadBit on a boolean, which the wiki advised me to use for booleans.
From what I understand the Bit net data type converts booleans to either a 1 or a 0, however if you then try to relay that ( client -> server -> broadcast )
you run into a subtle problem where you always receive a 1 on the other end.
I haven’t seen the code to do Bit handling but I assume it looks something like
function WriteBit( data ) if( data ) then 1 else 0 end
which would be bad because then a number will always satisfy that condition.
is this true? where’s the code for this?