Column "Name"
{
    AddFlag DONTSHOWHEADER
    AddFlag ALWAYSUSESHORTESTWIDTH
}

Column "Index"
{
    AddFlag ALWAYSUSESHORTESTWIDTH
    AddFlag DONTSHOWHEADER

    Alignment = Right
    Size = 16
}

Column "ZombieKills"
{
    AddFlag ALWAYSUSESHORTESTWIDTH

    DisplayName = "Zombie kills"
    ShortName = "kills (z)"
    Alignment = Right
    Size = 16
}

Column "HumanKills"
{
    AddFlag ALWAYSUSESHORTESTWIDTH

    DisplayName = "Human kills"
    ShortName = "kills (h)"
    Alignment = Right
    Size = 16
}

Column "Infects"
{
    AddFlag ALWAYSUSESHORTESTWIDTH

    Alignment = Right
    Size = 16
}

Column "Ping"
{
    AddFlag ONLINEONLY
    AddFlag ALWAYSUSESHORTESTWIDTH

    Alignment = Right
    Size = 16
}

Column "CountryFlag"
{
    AddFlag ONLINEONLY
    AddFlag DONTSHOWHEADER
    AddFlag ALWAYSUSESHORTESTWIDTH

    Alignment = Center
}

Scoreboard
{
    MainHeader
    {
        MultiLineBlock( horizontalalign = center )
        {
            DrawString( value = "Rankings", font = "BigFont", textcolor = "Red", bottompadding = 3 )
            
            IfIntermission( false )
            {
                DrawString( value = levellump + ": " + levelname, textcolor = "Gray" )
            }
            Else
            {
                DrawString( value = "Intermission: " + intermissiontimeleft, textcolor = "Gray" )
            }
        }
    }

    TeamHeader
    {
        MultiLineBlock( verticalalign = center )
        {
            RowBlock( )
            {
                DrawString( value = teamname, font = "BigFont", textcolor = teamtextcolor, bottompadding = 1 )
            }
        }
    }

    SpectatorHeader
    {
        MultiLineBlock( verticalalign = center )
        {
            DrawString( value = "Spectators", textcolor = "Gray", bottompadding = 1 )
        }
    }
    
    Footer
    {
        MultiLineBlock( horizontalalign = center )
        {
            DrawString( value = "`" )
            
            IfOnlineGame( true )
            {
                DrawString( value = cvar(sv_hostname), textcolor = "White" )
            }
            
            DrawString( value = "Questions? Join the Discord!", textcolor = "Gray" )
        }
    }

    HeaderFont = "SmallFont"
    RowFont = "SmallFont"
    HeaderTextColor = "Grey"
    RowTextColor = "Grey"
    LocalRowTextColor = "Green"
    LocalRowDemoTextColor = "Gold"
    BackgroundColor = "00 00 00"
    BackgroundAmount = 0.5
    BackgroundBorderSize = 4
    LightRowBackgroundColor = "40 40 40"
    DarkRowBackgroundColor = "20 20 20"
    LocalRowBackgroundColor = "80 80 80"
    ContentAlpha = 1.0
    RowBackgroundAmount = 0.65
    DeadPlayerTextAlpha = 0.35
    DeadPlayerRowBackgroundAmount = 0
    GapBetweenHeaderAndRows = 0
    GapBetweenColumns = 2
    GapBetweenRows = 1
    ColumnPadding = 5
    HeaderHeight = -2
    RowHeight = -2
    ColumnOrder = "Index", "CountryFlag", "ReadyToGoAndStatusIcons", "Player", "ZombieKills", "HumanKills", "Infects", "Ping"

    AddFlag SeparateDeadSpectators
}
