Fixed newlines in weapons and weapongroups.txt config files.

This commit is contained in:
Greyscale 2009-04-20 00:19:05 +02:00
parent 53c60d1c52
commit 8ac1361a70
2 changed files with 293 additions and 295 deletions

View File

@ -1,69 +1,69 @@
// Weapon Groups // Weapon Groups
// (See list of weapons in weapons.txt) // (See list of weapons in weapons.txt)
// Format // Format
// //
// //
// "weapon group name" (how it appears in chat messages) // "weapon group name" (how it appears in chat messages)
// { // {
// "weaponname" {} <-- To satisfy the standard format of a keyvalues file, // "weaponname" {} <-- To satisfy the standard format of a keyvalues file,
// without these brackets the weapon will be skipped. // without these brackets the weapon will be skipped.
// Invalid weapons are logged and skipped. // Invalid weapons are logged and skipped.
// } // }
// //
// Notes: // Notes:
// //
// Invalid weapons (not in weapons.txt) will be logged in the error logs and ignored in-game // Invalid weapons (not in weapons.txt) will be logged in the error logs and ignored in-game
"weapongroups" "weapongroups"
{ {
"Pistols" "Pistols"
{ {
"Glock" {} "Glock" {}
"USP" {} "USP" {}
"P228" {} "P228" {}
"Deagle" {} "Deagle" {}
"Elite" {} "Elite" {}
"Fiveseven" {} "Fiveseven" {}
} }
"Shotguns" "Shotguns"
{ {
"M3" {} "M3" {}
"XM1014" {} "XM1014" {}
} }
"SMGs" "SMGs"
{ {
"Mac10" {} "Mac10" {}
"TMP" {} "TMP" {}
"MP5Navy" {} "MP5Navy" {}
"UMP45" {} "UMP45" {}
"P90" {} "P90" {}
} }
"Rifles" "Rifles"
{ {
"Galil" {} "Galil" {}
"Famas" {} "Famas" {}
"AK47" {} "AK47" {}
"M4A1" {} "M4A1" {}
"SG552" {} "SG552" {}
"AUG" {} "AUG" {}
} }
"Snipers" "Snipers"
{ {
"Scout" {} "Scout" {}
"SG550" {} "SG550" {}
"G3SG1" {} "G3SG1" {}
"AWP" {} "AWP" {}
} }
"Grenades" "Grenades"
{ {
"hegrenade" {} "hegrenade" {}
"flashbang" {} "flashbang" {}
"smokegrenade" {} "smokegrenade" {}
} }
} }

View File

@ -1,227 +1,225 @@
// Weapons // Weapons
// //
// Format // Format
// //
// "weaponname" // Name of the weapon (without weapon_ prefix) // "weaponname" // Name of the weapon (without weapon_ prefix)
// { // {
// "restrict" "no" (default) // Restricts the weapon on each map start // "restrict" "no" (default) // Restricts the weapon on each map start
// "menu" "yes" (default) // Allows admins to toggle restriction with the menu // "menu" "yes" (default) // Allows admins to toggle restriction with the menu
// "knockback" "1.0" (default) // The knockback multiplier for the weapon // "knockback" "1.0" (default) // The knockback multiplier for the weapon
// } // }
// //
// Notes: // Notes:
// //
// This is a list of valid weapons for your server, unlisted weapons will // This is a list of valid weapons for your server, unlisted weapons will
// be seen as invalid by the weapon restrict module. // 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 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). // 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 // Duplicate weapon entries will show up separately in restrict menu, but
// only the first one's options are used. // only the first one's options are used.
"weapons" // Counter-Strike: Source weapons "weapons" // Counter-Strike: Source weapons
{ {
"Glock" "Glock"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "0.8" "knockback" "0.8"
} }
"USP" "USP"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "0.8" "knockback" "0.8"
} }
"P228" "P228"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"Deagle" "Deagle"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.2" "knockback" "1.2"
} }
"Elite" "Elite"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"Fiveseven" "Fiveseven"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"M3" "M3"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "0.8" // Remember that there are 8 pellets in 1 shot. "knockback" "0.8" // Remember that there are 8 pellets in 1 shot.
} }
"XM1014" "XM1014"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "0.8" // See above comment. "knockback" "0.8" // See above comment.
} }
"Mac10" "Mac10"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"TMP" "TMP"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"MP5Navy" "MP5Navy"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"UMP45" "UMP45"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"P90" "P90"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"Galil" "Galil"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"Famas" "Famas"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"AK47" "AK47"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.2" "knockback" "1.2"
} }
"M4A1" "M4A1"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.1" "knockback" "1.1"
} }
"SG552" "SG552"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.0" "knockback" "1.0"
} }
"AUG" "AUG"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.1" "knockback" "1.1"
} }
"Scout" "Scout"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "1.5" "knockback" "1.5"
} }
"SG550" "SG550"
{ {
"restrict" "yes" "restrict" "yes"
"menu" "yes" "menu" "yes"
"knockback" "1.3" "knockback" "1.3"
} }
"G3SG1" "G3SG1"
{ {
"restrict" "yes" "restrict" "yes"
"menu" "yes" "menu" "yes"
"knockback" "1.3" "knockback" "1.3"
} }
"AWP" "AWP"
{ {
"restrict" "yes" "restrict" "yes"
"menu" "yes" "menu" "yes"
"knockback" "1.8" "knockback" "1.8"
} }
"M249" "M249"
{ {
"restrict" "yes" "restrict" "yes"
"menu" "yes" "menu" "yes"
"knockback" "1.2" "knockback" "1.2"
} }
"hegrenade" "hegrenade"
{ {
"restrict" "no" "restrict" "no"
"menu" "yes" "menu" "yes"
"knockback" "6.0" "knockback" "6.0"
} }
"flashbang" "flashbang"
{ {
"restrict" "yes" "restrict" "yes"
"menu" "no" "menu" "no"
"knockback" "100.0" }
}
"smokegrenade"
"smokegrenade" {
{ "restrict" "yes"
"restrict" "yes" "menu" "no"
"menu" "no" }
"knockback" "100.0"
} "Knife"
{
"Knife" "restrict" "no"
{ "menu" "no"
"restrict" "no" "knockback" "15.0"
"menu" "no" }
"knockback" "8.0"
} "NVGs"
{
"NVGs" "restrict" "yes"
{ "menu" "no"
"restrict" "yes" }
"menu" "no" }
}
}