-
Notifications
You must be signed in to change notification settings - Fork 11
Settings
K4ryuu edited this page Apr 16, 2024
·
3 revisions
This page describes the configuration options available in the K4Arenas plugin for CounterStrikeSharp. Each setting is outlined with its expected values and usage.
-
Host: The hostname of the database server.
Default: "localhost"
-
Username: The username used to access the database.
Default: "root"
-
Database: The name of the database to use.
Default: "database"
-
Password: The password for accessing the database.
Default: "password"
-
Port: The port number on which the database server is running.
Default: 3306
-
Sslmode: The SSL mode to use when connecting to the database.
Default: "none"
-
Table Prefix: Prefix to be applied to all database tables used by the plugin.
Default: ""
-
Table Purge Days: Number of days to keep data before purging.
Default: 30
-
Gun Preference Commands: Commands related to setting or viewing preferred guns.
Examples: "guns", "gunpref", "weaponpref"
-
Round Preference Commands: Commands related to setting or viewing preferred round types.
Examples: "rounds", "roundpref"
-
Queue Commands: Command to view the queue.
Examples: "queue"
-
AFK Commands: Command to mark/unmark oneself as AFK.
Examples: "afk"
-
Challenge Commands: Commands to initiate challenges.
Examples: "challenge", "duel"
-
Challenge Accept Commands: Commands to accept challenges.
Examples: "caccept", "capprove"
-
Challenge Decline Commands: Commands to decline challenges.
Examples: "cdecline", "cdeny"
-
Default Rifle: Default rifle weapon. (classname)
Default: null
-
Default Sniper: Default sniper weapon. (classname)
Default: null
-
Default SMG: Default submachine gun. (classname)
Default: null
-
Default LMG: Default light machine gun. (classname)
Default: null
-
Default Shotgun: Default shotgun. (classname)
Default: null
-
Default Pistol: Default pistol. (classname)
Default: null
-
Metamod Skinchanger Compatibility: Enable compatibility with metamod skinchangers.
Default: false
-
Force Arena Clantags: Force display of arena-specific clantags.
Default: false
Each setting defines a specific type of round within the game, including weapon preferences, team sizes, and equipment.
-
Type:
string
- Required: Yes
- Description: The localization key or the display name for this round type. This is used to fetch the translated name for display purposes. If you don't want to add translation to the K4-Arenas lang folder, then its gonna be used as it is.
-
Type:
int
-
Default:
1
- Description: Specifies the number of players per team for this round. It is set to 1 by default, indicating individual play unless specified otherwise.
-
Type:
string?
-
Default:
null
-
Description: The specific primary weapon to be used during the round. If
null
, the round does not enforce a specific primary weapon. (classname)
-
Type:
string?
-
Default:
null
-
Description: The specific secondary weapon to be used during the round. If
null
, the round does not enforce a specific secondary weapon. (classname)
-
Type:
bool
-
Default:
false
- Description: Indicates whether players should use their preferred primary weapon if no specific primary weapon is defined for the round.
-
Type:
WeaponType?
(bottom of the page) -
Default:
null
-
Description: Specifies the preferred type of primary weapon if
UsePreferredPrimary
is set to true. It determines the weapon type preference (e.g., Rifle, Sniper) for the round.
-
Type:
bool
-
Default:
false
- Description: Indicates whether players should use their preferred secondary weapon if no specific secondary weapon is defined for the round.
-
Type:
bool
-
Default:
true
- Description: Specifies whether players are equipped with armor during the round.
-
Type:
bool
-
Default:
true
- Description: Specifies whether players are equipped with helmets during the round.
-
Type:
bool
-
Default:
true
- Description: Determines whether this round type is enabled by default in player preferences.
{
"TranslationName": "k4.rounds.rifle",
"TeamSize": 1,
"PrimaryWeapon": "weapon_ak47",
"SecondaryWeapon": "weapon_p250",
"UsePreferredPrimary": false,
"PrimaryPreference": null,
"UsePreferredSecondary": false,
"Armor": true,
"Helmet": true,
"EnabledByDefault": true
}
Possible WeaponType values:
Rifle - 0
Sniper - 1
SMG - 2
LMG - 3
Shotgun - 4
Pistol - 5
Both Random - 6 (if this set, everything is ignored, and player gets random pistol and primary)