Weapons module completed, added logging, thorough validations, and finished default configs.

This commit is contained in:
Greyscale
2009-04-14 04:58:05 +02:00
parent 44b0e776f2
commit 9031facaec
8 changed files with 177 additions and 111 deletions

View File

@ -10,6 +10,10 @@
// without these brackets the weapon will be skipped.
// Invalid weapons are logged and skipped.
// }
//
// Notes:
//
// Invalid weapons (not in weapons.txt) will be logged in the error logs and ignored in-game
"weapongroups"
{

View File

@ -8,6 +8,15 @@
// "menu" "yes" (default) // Allows admins to toggle restriction with the menu
// }
//
// Notes:
//
// This is a list of valid weapons for your server, unlisted weapons will
// be seen as invalid by the weapon restrict module.
//
// A config setting set to something other than "yes" or "no" will be assumed as "no."
//
// A missing config setting will be assumed to be its default value (documented above).
//
// Duplicate weapon entries will show up separately in restrict menu, but
// only the first one's options are used.
@ -15,20 +24,20 @@
{
"Glock"
{
"restrict" "no"
//"restrict" "no"
"menu" "yes"
}
"USP"
{
"restrict" "no"
"menu" "yes"
//"menu" "yes"
}
"P228"
{
"restrict" "no"
"menu" "yes"
//"restrict" "no"
//"menu" "yes"
}
"Deagle"
@ -135,19 +144,19 @@
"SG550"
{
"restrict" "no"
"restrict" "yes"
"menu" "yes"
}
"G3SG1"
{
"restrict" "no"
"restrict" "yes"
"menu" "yes"
}
"AWP"
{
"restrict" "no"
"restrict" "yes"
"menu" "yes"
}
@ -165,14 +174,14 @@
"flashbang"
{
"restrict" "no"
"menu" "yes"
"restrict" "yes"
"menu" "no"
}
"smokegrenade"
{
"restrict" "no"
"menu" "yes"
"restrict" "yes"
"menu" "no"
}
"NVGs"

View File

@ -164,6 +164,17 @@
"ru" "Отображение здоровья включено."
}
// ===========================
// Generic
// ===========================
// Menu
"Menu empty"
{
"en" "(Empty)"
}
// ===========================
// Weapons
// ===========================