NOTE: This is an archive of the old wiki.
Expect content to be outdated and links to be broken.

User Tools


goldeneye:ges_hammer_entities:trigger_trap

Trigger Trap

Overview

trigger_trap is used for the many death pits in GoldenEye: Source. As opposed to trigger_hurt, trigger_trap offers two main advantages:

  • It can be assigned unique death messages
  • A player can take ownership of the trap, getting credit for any kills it is responsible for

The second property is mainly useful for actual traps that can be triggered by a button, which is a more niche use. However, the first property is quite useful for giving your map some custom flair or just having some variety in pit death messages.

Fields

The extra fields added by trigger_trap are as follows:

Death Message: This is the message used when a player who does not have ownership of the trap dies to it without taking damage from another player. For non-localized string values, it takes the form: [Victim Name] + “ ” + [Death Message]

Suicide Message: This is the message used when a player who [b]does[/b] have ownership of the trap dies to it without taking damage from another player. For non-localized string values, it takes the form: [Victim Name] + “ ” + [Suicide Message]

Kill Message: This is the message used when a player dies to the trap after taking damage from another player. For non-localized string values, it replaces all instances of “player2” with the victim's name in its parameter and takes the form: [Killer Name] + “ ” + [Kill Message]

Usage

trigger_trap is used in much the same way as trigger_hurt, just with the addition of a few extra fields. The default values in 5.1, and what most trigger_traps should use are as follows:

Using #GES_Pit_Death and #GES_Pit_Kill will tell the game to pick a random generic pit death message when a player dies to them. However, if you'd like to have your own custom kill/death messages simply replace #GES_Pit_Death or #GES_Pit_Kill with your preferred message. For instance:

Will cause the following messages to be used in the following situations:

A player named Adrian dies to the trap while it is not owned by anyone:

Adrian has sadly died

A player named Adrian claims ownership of the trap and then dies to it:

Adrian has sadly suicided

A player named E-S damages a player named Adrian who then dies to the trap:

E-S has sadly killed Adrian

A player named E-S claims ownership of the trap and then a player named Adrian falls into it:

E-S has sadly killed Adrian

Ownership

A player claims ownership of a trap when they are responsible for triggering the “BecomeOwner” input, the “Enable” input, or the “Toggle” input of that specific trap. A player loses ownership when the “VoidOwner” input is triggered on a trap they own.

Ownership should in general only be used on trigger_traps that are actually part of a trap, such as a button that causes players to be pushed into a spike pit. For trigger_traps that are part of a generic death pit, ownership inputs should not be used.

goldeneye/ges_hammer_entities/trigger_trap.txt · Last modified: 2023/09/03 18:43 by 127.0.0.1