Call of Duty 2 on PC does support cheats, but you have to switch the console on first.
Choose Game Options from the main menu and enable the console. In game, press the tilde key (~) to open it, enter devmap as a command, and the level reloads with cheats active.
god — God mode
give all — all weapons, ammo, health and armour
give ammo — refill ammunition
noclip — no clipping
notarget — toggle enemy AI
jumptonode — teleport to a node
jump_height 128 — moon jump (39 is default)
timescale .25 — slow motion (1 is default)
map [name] — jump to a map
Combine map with any of the following: 88ridge, toujane_ride, matmata, bergstein, downtown_sniper, libya, duhoc_defend, demolition, downtown_assault, elalamein, decoytown, beltot, trainyard, hill400_assault, moscow, tankhunt, toujane, cityhall, hill400_defend, duhoc, breakout, rhine, crossroads, decoytrenches, eldaba, silotown, newvillers.
An alternative activation route is to enable the console, launch a mission, press tilde, enter seta thereisacow "1337", then use spdevmap followed by the mission name. Be aware that some circulating code lists simply do not work, so if a code fails, the devmap method above is the reliable one.