Add +set cheats 1 to the target line in your short cut for the game,So it looks like this:
"C:Program FilesActivisionEF2EF2.exe" +set cheats 1
Then in the game just press the 'tilde' key,to get console to drop down and type:
god - god mode.
give all - gives you all weapons.
Cheat mode (demo version):
Start the game with the +set developer 1 command line parameter. After the game starts, if you get a blank screen with console, press ~ to close the console and press [Esc] to return to the main menu. Press ~ during game play to display the console window, then enter one of the following codes to activate the corresponding cheat function.
Effect
Code
Invincibility and unlimited ammunition
god
No clipping mode; press [Jump] to move up, [Crouch] to move down
noclip
Spawns modelpath. You must give the full path to the model.
spawn modelpath
List the models
modellist
Suicide
kill
Invisible to enemies (untargetable)
notarget
Set health to indicated number
health
Toggle third person view
cg_3rd_person <0 or 1>