Difference between revisions of "Responses"
m (Applied filters to Responses (Requested on User:WindBOT/PageRequests)) |
GrampaSwood (talk | contribs) (→Response rule scripts: Textures are stored in the tf2_textures vpks. Shortened code where the vpk is located. Removed bit about the .vcd files being packaged into texture files (they're not)) |
||
(35 intermediate revisions by 23 users not shown) | |||
Line 1: | Line 1: | ||
− | '''Responses''' are a feature similar to [[voice commands]], where your character may deliver a line of speech when a response rule is met. The difference is that while a | + | {{hatnote|For how to use [[:Template:Quotation]], see [[Help:Style guide/Quotes]].}} |
+ | [[Image:Responses.png|375px|right]] | ||
+ | {{Quotation|'''The Soldier'''|Less talk, more fight!|sound=Soldier_DominationScout04.wav}} | ||
+ | '''Responses''' are a feature similar to [[voice commands]], where your character may deliver a line of speech when a response rule is met. The difference is that while a voice command can be initiated with the press of a button by the player, these speech lines only play in reaction to the player completing a specific task, such as taking Intelligence, killing several opponents in a row, destroying an Engineer's [[building]], participating in a [[Dueling Mini-Game|duel]], or getting a [[Domination]] on a particular class. Even when these rules are met, some of the speech files play only very rarely. Some response rules are common to all classes, while others may be specific to that class. | ||
The [[Administrator]] also possesses responses that play when certain conditions are met, some of which occur 100% of the time (such as "You've failed!" on a match loss). | The [[Administrator]] also possesses responses that play when certain conditions are met, some of which occur 100% of the time (such as "You've failed!" on a match loss). | ||
− | == | + | == Class responses == |
+ | {{See also|Classes}} | ||
− | * [[Scout responses]] | + | * {{Icon class|class=scout|link=Scout responses}} [[Scout responses]] |
− | * [[Soldier responses]] | + | * {{Icon class|class=soldier|link=Soldier responses}} [[Soldier responses]] |
− | * [[Pyro responses]] | + | * {{Icon class|class=pyro|link=Pyro responses}} [[Pyro responses]] |
− | * [[Demoman responses]] | + | * {{Icon class|class=demoman|link=Demoman responses}} [[Demoman responses]] |
− | * [[Heavy responses]] | + | * {{Icon class|class=heavy|link=Heavy responses}} [[Heavy responses]] |
− | * [[Engineer responses]] | + | * {{Icon class|class=engineer|link=Engineer responses}} [[Engineer responses]] |
− | * [[Medic responses]] | + | * {{Icon class|class=medic|link=Medic responses}} [[Medic responses]] |
− | * [[Sniper responses]] | + | * {{Icon class|class=sniper|link=Sniper responses}} [[Sniper responses]] |
− | * [[Spy responses]] | + | * {{Icon class|class=spy|link=Spy responses}} [[Spy responses]] |
+ | |||
+ | == Non-player character responses == | ||
+ | {{See also|Non-player characters}} | ||
+ | |||
+ | * [[Administrator responses]] | ||
+ | * [[Miss Pauling responses]] | ||
+ | * [[Ghost voice responses|Ghost responses]] | ||
+ | * [[Bombinomicon responses]] | ||
+ | * [[Horseless Headless Horsemann responses]] | ||
+ | * [[Merasmus responses]] | ||
+ | * [[MONOCULUS responses]] | ||
+ | * [[Mann brothers responses]] | ||
+ | * [[Community announcers|Community announcers responses]] | ||
== Response rule scripts == | == Response rule scripts == | ||
=== Accessing === | === Accessing === | ||
− | The scripts | + | The scripts that control the responses are located inside the <code>tf2_misc_dir</code> <code>.vpk</code>, located inside <code>steamapps\common\Team Fortress 2\tf</code>. This file can be inspected with a tool such as [[vdc:GCFScape|GCFScape]]. Once you've got the content file open, the response rule scripts are located in <code>root\scripts\talker</code>. |
=== File contents === | === File contents === | ||
− | The main script file is | + | The main script file is <code>response_rules.txt</code>. This file contains a description of the script language used by the responses, as well as definitions for most of the criteria used in the scripts. Additionally, there is one script file for each [[classes|class]]. These files contain most of the class specific response rules and [[voice commands]]. Finally, <code>tf.txt</code> contains [[Taunts|taunt]] rules for each class, as well as a few miscellaneous class-specific rules (such as rules to cause the [[Heavy]] to emote after firing his [[Minigun]] for a while). |
=== Scenes === | === Scenes === | ||
− | The result of a scripted action is usually a scene. A scene defines what is said as well as the expression on the character's face when it is said. | + | The result of a scripted action is usually a scene. A scene defines what is said as well as the expression on the character's face when it is said. Scenes are defined in individual .vcd files. |
=== Sounds === | === Sounds === | ||
− | There is one further level of abstraction between the response rule scripts and the actual sound spoken by the character. Scene files refer to a specific speech event, such as "Demoman.AutoCappedControlPoint03". These events are defined in | + | There is one further level of abstraction between the response rule scripts and the actual sound spoken by the character. Scene files refer to a specific speech event, such as "<code>Demoman.AutoCappedControlPoint03</code>". These events, found in the <code>tf2_misc_dir</code> are defined in <code>root\scripts\game_sounds_vo.txt</code> and they refer to actual <code>.wav</code> files packaged in the <code>.vpk</code> (such as, for instance, <code>demoman_autocappedcontrolpoint03.wav</code>). The wave files are located in the <code>tf2_sound_vo_english</code> <code>.vpk</code>, under <code>root\sound\vo</code> and <code>root\sound\vo\taunts</code>. |
− | In general, there is a direct mapping between the name of the scene (.vcd) file referred to in the response rules scripts and the name of the wave (.wav) file spoken by the character. | + | In general, there is a direct mapping between the name of the scene (<code>.vcd</code>) file referred to in the response rules scripts and the name of the wave (<code>.wav</code>) file spoken by the character. |
== See also == | == See also == | ||
− | |||
* [[Taunts]] | * [[Taunts]] | ||
* [[Voice commands]] | * [[Voice commands]] | ||
+ | * [[Audio cues]] | ||
+ | * [[Versus Saxton Hale responses]] | ||
+ | |||
+ | {{Audio Nav}} | ||
[[Category:Gameplay]] | [[Category:Gameplay]] | ||
− | [[Category:Lists of responses| | + | [[Category:Lists of responses|Lists of responses]] |
Latest revision as of 12:28, 30 October 2024
“ | Less talk, more fight!
Click to listen
— The Soldier
|
” |
Responses are a feature similar to voice commands, where your character may deliver a line of speech when a response rule is met. The difference is that while a voice command can be initiated with the press of a button by the player, these speech lines only play in reaction to the player completing a specific task, such as taking Intelligence, killing several opponents in a row, destroying an Engineer's building, participating in a duel, or getting a Domination on a particular class. Even when these rules are met, some of the speech files play only very rarely. Some response rules are common to all classes, while others may be specific to that class.
The Administrator also possesses responses that play when certain conditions are met, some of which occur 100% of the time (such as "You've failed!" on a match loss).
Contents
Class responses
- Scout responses
- Soldier responses
- Pyro responses
- Demoman responses
- Heavy responses
- Engineer responses
- Medic responses
- Sniper responses
- Spy responses
Non-player character responses
- Administrator responses
- Miss Pauling responses
- Ghost responses
- Bombinomicon responses
- Horseless Headless Horsemann responses
- Merasmus responses
- MONOCULUS responses
- Mann brothers responses
- Community announcers responses
Response rule scripts
Accessing
The scripts that control the responses are located inside the tf2_misc_dir
.vpk
, located inside steamapps\common\Team Fortress 2\tf
. This file can be inspected with a tool such as GCFScape. Once you've got the content file open, the response rule scripts are located in root\scripts\talker
.
File contents
The main script file is response_rules.txt
. This file contains a description of the script language used by the responses, as well as definitions for most of the criteria used in the scripts. Additionally, there is one script file for each class. These files contain most of the class specific response rules and voice commands. Finally, tf.txt
contains taunt rules for each class, as well as a few miscellaneous class-specific rules (such as rules to cause the Heavy to emote after firing his Minigun for a while).
Scenes
The result of a scripted action is usually a scene. A scene defines what is said as well as the expression on the character's face when it is said. Scenes are defined in individual .vcd files.
Sounds
There is one further level of abstraction between the response rule scripts and the actual sound spoken by the character. Scene files refer to a specific speech event, such as "Demoman.AutoCappedControlPoint03
". These events, found in the tf2_misc_dir
are defined in root\scripts\game_sounds_vo.txt
and they refer to actual .wav
files packaged in the .vpk
(such as, for instance, demoman_autocappedcontrolpoint03.wav
). The wave files are located in the tf2_sound_vo_english
.vpk
, under root\sound\vo
and root\sound\vo\taunts
.
In general, there is a direct mapping between the name of the scene (.vcd
) file referred to in the response rules scripts and the name of the wave (.wav
) file spoken by the character.
See also
|