Difference between revisions of "Banners"

From WolfWiki
Jump to: navigation, search
(made it more fancy and hopefully semantic correct)
(new style, do you like it?)
 
Line 3: Line 3:
 
==cvars==
 
==cvars==
  
;b_banners
+
{| cellspacing="2" cellpadding="2"
:Defines the number of banners you would like displayed in rotation. The default value of 0 disables banners altogether.<br />
+
|- style="background: #CCCCFF;"
:(valid values: 0-999, default: 0)
+
!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.
 +
|}
  
  
; b_banner<n>
+
==Locations==
: Define the banner text, where n is 1 to whatever number you set b_banners to. For example, you could set b_banners to 2 and use the following commands to define the banner text:
+
: <code>set b_banner1 "This is the first banner"<br />set b_banner2 "This is the second banner"</code>
+
:(default: not set)
+
  
 +
* <tt>'''8'''</tt> - player chat area
 +
* <tt>'''16'''</tt> - left popup area (not recommended)
 +
* <tt>'''32'''</tt> - centered above the chat area
 +
* <tt>'''64'''</tt> - console only
 +
* <tt>'''128'''</tt> - banner area (recommended)
  
;b_bannerlocation
+
<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.
:Defines the locations where banners are printed. Add together the following values:
+
:*'''8''' - player chat area
+
:*'''16''' - left popup area (not recommended)
+
:*'''32''' - centered above the chat area
+
:*'''64''' - console only
+
:*'''128''' - banner area (recommended)
+
:For compatibility, the old-style locations (from 0-4) are also supported. The client defaults to <code>b_logbanners 1</code>, 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 to the console.
+
  
 +
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.
  
;b_bannertime
 
:The time in seconds between the display of banners.
 
:(default: 0)
 
  
 
[[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.