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.
(CMapInfo, huh? Neat.) |
No edit summary |
||
Line 1: | Line 1: | ||
{{LanguageBar}} {{CSS topicon}} {{CSGO topicon}} | |||
{{CD|CMapInfo}} | {{CD|CMapInfo}} | ||
{{this is a|point entity|name=point_surroundtest|game=Counter-Strike: Source|game1=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: | {{this is a|point entity|name=point_surroundtest|game=Counter-Strike: Source|game1=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: | ||
Line 10: | Line 9: | ||
== Keyvalues == | == Keyvalues == | ||
{{KV | {{KV Targetname}} | ||
==Inputs== | |||
{{IO|FireCorrectOutput|Fires an output based on the current speaker configuration. | == Inputs == | ||
{{IO|FireCorrectOutput|Fires an output based on the current speaker configuration.}} | |||
== Outputs == | == Outputs == | ||
Line 19: | Line 18: | ||
{{IO|On4Speakers|Fires an output if '4 Speakers' is selected.|}} | {{IO|On4Speakers|Fires an output if '4 Speakers' is selected.|}} | ||
{{IO|On51Speakers|Fires an output if '5.1 Sound System' is selected.|}} | {{IO|On51Speakers|Fires an output if '5.1 Sound System' is selected.|}} | ||
== FGD Code == | == FGD Code == |
Revision as of 04:15, 13 September 2024


![]() |
---|
CMapInfo |
point_surroundtest
is a point entity available in Counter-Strike: Source and
Counter-Strike: Global Offensive. It identifies the server host's currently used speaker configuration setting by checking the snd_surround_speakers command's value. When given the
FireCorrectOutput
input, an unique output is returned depending only on the following speaker configurations:
- 2 Speakers (and Headphones Only)
- 4 Speakers
- 5.1 Sound System



Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
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 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." ]
Categories:
- Counter-Strike: Source
- Counter-Strike: Global Offensive
- CPointEntity
- Point entities
- Non-internal Counter-Strike: Source entities
- Counter-Strike: Source entities
- Counter-Strike: Source point entities
- Non-internal Counter-Strike: Global Offensive entities
- Counter-Strike: Global Offensive entities
- Counter-Strike: Global Offensive point entities