In L4D2 valve mixed the weapon selection and crosshair.If you use m_iHidehud,only ALL(1<<2) and weaponselection(1<<0) will make crosshair disappear. And you will also hide all or the weapon selection hud on your screen.
Well , is there any way server can hide crosshair but no other hud ?
I just want to make the sniper_awp look like in cs:s ,yeah
(may be there will other way to do this like modify the weapon script about crosshair)
PS :
I have found in hl2sdk-l4d2 and i know this m_iHiddenBits "HIDEHUD_WEAPONSELECTION" control the weaponselection(in
hud_weapon.cpp).And we can use setentprop(client,Prop_send,"m_iHideHUD") to modify it.
But unfortunately,i don't know why crosshair also paint in this .cpp and there only one bitmask with it,and the
hud_crosshair.cpp which i think the most properly to control the crosshair only control the melee_crosshair.......
https://developer.valvesoftware.com/wiki/HudLayout.res
This page show the hud elements in hl2,and hud_weapon really handles the crosshair。
If there something wrong,plesae tell me,very thank.