Half Life 2 can't be unchecked because Garry's Mod mostly needs it's textures, so it's forced enabled
Half Life 2 Deathmatch isn't required, so that like every other game on the checklist, can be toggled
Portal 2, Left 4 Dead 1 and 2, and Counter Strike Global Offensive run on different versions of the Source Engine that Garry's Mod is not compatible with, so only the game's models and textures would work in Garry's Mod
You may not be able to see maps from Half Life 2 because you need to convert it to the Steampipe Beta, you can do this by going to your Steam's game library screen, right clicking Half Life 2, click Properties, then click the Betas tab on the far right of the properties window, click the drop-down list and choose Steampipe beta, then click the Local Files tab and click 'Verify integrity of game cache files'
You'll then get a prompt asking if you want to convert Half Life 2 to the Steampipe Beta