Skip to content

2.7. Configuration: Zones

shavit edited this page Aug 6, 2017 · 5 revisions

Path to configuration file: addons/sourcemod/configs/shavit-zones.cfg

bhoptimer allows you to change the zones' beam sprites and some other settings.

Configuration

Here's the default file:

// Absolutely DONT delete subkeys from this file.
//
// Visible defaults to 1.
// Other values default to 255, except for width which is 0.5.
"Zones"
{
	"Sprites"
	{
		"beam"			"shavit/zone_beam.vmt"
		"downloads"		"materials/shavit/zone_beam.vtf; materials/shavit/zone_beam.vmt"
	}

	"Colors"
	{
		"Start"
		{
			"visible"	"1"
			"red"		"67"
			"green"		"210"
			"blue"		"230"
			"width"		"0.5"
		}

		"End"
		{
			"visible"	"1"
			"red"		"165"
			"green"		"19"
			"blue"		"194"
			"width"		"0.5"
		}

		"Glitch_Respawn"
		{
			"visible"	"0"
			"red"		"255"
			"green"		"200"
			"blue"		"0"
			"width"		"0.5"
		}

		"Glitch_Stop"
		{
			"visible"	"0"
			"green"		"200"
			"blue"		"0"
			"width"		"0.5"
		}

		"Glitch_Slay"
		{
			"visible"	"0"
			"green"		"200"
			"blue"		"0"
			"width"		"0.5"
		}

		"Freestyle"
		{
			"visible"	"1"
			"red"		"25"
			"green"		"25"
			"blue"		"255"
			"alpha"		"195"
			"width"		"0.5"
		}

		"Nolimit"
		{
			"visible"	"1"
			"red"		"247"
			"green"		"3"
			"blue"		"255"
			"alpha"		"50"
			"width"		"0.5"
		}

		"Teleport"
		{
			"visible"	"0"
			"red"		"255"
			"green"		"200"
			"blue"		"0"
			"alpha"		"255"
			"width"		"4.0"
		}

		// This is unused, ignore it.
		"SPAWN POINT"
		{

		}

		"Easybhop"
		{
			"visible"	"1"
			"red"		"57"
			"green"		"196"
			"blue"		"92"
			"alpha"		"175"
			"width"		"5.5"
		}
	}
}

Some explanation:

  • The Sprites key defines the custom sprite that will be used for the zones. The sprite is the default CS:GO beam sprite without the halo sprite (as of August 2017) which looks great in CS:S too.
  • The Colors key has subkeys that define zone colors per zone type. Available settings are visible (0/1), red/green/blue/alpha (colors) and width.

Note: Have the materials bz2'd on your fast-downloads server, if you have one.

Path to configuration file: cfg/sourcemod/plugin.shavit-zones.cfg

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.