Configuration

Guide

The config.lua file controls all aspects of the arena system. This guide explains each section and how to customize them.

Basic Settings

-- Language setting (available: 'en', 'cz')
lang = 'en',

Available Languages:

  • 'en' - English

  • 'cz' - Czech

Commands

commands = {
    leave = 'leavearena',        -- Command to leave arena
    killstreak = 'killstreak'    -- Command to toggle killstreak effects
},

Usage:

  • Players use /leavearena to exit any arena lobby

  • Players use /killstreak to disable/enable killstreak sound effects and notifications

Arena Announcements

How It Works:

  • When enabled, server broadcasts arena player count to all players

  • Interval is in milliseconds (60000 = 1 minute)

  • Set toggle = false to disable announcements

Gameplay Settings

Options:

  • respawn_time: Delay before respawning after death (FFA/TDM only)

  • starting_bucket: First routing bucket ID. Each lobby gets unique bucket for isolation.

Boundary System

How Boundaries Work:

  1. Player leaves defined map boundary

  2. Warning notification appears with countdown

  3. After boundary_warning_time, player is eliminated

Killstreak System

Killstreak Parameters:

  • kills: Number of kills needed

  • label: Text displayed to player

  • sound: Sound file name (place in xsound sounds folder, it's optional, make it false to disable)

  • reward: (Optional) 'armor' or 'speed'

  • amount: Armor amount to add (for armor reward)

  • seconds: Duration in seconds (for speed reward)

Available Rewards:

  • armor - Adds armor to player (max 100)

  • speed - Increases run speed temporarily

Kill Rewards

Options:

  • health: HP added per kill (max 200 total HP)

  • armor: Armor added per kill (max 100 total armor)

  • Set to false to disable specific reward

NPC Locations

Adding Multiple NPCs:

lua

Game Modes Configuration

FFA Lobbies (Free For All)

FFA Lobby Features:

  • Every player fights alone

  • Instant respawn after death

  • Players spawn at random FFA spawn points

  • Optional weapon restrictions

TDM Lobbies (Team Deathmatch)

TDM Lobby Features:

  • 2 teams competing

  • Players spawn at team-specific spawn points

  • Instant respawn after death

  • Team markers

Showdown Lobbies (Rounds/Elimination)

Showdown Lobby Features:

  • Elimination-based rounds

  • Round starts with 5 second countdown

  • First team to win X rounds wins match

  • Full HUD showing round info, scores, alive players

Maps Configuration

Creating Boundary Points

Method 1: In-Game Coordinates

  1. Stand at boundary edge

  2. Note your coordinates

  3. Add as vector2(x, y) to points array

  4. Continue around perimeter

Tips:

  • More points = more accurate boundary

  • Keep points in clockwise or counter-clockwise order

  • Test boundaries with Debug = true in ic_lib config

Adding New Maps

Debug Mode

Enable in ic_lib/shared/config.lua:

Debug Features:

  • Visual boundary lines drawn in-game

  • Console logs

  • Helpful for map creation and testing

Advanced Customization

Custom Revive Function

Edit open_sv.lua to support custom ambulance scripts:

Custom Join/Leave Logic

Edit open_sv.lua for custom behavior:

Last updated