Adding a Shield Generator hack objective

From Mod Wiki
An Advanced Map
1. Introduction and goals of the tutorial
2. Necessary map declarations
3. Caulk hull
4. Creating a simple terrain
5. Adding an atmosphere
6. Adding player spawns
7. Adding base structures
8. Adding base vehicles
9. Creating a constructible Bridge
10. Adding an MCP escort objective
11. Adding a Shield Generator hack objective
12. Creating a destructible objective
13. Adding Objective spawns and vehicles
14. Info Objectives
15. Deployzones
16. Playzones
17. Masks
18. Barebones Map script
19. Creating a command map
20. Levelshot

A Strogg shield generator objective requires two components; The shield generator and the SSM target, which the shield protects until it is hacked.

Strogg shield generator

Strogg shield generator should target the entity that the SSM destroys. In the example map it is just a box covering the final objective

The shield generator can be placed in the map by adding the gameplay_strogg_shield_generator_caller entity. The shield generator will fall from the sky when the MCP captures the outpost.

Guidelines and Required keys

  • target ssm_target
The shield needs just one key pair, the target matches the name of the entity which the SSM destroys. For example, in Valley, the shield generator targets the corner of the facility.
  1. Adjust the height of the shield so the nodraw plane is flush the terrain. Since the shield has no clear base it helped keep the hackable panel a consistent height across the maps.
  2. The shield generator falls from the sky, be sure to place it in an open area, such as a courtyard.

SSM target

The SSM target is an "gameplay/destructible" entity. In a typical ETQW map it was a door or structure preventing access to the next objective. In the example map it is just a box hiding the final objective.

guidelines and required keys

The following keys are required:

  • team strogg
Team which the objective belongs to.
  • show_status 1
Show status in the game. Status of the entity under the crosshair. Possibly no longer in use. FIXME
  • object_name maps/valley/scud_target
Name of the entity under the crosshair. Possibly no longer in use. FIXME
  • health 1
The health. Low value ensures the SSM destroys it. Probably hard coded to always destroy. FIXME
  • scriptobject destructible_objective_strategic
Script object.
  • option_crosshair_interface 1
Possibly no longer in use. FIXME
  • objective_index 2
Objective index. Since this is the third objective, it is 2. First objective is always 0.
  • crosshair_icon hud/objectives/firesupport
Icon which signifies how the objective is completed.
  • collection_scud scud
Means that only the SSM will destroy the objective.
  • dmg_splash_damage damage_objective_explosion
The type of damage to deal to players when the objective is destroyed.

Be sure to name your gameplay/destructible entity so that is matches the target of the gameplay_strogg_shield_generator_caller entity.

Worldspawn keys

The following worldspawn key is needed for the gameplay_strogg_shield_generator_caller:

  • script_shieldgen_caller shieldgen_caller.