info_challenge

From Valve Developer Community
Jump to: navigation, search
List of SE1 entities

info_challenge is a point entity available in SiN Episodes SiN Episodes. This entity is the developer's gateway to set up traps and obstacles that depend on the challenge level built around the Dynamic Difficulty System, where the initial challenge level is that chosen upon the start of the map (0.2/1.0 default) and the current challenge is what it has dynamically changed to depending on the skill of the player, with the challenge difference being the amount the player has moved the challenge level from the initial level to the current one. For more information about how to set up an envionment challenge depending on the initial challenge level, see the Arena Mode Challenge tutorial page.

Key Values

Name <string>
The targetname that other entities refer to this entity by.

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.

Inputs

GetInitialChallenge
Fires an output that contains the value of the initial challenge as a parameter.
GetCurrentChallenge
Fires an output that contains the value of the current challenge as a parameter.
GetChallengeDifference
Fires an output that contains the difference between the current and initial challenge as a parameter.

Parentname:
SetParent <string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.

Targetname:
AddOutput <string>
Evaluates a keyvalue/output on this entity.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.
Kill
Removes this entity and any entities parented to it from the world.
KillHierarchy
Functions the same as Kill, although this entity and any entities parented to it are killed on the same frame, being marginally faster than Kill.

Outputs

OnInitialChallenge <float>
Fires when the GetInitialChallenge input is called.
OnCurrentChallenge <float>
Fires when the GetCurrentChallenge input is called.
OnChallengeDifference <float>
Fires when the GetChallengeDifference input is called.

Targetname:
OnUse
Fires when the Use input is given.

Base:

OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.