Day of Infamy:Creating Levels
Setting up Hammer for Day of Infamy
For information about Hammer for Insurgency, refer to Creating Levels for Insurgency
The standalone version of Day of Infamy ships with Hammer pre-installed, along with a collection of SDK maps.
Simply start hammer by running: $steamlibrary\steamapps\common\dayofinfamy\bin\hammer.exe
Each map requires a "map.txt" file in order to inform Day of Infamy which game modes, factions, and weapons are supported. There is no proper documentation for the "map.txt" files, but the SDK content provides some examples.
For information about Map Scripts, refer to Map Scripts for Insurgency
Currently the only supported factions in the game are the American, Commonwealth, and German armies. New World Interactive has no plans to officially add any more factions to Day of Infamy, but additional factions can be added by modding.
If you wish to create maps that take place in other theaters, this is fine, but your map may not be included until the character and weapon content gets created to support your map.
Day of Infamy Level Setup
There is a known bug in Hammer which prevents you from launching the game after compling your map (F9). This can be worked around by clicking Expert... after hitting F9, unchecking and rechecking the $game_exe checkbox, and clicking "Go!".
After compiling a map, the bsp file should get copied to dayofinfamy\doi\maps\map_name.bsp
- Spawnzones & Blockzones
- Capture Zones & Weapon Caches
- Basic Gamemodes Layout
- Destructible & Interactive props
A map script is also required to setup the game mode and factions.
- ins_viewpoint - Background camera view of map for faction and loadout screens.
- light_environment - Global lighting for map. Everything will be black otherwise.
- env_cubemap - Place preferably in the center of the map. Used for generating reflections?
- "map.txt" - Map script defining factions, spawns, game mode, and control points. Should reside in the same directory as the map.bsp file with the name map.txt (Ex: sdk_invasion.bsp, sdk_invasion.txt). If a map is started without this file, only the default factions will be selected, you won't be able to choose a kit, and you won't spawn on the map. It can also cause the map to fail to load, causing Day of Infamy to crash to desktop completely.
- ins_spawnpoint - Should exist within an ins_spawnzone. Location of where users will start in the map. Set Team Number (int) to Security or Insurgents, and select World Model from models\characters\#faction#\player_#faction#_##.mdl
- ins_spawnzone - One for each faction. Draw a brush using the tools/tools_trigger_spawnzone texture, and then select it and hit Ctrl+t. Change the class to ins_spawnzone. Set Team Number (int) entity property to Security or Insurgence, and associate with respective block zone under Block Zone. Determines the spawn area.
- ins_blockzone - One for each faction. Blocks the other team from entering the spawn zone.