Newgame spawn citadel: Difference between revisions
Jump to navigation
Jump to search
(The newgame_spawn_citadel prefab (showing you how to get the SUPER gravity gun).) |
Thunder4ik (talk | contribs) m (→top: Unicodifying, replaced: [[Image: → [[File:) |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:newgame_spawn_citadel}} | |||
[[File:Prefab newgame_spawn_citadel.jpg|thumb|250px|right|A newgame_spawn_citadel prefab.]] | |||
[[ | |||
A [[prefab]] located in the ''Prefabs HL2'' folder, containing a player spawn that will simulate the player starting out with the blue super gravity gun, like in the Combine Citadel. It is designed for testing out Half-Life 2 (single player) maps. | A [[prefab]] located in the ''Prefabs HL2'' folder, containing a player spawn that will simulate the player starting out with the blue super gravity gun, like in the Combine Citadel. It is designed for testing out Half-Life 2 (single player) maps. | ||
| Line 13: | Line 12: | ||
* An [[env_global]] set to enable the ''Super phys gun in enabled'' global state, upgrading the physgun. | * An [[env_global]] set to enable the ''Super phys gun in enabled'' global state, upgrading the physgun. | ||
On the start of a new game, the logic_auto will trigger the two point_templates to spawn the following at their position (that will make the spawning player automatically | On the start of a new game, the logic_auto will trigger the two point_templates to spawn the following at their position (that will make the spawning player automatically receive them): | ||
* A HEV suit. | * A HEV suit. | ||
* Enough medpacks to ensure full health. | * Enough medpacks to ensure full health. | ||
| Line 23: | Line 22: | ||
The logic_auto will also trigger the env_global entity to upgrade the gravity gun to the Super gravity gun. | The logic_auto will also trigger the env_global entity to upgrade the gravity gun to the Super gravity gun. | ||
[[Category:Prefabs]] | |||
Latest revision as of 23:15, 6 January 2024
A prefab located in the Prefabs HL2 folder, containing a player spawn that will simulate the player starting out with the blue super gravity gun, like in the Combine Citadel. It is designed for testing out Half-Life 2 (single player) maps.
This prefab contains the following:
- An info_player_start entity that will spawn the player.
- A logic_auto entity that will trigger the spawning of equipment and the upgrading of the gravity gun.
- Two point_template entities - one that will spawn the suit and the gravity gun, and one that will spawn the item_dynamic_resupply entities (containing health, batteries and ammo).
- An item_suit, a weapon_physcannon and several item_dynamic_resupply entities that will be the templates to spawn. (The item_dynamic_resupply entities will ensure the level of health, health, batteries and ammo.)
- An env_global set to enable the Super phys gun in enabled global state, upgrading the physgun.
On the start of a new game, the logic_auto will trigger the two point_templates to spawn the following at their position (that will make the spawning player automatically receive them):
- A HEV suit.
- Enough medpacks to ensure full health.
- Enough batteries to ensure 50% armour.
- The gravity 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.
The logic_auto will also trigger the env_global entity to upgrade the gravity gun to the Super gravity gun.