This article relates to the game "Counter-Strike: Global Offensive". Click here for more information.
This article relates to the game "Counter-Strike: Source". Click here for more information.

Point surroundtest: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: Unicodifying, replaced: {{language subpage → {{langsp)
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{CSS topicon}} {{CSGO topicon}}
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{CSS topicon}} {{CSGO topicon}}
{{lang}}
{{lang}}
{{this is a|e0|name=point_surroundtest|game=Counter-Strike: Source|gameCounter-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:
{{this is a|gameCounter-Strike: Global Offensivepoint entity|name=point_surroundtest|game=Counter-Strike: Source}} 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 (and Headphones Only)
* 2 Speakers (and Headphones Only)
* 4 Speakers
* 4 Speakers

Revision as of 18:32, 17 May 2024

English (en)Translate (Translate)

point_surroundtest is a gameCounter-Strike: Global Offensivepoint entity available in Counter-Strike: Source Counter-Strike: Source. It identifies the server host's currently used speaker configuration setting by checking the snd_surround_speakers command's value. When given theFireCorrectOutputinput, an unique output is returned depending only on the following speaker configurations:

  • 2 Speakers (and Headphones Only)
  • 4 Speakers
  • 5.1 Sound System
Note.pngNote:Also available in Left 4 Dead Left 4 Dead and Left 4 Dead 2 Left 4 Dead 2, but !FGD. See FGD Code for these games.

Keyvalues

Inputs

FireCorrectOutput
Fires an output based on the current speaker configuration.


Outputs

On2Speakers
Fires an output if either '2 Speakers 'or 'Headphones only' are selected.
On4Speakers
Fires an output if '4 Speakers' is selected.
On51Speakers
Fires an output if '5.1 Sound System' is selected.


FGD Code

This is a copy of the FGD code found in Counter-Strike: Source and Counter-Strike: Global Offensive, and is only here for Left 4 Dead and Left 4 Dead 2.

@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."
]