Valve just released the source code for Team Fortress 2

"We're already preparing for the porting efforts and a potential Steam release now that we've been legally enabled to pursue ...
Valve said it's "also doing a big update to all our multiplayer back-catalogue Source engine titles (TF2, DoD:S, HL2:DM, CS:S, and HLDM:S), adding 64-bit binary support, a scalable HUD/UI ...