-
Notifications
You must be signed in to change notification settings - Fork 97
2.7. Configuration: Zones
shavit edited this page Aug 2, 2017
·
5 revisions
bhoptimer allows you to change the zones' beam sprites and some other settings.
Here's the default file:
// Absolutely DON'T delete subkeys from this file.
//
// visible defaults to 1
// other values default to 255, except for width which is 2.0
"Zones"
{
// zone sprites
"CS:S"
{
"beam" "shavit/zonev2_sprite.vmt"
"halo" "none"
"downloads" "materials/shavit/zonev2_sprite.vtf; materials/shavit/zonev2_sprite.vmt"
}
"CS:GO"
{
"beam" "shavit/zonecsgo_sprite.vmt"
"halo" "none"
"downloads" "materials/shavit/zonecsgo_sprite.vtf; materials/shavit/zonecsgo_sprite.vmt"
}
"Colors"
{
"Start"
{
"red" "67"
"green" "210"
"blue" "230"
"width" "2.0"
}
"End"
{
"red" "165"
"green" "19"
"blue" "194"
}
"Glitch"
{
"visible" "0"
"green" "200"
"blue" "0"
}
"Glitch_Respawn"
{
"visible" "0"
"green" "200"
"blue" "0"
}
"Glitch_Stop"
{
"visible" "0"
"green" "200"
"blue" "0"
}
"Glitch_Slay"
{
"visible" "0"
"green" "200"
"blue" "0"
}
"Freestyle"
{
"red" "25"
"green" "25"
"alpha" "195"
}
"Nolimit"
{
"red" "247"
"green" "3"
"alpha" "50"
}
"Teleport"
{
"visible" "0"
"green" "200"
"blue" "0"
"width" "4.0"
}
}
}
Some explanation:
- The
CS:S
/CS:GO
keys are per-mod settings. If your server runsCS:S
, thenCS:S
will be used, otherwiseCS:GO
will.beam
is the path to the sprite (withoutmaterials/
) of the zone's beam.halo
is the halo sprite, I personally never needed it - you'll know if you do need it.downloads
is a string that contains all materials (in their full path) that the plugin should make players download. Separate them by a semicolon and a space. - The
Colors
key has subkeys that define zone colors per zone type. Available settings arevisible
(0/1),red
/green
/blue
/alpha
(colors) andwidth
.
Note: Have the materials bz2'd on your fast-downloads server, if you have one.
You can also modify other settings, such as the following highlights:
-
shavit_zones_flat
- set this to 1 if you want zones to be drawn as a flat, 2D box. -
shavit_zones_interval
- the interval between each zone draw. For slow gamemodes (_strafe/scroll/400 velocity etc increase the value to save bandwidth and CPU cycles. The default value is 1.5 (seconds). -
shavit_zones_offset
- an offset of "by how many units to scale the VISUAL zone box inwards the center". The setting also accepts negative numbers. The default is 0.5. -
shavit_zones_usecustomsprite
- set this to 0 if you want to use the game's default beams. They will usually look uglier.