in steam go to HL2's properties and select launch options, in there type
-console
then hit apply