Radio sentence (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:


==Keyvalues==
==Keyvalues==
* WAV Name (message) <sound>
{{KV|WAV Name (message)|sound|Name of sound}}
:: Name of sound
{{KV|Talker's name (netname)|string|The name that will appear next to the speaker on the icon on the right (It is possible to write it directly, but it is better to refer to titles.txt - so that it can be both in Russian and in English. That is, if the name of the entry in titles.txt is called "TALKER", then enter "#TALKER" in this field)}}
*Talker's name (netname) <string>
{{KV|Hold time (health)|integer|How many seconds the icon will be on the screen (i.e. how long the sound lasts)}}
::The name that will appear next to the speaker on the icon on the right (It is possible to write it directly, but it is better to refer to titles.txt - so that it can be both in Russian and in English. That is, if the name of the entry in titles.txt is called "TALKER", then enter "#TALKER" in this field)
{{KV|Label color - R G B (rendercolor)|color255|Icon background color. Different characters can have different colors.}}
*Hold time (health) <integer>
{{KV|Transparency (renderamt)|integer|::Background transparency}}
::How many seconds the icon will be on the screen (i.e. how long the sound lasts)
*Label color - R G B (rendercolor) <color255>
::Icon background color. Different characters can have different colors.
*Transparency (renderamt) <integer>
::Background transparency
 
[[Category:GoldSrc]]
[[Category:GoldSrc]]

Revision as of 04:54, 21 August 2023

Template:Entity Which displays radio icon and corresponding wav-file.


Keyvalues

WAV Name (message) ([todo internal name (i)]) <sound>
Name of sound
Talker's name (netname) ([todo internal name (i)]) <string>
The name that will appear next to the speaker on the icon on the right (It is possible to write it directly, but it is better to refer to titles.txt - so that it can be both in Russian and in English. That is, if the name of the entry in titles.txt is called "TALKER", then enter "#TALKER" in this field)
Hold time (health) ([todo internal name (i)]) <integer>
How many seconds the icon will be on the screen (i.e. how long the sound lasts)
Label color - R G B (rendercolor) ([todo internal name (i)]) <color255>
Icon background color. Different characters can have different colors.
Transparency (renderamt) ([todo internal name (i)]) <integer>
Background transparency