Difference between revisions of "Banners"
From WolfWiki
(new style, do you like it?) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Admins may display banners to the clients on their server. | Admins may display banners to the clients on their server. | ||
− | == | + | ==cvars== |
− | + | {| cellspacing="2" cellpadding="2" | |
− | Defines the number of banners you would like displayed in rotation. | + | |- style="background: #CCCCFF;" |
+ | !width="200"|cvar | ||
+ | !width="100"|default | ||
+ | !description | ||
+ | |- style="background-color: #F4F4F4;" | ||
+ | |<tt style="color: green;">b_banners</tt> | ||
+ | |align="center"|0 | ||
+ | |Defines the number of banners you would like displayed in rotation. The default value of 0 disables banners altogether. | ||
+ | |- style="background-color: #EEEEEE;" | ||
+ | |<tt style="color: green;">b_banner<n></tt> | ||
+ | |align="center" style="color: gray;"|undefined | ||
+ | |Define the banner text, where n is 1 to whatever number you set <tt style="color: green;">b_banners</tt> to. | ||
+ | |- style="background-color: #F4F4F4;" | ||
+ | |<tt style="color:green;">b_bannerlocation</tt> | ||
+ | |align="center"|128 | ||
+ | |A bitmask cvar with the locations where banners are printed. See [[Banners#Locations|Locations]] for a list. | ||
+ | |- style="background-color: #EEEEEE;" | ||
+ | |<tt style="color:green;">b_bannertime</tt> | ||
+ | |align="center"|0 | ||
+ | |The time in seconds between the display of banners. | ||
+ | |} | ||
− | |||
− | |||
− | |||
− | |||
− | '' | + | ==Locations== |
− | + | ||
− | + | * <tt>'''8'''</tt> - player chat area | |
− | 16 - left popup area (not recommended)< | + | * <tt>'''16'''</tt> - left popup area (not recommended) |
− | 32 - centered above the chat area< | + | * <tt>'''32'''</tt> - centered above the chat area |
− | 64 - console only < | + | * <tt>'''64'''</tt> - console only |
− | 128 - banner area (recommended) | + | * <tt>'''128'''</tt> - banner area (recommended) |
− | For compatibility, the old-style locations (from 0-4) are also supported. The client defaults | + | |
+ | <tt style="color: green;">b_bannerlocation</tt> is a bitmask cvar. That means, you can mix the options. For example, setting the cvar to 136 will display banners at the banner area and the player chat area. | ||
+ | |||
+ | For compatibility, the old-style locations (from 0-4) are also supported. | ||
+ | |||
+ | The client defaults <tt style="color: green;">b_logbanners</tt> to 1, which effectively adds 64 to the locations list if it's not already present, so adding 64 isn't necessary unless you want to force the messages to be logged in the console. | ||
− | |||
− | |||
[[Category:ETPro:Server_Cvars]] | [[Category:ETPro:Server_Cvars]] |
Latest revision as of 17:47, 17 September 2006
Admins may display banners to the clients on their server.
cvars
cvar | default | description |
---|---|---|
b_banners | 0 | Defines the number of banners you would like displayed in rotation. The default value of 0 disables banners altogether. |
b_banner<n> | undefined | Define the banner text, where n is 1 to whatever number you set b_banners to. |
b_bannerlocation | 128 | A bitmask cvar with the locations where banners are printed. See Locations for a list. |
b_bannertime | 0 | The time in seconds between the display of banners. |
Locations
- 8 - player chat area
- 16 - left popup area (not recommended)
- 32 - centered above the chat area
- 64 - console only
- 128 - banner area (recommended)
b_bannerlocation is a bitmask cvar. That means, you can mix the options. For example, setting the cvar to 136 will display banners at the banner area and the player chat area.
For compatibility, the old-style locations (from 0-4) are also supported.
The client defaults b_logbanners to 1, which effectively adds 64 to the locations list if it's not already present, so adding 64 isn't necessary unless you want to force the messages to be logged in the console.