hit ~ to bring up console and then write con_restricted 0 and then write g_godMode=1
Source: Crysis 2 Cheats and Codes