Point surroundtest: Difference between revisions
Jump to navigation
Jump to search
Note:Also available in
Left 4 Dead and
Left 4 Dead 2, but !FGD. See FGD Code for these games.
m (removed {{DISPLAYTITLE}}, covered by the base point multi template) |
No edit summary |
||
Line 1: | Line 1: | ||
{{base point multi|point_surroundtest|game1=Counter-Strike: Source|game2=Counter-Strike: Global Offensive}} | {{base point multi|point_surroundtest|game1=Counter-Strike: Source|game2=Counter-Strike: Global Offensive}}. It identifies the server host's currently used speaker configuration setting by checking the{{ent|snd_surround_speakers}}command's value. When given the<code>FireCorrectOutput</code>input, an unique output is returned depending only on the following speaker configurations: | ||
* 2 Speakers | |||
* 4 Speakers | |||
* 5.1 Sound System | |||
{{note|Also available in {{l4d}} [[Left 4 Dead]] and {{l4d2}} [[Left 4 Dead 2]], but {{Not in FGD}}. See [[#FGD Code|FGD Code]] for these games.}} | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV | {{KV BaseEntity|csgo=1}} | ||
==Inputs== | ==Inputs== | ||
{{IO|FireCorrectOutput|Fires an output based on the current speaker configuration.|}} | |||
{{IO|FireCorrectOutput|Fires an output | {{I BaseEntity|csgo=1}} | ||
==Outputs== | ==Outputs== | ||
{{IO|On2Speakers|Fires an output if 2 Speakers are selected.|}} | {{IO|On2Speakers|Fires an output if 2 Speakers are selected.|}} | ||
{{IO|On4Speakers|Fires an output if 4 Speakers are selected.|}} | {{IO|On4Speakers|Fires an output if 4 Speakers are selected.|}} | ||
{{IO|On51Speakers|Fires an output if a 5.1 Sound System is selected.|}} | {{IO|On51Speakers|Fires an output if a 5.1 Sound System is selected.|}} | ||
{{O BaseEntity|csgo=1}} | |||
==FGD Code== | |||
This is a copy of the FGD code found in {{css}} and {{csgo}}, and is only here for {{l4d}} and {{l4d2}}. | |||
<pre> | |||
@PointClass base(Targetname) size(-8 -8 -8, 8 8 8) = point_surroundtest | |||
: "Surround Sound Test" | |||
[ | |||
input FireCorrectOutput(void) : "Fire output based on snd_surround_speaker cvar value" | |||
output On2Speakers(void) : "Fired if player is using 2 speakers." | |||
output On4Speakers(void) : "Fired if player is using 4 speakers." | |||
output On51Speakers(void) : "Fired if player is using 5.1 speakers." | |||
] | |||
</pre> |
Revision as of 13:39, 31 May 2021
Template:Base point multi. It identifies the server host's currently used speaker configuration setting by checking thesnd_surround_speakerscommand's value. When given theFireCorrectOutput
input, an unique output is returned depending only on the following speaker configurations:
- 2 Speakers
- 4 Speakers
- 5.1 Sound System



Keyvalues
Inputs
- FireCorrectOutput
- Fires an output based on the current speaker configuration.
Outputs
- On2Speakers
- Fires an output if 2 Speakers are selected.
- On4Speakers
- Fires an output if 4 Speakers are selected.
- On51Speakers
- Fires an output if a 5.1 Sound System is selected.
FGD Code
This is a copy of the FGD code found in and
, and is only here for
and
.
@PointClass base(Targetname) size(-8 -8 -8, 8 8 8) = point_surroundtest : "Surround Sound Test" [ input FireCorrectOutput(void) : "Fire output based on snd_surround_speaker cvar value" output On2Speakers(void) : "Fired if player is using 2 speakers." output On4Speakers(void) : "Fired if player is using 4 speakers." output On51Speakers(void) : "Fired if player is using 5.1 speakers." ]