If you want to experience Bad Company 2 without diving into sweaty public matches, your best options are:
There have been various "dummie bot" scripts over the years. These usually involve spawning static or basic-pathing AI entities. However, these are often buggy, require complex console commands to execute, and rarely provide a satisfying gameplay loop. Why "Cracked" Mods Can Be Risky
While the game features a stellar single-player campaign and the "Onslaught" DLC (a 4-player co-op mode against AI), a traditional "Skirmish" mode with full-scale bots on Conquest or Rush maps does not officially exist. Is There a "Cracked" or Custom Bot Mod?