Adding Point Entities
Next, we'll insert some entities into the map.
Entities are placed using the Entity Tool . Select it from the left side icon bar.
Next we pick which entity to insert. There is a list of possible entities in the Object Toolbar (by default in the lower right corner of the Hammer window).
The first entity that we will pick is where the player will spawn when he enters the map. What entity to choose from the list depends on what game you are creating this map for.
- If you are creating a map for Half-Life 2: Deathmatch, the game will spawn the player at the info_player_deathmatch entity. If the info_player_deathmatch does not appear in the list, then follow these steps:
- Close Hammer
- From the Source SDK screen, set the Current Game to
Half-Life 2: Deathmatch
- Launch Hammer again
- If you are creating a single player map for Half-Life 2, the game will spawn the player at the info_player_start entity.
Choose the appropriate entity from the drop-down list.
- Совет: To save time, you can also simply type the name of the entity directly into the drop-down box, instead of scrolling through the entire list to find it.
Next we'll place this entity in the map. When placing entities aligned with a surface, you can do this simply by clicking where on the surface you want it in the 3D View, so click somewhere on the floor of the room, like in the image here, and the entity will be placed at the spot you click.
Next we will place a weapon.
Pick the weapon_357 entity from the entity list in the Object Toolbar, as shown to the left.
Click in the 3D View to place the weapon_357 entity, just like you did with the player starting point, as shown to the right.
Next we will place some ammo.
Pick the item_ammo_357 entity from the entity list.
This entity is a box of .357 ammo for the magnum revolver.