To test a map offline, load any SR mod (e.g. SR Speedrun) and use /devmap <mapname> in the console to load your map directly without going through the server.
Maps interact with SR through the API modules. Depending on the game mode you're building for, import the relevant module and call its functions from your map script.
See the Documentation for all available modules and functions.
Enabling developer mode gives you in-game debug information such as entity names and other diagnostic overlays.
Use /developer 1 in the console before loading a map.
For full 3D visualization of triggers and entities in-game, use the following launch configuration.
Create a shortcut to iw3mp.exe from your CoD4 folder, right-click it, open Properties, and set the Target field to:
"D:\Program Files (x86)\Activision\Cod4Mod\iw3mp.exe" +set fs_game "mods\sr_speedrun" +set logfile 2 +set monkeytoy 0 +set com_introplayed 1 +set developer 1 +set developer_script 1 +set thereisacow 1337
Adjust the path and
fs_gamevalue to match your setup.
Triggers are created in-game using bound keys. Set up your bindings in the multiplayer control menu before starting.
| Key | Action |
|---|---|
| Melee | Create a trigger |
| Use | Increase width |
| Grenade | Increase height |
| Smoke | Toggle collision |
Once saved, the generated script is written to sr_dev/games_mp.log.
- Stand upright at the desired spawn location.
- Run
/centerviewand/viewposin the console. - Open the full console with
Shift + console keyand copy the position line.
Use
createSpawnif the origin comes from an in-game position — it accounts for the 60-unit player height offset automatically. UsecreateSpawnOriginif the origin comes from Radiant or/debug_show_viewpos.

