Logic director query: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
{{toc-right}}
{{toc-right}}


{{l4d2 point|logic_director_query}} It is used to reference the [[info_director|AI Director]]'s 'anger' value, and create different outputs so that the map can be adjusted accordingly. The director is angered by players performing well.
{{l4d2 point|logic_director_query}} It is used to output the [[info_director|AI Director]]'s 'anger' value, where the director is angered by players that are performing well. This provides an opportunity for map elements to be adjusted in an attempt to appease the AI Director. Some examples include adjusting the goal distance and increasing/decreasing obscuring weather effects.


You can have any number of logic_director_query entities in the same map, each with their own range and noise settings.
Any number of logic_director_query entities can exist in the same map, each with their own value range and noise settings.
 
== See also ==
 
* [[L4D2 Level Design/Director Queries]]


==KeyValues==
==KeyValues==
; Min Anger Range <code><[[int]]></code>
; Min Anger Range <code><[[int]]></code>
; Max Anger Range <code><int></code>
; Max Anger Range <code><int></code>
Line 19: Line 14:


==Inputs==
==Inputs==
; <code>HowAngry</code>
; <code>HowAngry</code>
: Asks the director: “On a scale of <Min Anger Range> to <Max Anger Range>, how angry are you?”
: Asks the director: “On a scale of <Min Anger Range> to <Max Anger Range>, how angry are you?”
Line 25: Line 19:


==Outputs==
==Outputs==
; <code>OutAnger <[[int]]></code> <!-- or float? -->
; <code>OutAnger <[[int]]></code> <!-- or float? -->
: Fired in response to <code>HowAngry</code>. Sends the current remapped value of the director's anger to an entity of your choice ([[logic_case]] is generally the most useful).
: Fired in response to <code>HowAngry</code>. Sends the current remapped value of the director's anger to an entity of your choice ([[logic_case]] is generally the most useful).
Line 31: Line 24:
: {{confirm|Fires 20 seconds before the director's anger causes it to spawn a mob of common infected.}}
: {{confirm|Fires 20 seconds before the director's anger causes it to spawn a mob of common infected.}}
{{O Targetname}}
{{O Targetname}}
== See also ==
* [[L4D2 Level Design/Director Queries]]

Revision as of 01:26, 14 March 2011

Template:L4d2 point It is used to output the AI Director's 'anger' value, where the director is angered by players that are performing well. This provides an opportunity for map elements to be adjusted in an attempt to appease the AI Director. Some examples include adjusting the goal distance and increasing/decreasing obscuring weather effects.

Any number of logic_director_query entities can exist in the same map, each with their own value range and noise settings.

KeyValues

Min Anger Range <int>
Max Anger Range <int>
The range of integers used to represent the director's anger. The value will be mapped within it. Choosing a wider range of numbers allows finer "anger management".
Noise <choices>
Randomises the entity's output slightly. “No noise” will cause the output being the exact remapped value of the director's anger, while “complete noise” will result in a random number within the anger range. There are various other levels in between.
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

HowAngry
Asks the director: “On a scale of <Min Anger Range> to <Max Anger Range>, how angry are you?”


Outputs

OutAnger <int>
Fired in response to HowAngry. Sends the current remapped value of the director's anger to an entity of your choice (logic_case is generally the most useful).
On20SecondsToMob
Confirm:Fires 20 seconds before the director's anger causes it to spawn a mob of common infected.


See also