Weapons module added, still needs better validations

This commit is contained in:
Greyscale
2009-04-12 08:04:00 +02:00
parent d063def554
commit 035d6182a9
12 changed files with 930 additions and 201 deletions

View File

@ -1,86 +0,0 @@
// Weapon Lists
//
//
// Counter-Strike: Source |
// -----------------------|
// glock |
// usp |
// p228 |
// deagle |
// elite |
// fiveseven |
// m3 |
// xm1014 |
// mac10 |
// tmp |
// mp5navy |
// ump45 |
// p90 |
// galil |
// famas |
// ak47 |
// m4a1 |
// sg552 |
// aug |
// scout |
// sg550 |
// g3sg1 |
// awp |
// -----------------------|
// Format
//
//
// "weapon group name"
// {
// "weaponname (listed above)" {} <-- To satisfy the standard format of a keyvalues file,
// without these brackets the weapon will be ommitted
// }
"weapongroups"
{
"pistols"
{
"glock" {}
"usp" {}
"p228" {}
"deagle" {}
"elite" {}
"fiveseven" {}
}
"shotguns"
{
"m3" {}
"xm1014" {}
}
"smgs"
{
"mac10" {}
"tmp" {}
"mp5navy" {}
"ump45" {}
"p90" {}
}
"rifles"
{
"galil" {}
"famas" {}
"ak47" {}
"m4a1" {}
"sg552" {}
"aug" {}
}
"snipers"
{
"scout" {}
"sg550" {}
"g2sg1" {}
"awp" {}
}
}

View File

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

View File

@ -0,0 +1,154 @@
// Weapons
//
// Format
//
// "weaponname" // Name of the weapon (without weapon_ prefix)
// {
// "restrict" "no" (default) // Restricts the weapon on each map start
// "menu" "yes" (default) // Allows admins to toggle restriction with the menu
// }
//
// Duplicate weapon entries will show up separately in restrict menu, but
// only the first one's options are used.
"weapons" // Counter-Strike: Source weapons
{
"Glock"
{
"restrict" "no"
"menu" "yes"
}
"USP"
{
"restrict" "no"
"menu" "yes"
}
"P228"
{
"restrict" "no"
"menu" "yes"
}
"Deagle"
{
"restrict" "no"
"menu" "yes"
}
"Elite"
{
"restrict" "no"
"menu" "yes"
}
"Fiveseven"
{
"restrict" "no"
"menu" "yes"
}
"M3"
{
"restrict" "no"
"menu" "yes"
}
"XM1014"
{
"restrict" "no"
"menu" "yes"
}
"Mac10"
{
"restrict" "no"
"menu" "yes"
}
"TMP"
{
"restrict" "no"
"menu" "yes"
}
"MP5Navy"
{
"restrict" "no"
"menu" "yes"
}
"UMP45"
{
"restrict" "no"
"menu" "yes"
}
"P90"
{
"restrict" "no"
"menu" "yes"
}
"Galil"
{
"restrict" "no"
"menu" "yes"
}
"Famas"
{
"restrict" "no"
"menu" "yes"
}
"AK47"
{
"restrict" "no"
"menu" "no"
}
"M4A1"
{
"restrict" "no"
"menu" "yes"
}
"SG552"
{
"restrict" "no"
"menu" "yes"
}
"AUG"
{
"restrict" "no"
"menu" "yes"
}
"Scout"
{
"restrict" "no"
"menu" "yes"
}
"SG550"
{
"restrict" "no"
"menu" "yes"
}
"GSG1"
{
"restrict" "no"
"menu" "yes"
}
"AWP"
{
"restrict" "no"
"menu" "yes"
}
}

View File

@ -90,12 +90,6 @@
"en" "You are now susceptible to zombie infection."
"ru" "Теперь вы восприимчивы к зомби инфекции."
}
"Market out of buyzone"
{
"en" "You are not in a buyzone."
"ru" "Вы вне зоны покупки."
}
"!ztele amount"
{
@ -171,35 +165,67 @@
}
// ===========================
// Weapon Restrict
// Weapons
// ===========================
// General
"Zombie cant use weapon"
{
"en" "Zombies can't use weapons!"
"ru" "Зомби не могут использовать оружие!"
}
// Market
"Market out of buyzone"
{
"en" "You are not in a buyzone."
"ru" "Вы вне зоны покупки."
}
// Restrict
"Restrict weapon"
{
"#format" "{1:s}"
"en" "Weapon @green\"{1}\" @defaulthas been restricted."
"ru" "Оружие @green\"{1}\" было запрещено."
}
"Unrestrict weapon"
{
"#format" "{1:s}"
"en" "Weapon @green\"{1}\" @defaulthas been unrestricted."
"ru" "Оружие @green\"{1}\" было разрешено."
}
"Restrict weapon failed"
{
"#format" "{1:s}"
"en" "Weapon @green\"{1}\" @defaultis already restricted."
}
"Unrestrict weapon failed"
{
"#format" "{1:s}"
"en" "Weapon @green\"{1}\" @default has no restrictions set."
}
"Restrict custom weapon group"
{
"#format" "{1:s},{2:s}"
"en" "Weapon group @green\"{1}\" ({2}) @defaulthas been restricted."
"ru" "Группа оружия @green\"{1}\" ({2}) была запрещена."
}
"Unrestrict custom weapon group"
{
"#format" "{1:s},{2:s}"
"en" "Weapon group @green\"{1}\" ({2}) @defaulthas been unrestricted."
"ru" "Группа оружия @green\"{1}\" ({2}) была разрешена."
}
"Weapon invalid"
{
"#format" "{1:s}"
"en" "Weapon @green\"{1}\" @defaultis an invalid weapon name."
}
"Weapon is restricted"
@ -209,19 +235,42 @@
"ru" "Оружие @green{1} @default запрещено."
}
"Weapon invalid"
// Menu
"Weapons menu main title"
{
"#format" "{1:s}"
"en" "Weapon @green\"{1}\" @defaultis not currently restricted."
"en" "Weapons Management"
}
"Zombie cant use weapon"
"Weapons menu main restrict weapon"
{
"en" "Zombies can't use weapons!"
"ru" "Зомби не могут использовать оружие!"
"en" "Restrict a Weapon"
}
"Weapons menu main unrestrict weapon"
{
"en" "Unrestrict a Weapon"
}
"Weapons menu main restrict weapon group"
{
"en" "Restrict a Weapon Group"
}
"Weapons menu main unrestrict weapon group"
{
"en" "Unrestrict a Weapon Group"
}
"Weapons menu main market" // Option disabled if ZMarket isn't installed
{
"en" "ZMarket Options"
}
"Weapons menu weapons title"
{
"en" "Toggle Restrictions:"
}
"Suicide text"
{
@ -344,27 +393,22 @@
{
"en" "Infect a Player"
}
"!zadmin main spawn"
{
"en" "Spawn All Players"
}
"!zadmin main tele"
{
"en" "ZTele Commands"
}
"!zadmin main restrict"
"!zadmin main weapons"
{
"en" "Restrict Weapon"
"en" "Weapon Management"
}
"!zadmin main unrestrict"
{
"en" "Unrestrict Weapon"
}
"!zadmin main logflags"
{
"en" "Logging Flags"