View Single Post
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 01-18-2014 , 18:36   Re: [CS:GO] Deathmatch Go Advanced (v0.1-beta, 2014-01-18)
Reply With Quote #2

Configuration file:
The configuration file is located in <Sourcemod Path>/configs/deathmatch.ini
It uses sourcemod's internal SMC format without the limitations on keyvalues file (eg: you can have sections with same names, even under one same section)

As it may contain a lot of section and subsection, I suggest to use an editor that supports section folding, like notepad++.

The file is case-sensitive!

The configuration is loaded twice for each map:
- At map change, for warmup
- At the end of warmup

Architecture:
The configuration file shall have the following architecture:
Code:
Root Node section ("Deathmatch Config" is the default)
|- Section (Can be named freely)
    |- SubSection (Can be named freely)
    |- SubSection 2
    |- ...
|- Section 2
|- ...
|- "Maps" (Mandatory section)
    |- SubSection (Name of a map, or prefix of a map (eg: "aim_")
    |- SubSection 2
    |- ...
    |- "" (Defaut subsection)
The plugin uses the current map name (without extension) and try to find a match into "Maps" subsection names.
If no match is found, an approximate match is tried, comparing only available char in subsection name
Example: With the following subsections under "Maps":
  1. "awp_scout_map"
  2. "awp"
  3. ""
if current map is "awp_scout_map", 1) will be matched
if current map is "awp_stuff", 2) will be matched
if current map is "aim_stuff", 3) will be matched

Note that having a default empty ("") subsection will handle any unmatched map names.

Once a match is found, plugin recursively loads the subsection content.

Subsections:
There are 3 types of subsections:
- NORMAL
- MESSAGE
- TEXT

"Maps" section shall only have Normal subsections.
Other sections may have any type of subsections, their type will be defined by how these subsection have been called.

NORMAL subsections:
Spoiler


List of available weapons:
Spoiler


MESSAGE subsections:
Spoiler


TEXT subsections:
Spoiler

Last edited by h3bus; 01-23-2016 at 07:41.
h3bus is offline