Info challenge: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page for info_challenge in Sin Episodes)
 
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{back | List of SE1 entities}}
{{back | List of SE1 entities}}


{{se1 point}} This entity is the developer's gateway to set up traps and obstacles that depend on the challenge level built around [[Sin_Episodes_Level_Creation/Personal_Challenge_System:_Single_Player | 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 [[Sin_Episodes_Arena_Mode_Info_Challenge | Arena Mode Challenge]] tutorial page.
{{this is a|point entity|name=info_challenge|game=SiN Episodes}} This entity is the developer's gateway to set up traps and obstacles that depend on the challenge level built around [[Sin_Episodes_Level_Creation/Personal_Challenge_System:_Single_Player | 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 [[Sin_Episodes_Arena_Mode_Info_Challenge | Arena Mode Challenge]] tutorial page.


{{clr}}
== Keyvalues ==
{{KV Targetname}}


==Keyvalues==
== Inputs ==
{{KV|[[Targetname|Name]]|string| The [[targetname]] that other entities refer to this entity by.}}
{{I|GetInitialChallenge|Fires an output that contains the value of the initial challenge as a parameter.}}
{{KV Parentname}}
{{I|GetCurrentChallenge|Fires an output that contains the value of the current challenge as a parameter.}}
 
{{I|GetChallengeDifference|Fires an output that contains the difference between the current and initial challenge as a parameter.}}
==Inputs==
{{IO|GetInitialChallenge|Fires an output that contains the value of the initial challenge as a parameter.}}
{{IO|GetCurrentChallenge|Fires an output that contains the value of the current challenge as a parameter.}}
{{IO|GetChallengeDifference|Fires an output that contains the difference between the current and initial challenge as a parameter.}}
{{ScrollBox|title=Parentname|}}
{{IO|SetParent|Move with this entity. See [[Entity Hierarchy (parenting)]].|param=string}}
{{IO|SetParentAttachment|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.|param=string}}
{{ScrollBox|title=Targetname|}}
{{IO|[[AddOutput]]|Evaluates a keyvalue/output on this entity. <br/>Format: <code><key> <value></code><br/>Format: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code>|param=string}}
{{IO|FireUser1|to=FireUser4|Fire the <code>OnUser</code> outputs; see [[User Inputs and Outputs]].}}
{{IO|Kill|Removes this entity and any entities parented to it from the world.}}
{{IO|KillHierarchy|Functions the same as <code>Kill</code>, although this entity and any entities parented to it are killed on the same frame, being marginally faster than <code>Kill</code>.}}


==Outputs==
==Outputs==
{{IO|OnInitialChallenge|Fires when the GetInitialChallenge input is called.|param=float}}
{{O|OnInitialChallenge|Fires when the GetInitialChallenge input is called.|param=float}}
{{IO|OnCurrentChallenge|Fires when the GetCurrentChallenge input is called.|param=float}}
{{O|OnCurrentChallenge|Fires when the GetCurrentChallenge input is called.|param=float}}
{{IO|OnChallengeDifference|Fires when the GetChallengeDifference input is called.|param=float}}
{{O|OnChallengeDifference|Fires when the GetChallengeDifference input is called.|param=float}}
{{ScrollBox|title=Targetname|}}
{{O|OnUse|Fires when the <code>Use</code> input is given.}}
{{IO|OnUse|Fires when the <code>Use</code> input is given.}}
{{O BaseEntity}}

Latest revision as of 11:18, 26 September 2024

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.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

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.

Outputs

OnInitialChallenge <floatRedirectOutput/float>
Fires when the GetInitialChallenge input is called.
OnCurrentChallenge <floatRedirectOutput/float>
Fires when the GetCurrentChallenge input is called.
OnChallengeDifference <floatRedirectOutput/float>
Fires when the GetChallengeDifference input is called.
OnUse
Fires when the Use input is given.