Newgame spawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Incorrect title due to technical limitations.)
m (added category)
Line 14: Line 14:
* Enough ammo to provide 50% ammo for the shotgun, .357 magnum revolver, crossbow, and fragmentation grenades.
* Enough ammo to provide 50% ammo for the shotgun, .357 magnum revolver, crossbow, and fragmentation grenades.


== See Also ==
== See also ==
*[[Prefab]]
*[[Prefab]]
*[[Brush Creation]]
*[[Brush Creation]]


[[Category:Level design]]
[[Category:Level design]][[Category:Prefabs]]

Revision as of 11:29, 28 August 2006

Template:Wrongtitle

Newgame_spawn (located in the "Prefabs HL2" folder) is a Hammer prefab that simulates the player starting out with enough firepower to take on any reasonable challenge in a map. It is designed for testing out Half-Life 2 (single player) maps.

More specifically the prefab contains a logic_auto entity, an info_player_start, three point_templates, several weapon entities and item_dynamic_resupply entities (to ensure a certain level of health, batteries and ammo).

This is how they work: On the start of a new game, the logic auto will trigger three point templates to spawn the following at the player spawn:

  • A HEV suit.
  • Enough medpacks to ensure full health.
  • Enough batteries to ensure 50% armour.
  • All handheld weapons available in single player (crowbar, pistol, .357 magnum revolver, Overwatch assault rifle, bugbait, crossbow, physgun (weapon_physcannon), RPG launcher, shotgun, and submachine gun).
  • Enough ammo to provide full ammo for the pistol, submachine gun (including max grenades), Overwatch assault rifle, and the RPG launcher.
  • Enough ammo to provide 50% ammo for the shotgun, .357 magnum revolver, crossbow, and fragmentation grenades.

See also