To enable SWAT 4 cheat codes, you must edit the Swat4.ini file in your SWAT 4 system directory. It's highly recommended that you backup this file before making any changes. Be careful!
In the Swat4.ini file, locate the "EnableDevTools=False" line under the [Engine.GameEngine" %> heading. Change False to True so the line now reads "EnableDevTools=True". This enables SWAT 4 cheat codes.
Load SWAT 4 and start a career mission. Hit the "~" key to open up the game's console. Note that codes must be reentered at the start of new missions or restarts. Type in the following codes to enable the corresponding cheat:
behindview 1 - Toggles to third-person perspective.
behindview 0 - Toggles to first-person perspective.
god - Enables invulnerability. You'll still take damage but won't die. This means you will still be hobbled by injuries and move slowly.
ghost - Toggles no clipping. You can walk through walls or fly through ceilings.
walk - Turns off no clipping mode.
setgravity # - Alter gravity by entering a value for #.