# Get TrenchBroom (Version 2023.1 recommended)
https://github.com/TrenchBroom/TrenchBroom/releases

# Learn TrenchBroom
https://www.youtube.com/watch?v=gONePWocbqA&list=PLgDKRPte5Y0AZ_K_PZbWbgBAEt5xf74aE

# Add NMD to TrenchBroom
Windows:
- Locate the "games" folder in the TrenchBroom folder
- Add the "NMD" folder to TrenchBroom\games\
- Open TrenchBroom
- Choose "New map..."
- Choose "Open preferences..."
- Select "NMD" from the list of games on the left
- Click on "..." to change the game path
- Select the "custom_maps" directory inside the game folder ("Sector909" at the time of this writing: Sector909\custom_maps)
- Apply
- OK

Linux:
- Locate the "games" directory in the TrenchBroom directory (if installed, ~/.TrenchBroom/games)
- Add the "NMD" directory to the "games" directory
- Open TrenchBroom
- Choose "New map..."
- Choose "Open preferences..."
- Select "NMD" from the list of games on the left
- Click on "..." to change the game path
- Select the "custom_maps" directory inside the game directory ("Sector909" at the time of this writing: Sector909/custom_maps)
- Apply
- OK

# Add mapping textures
- Put any textures you'd like to use inside custom_maps/textures (I know png is compatible but other formats may be too)
- Run the reimport_textures utility (it'll open the editor, reimport, and quit)

# Make a map
- Open TrenchBroom
- Choose "New map..."
- Double click "NMD"
- Make a map
- When ready, "Save Document as..." and save it inside custom_maps

# Play the map
- Run the game
- Choose "custom map"
- Get on the computer
- Open the mapper
- Choose your map
- Launch it

###########

# Map Spawners

## Weapon spawner
Add the weapon spawner entity
- Right click > Create Point Entity > Gd > weaponspawner
Set the weapon
- Left click on weaponspawner > type a weapon in weapon_type's value

Available weapon values:
m_16_nato
pistol_fifty
pistol_9_mm
shotgun_buster
smg_9_mm
pistol_nine_silenced
autopistol_9_mm

## Item spawner
Add the item spawner entity
- Right click > Create Point Entity > Gd > itemspawner
Set the item
- Left click on itemspawner > type a item in item_type's value

Available item values:
health_flask
madwater_flask

You could also try (don't know if it works):
ammo_9_mm_small
ammo_9_mm_medium
ammo_fifty

## Enemy Spawner
Add the enemy spawner entity
- Right click > Create Point Entity > Gd > enemyspawner
Set the enemy
- Left click on enemyspawner > type a weapon in weapon_type's value

Available enemy values:
wiseguy
punk
mook
