That is simply not true. Hats have always been cosmetics only.
Some unusual hats even give you a disadvantage as they broadcast your position through sounds.
Some unusual hats even give you a disadvantage as they broadcast your position through sounds.