Recoded weapon restrictions, and made new way of storing data. (Arrays)
* Removed ZMarket as an external plugin (to be integrated next commit) * Updated weapon configs, removed weapongroups.txt and moved weapons.txt to root zr config folder. * Moved offset finding to respective module, made new forward *OnOffsetsFound. * Updated weapons&hitgroups config file format to match playerclass.txt * Updated translations. * Recoded weapon restrict menu, commented out all zadmin options that don't quite work. * Added weaponammo module (not finished but existent) * Started zmarket module.
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
//
|
||||
// "hitgroup index" // Index of the hitgroup (listed below)
|
||||
// {
|
||||
// "name" "name of hitgroup" // Redundant as of now, used for readability.
|
||||
// "index" "name of hitgroup" // Redundant as of now, used for readability.
|
||||
// "knockback" "1.0" (default) // The knockback multiplier for the hitgroup.
|
||||
// "damage" "yes" (default // Toggle damage on and off for this hitgroup.
|
||||
// }
|
||||
@ -13,68 +13,130 @@
|
||||
//
|
||||
// A missing config setting will be assumed to be its default value (documented above).
|
||||
|
||||
// ============================================================================
|
||||
//
|
||||
// ZOMBIE:RELOADED
|
||||
// Hitgroup configurations
|
||||
//
|
||||
// Check the hitgroup configuration section in the manual for detailed info.
|
||||
//
|
||||
// ============================================================================
|
||||
//
|
||||
// SHORT DESCRIPTIONS
|
||||
//
|
||||
// Attribute: Values: Description:
|
||||
// ----------------------------------------------------------------------------
|
||||
// index number The hitgroup index
|
||||
// damage yes/no Allow damage to be done on this hitgroup for zombies.
|
||||
// knockback decimal The knockback multiplier for this hitgroup.
|
||||
|
||||
"hitgroups" // Counter-Strike: Source hitgroups
|
||||
{
|
||||
"0"
|
||||
"Generic"
|
||||
{
|
||||
"name" "Generic"
|
||||
"knockback" "1.0"
|
||||
// General
|
||||
"index" "0"
|
||||
|
||||
// Damage
|
||||
"damage" "yes"
|
||||
|
||||
// Knockback
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"1"
|
||||
"Head"
|
||||
{
|
||||
"name" "Head"
|
||||
// General
|
||||
"index" "1"
|
||||
|
||||
// Damage
|
||||
"damage" "yes"
|
||||
|
||||
// Knockback
|
||||
"knockback" "2.0"
|
||||
"damage" "yes"
|
||||
}
|
||||
|
||||
"2"
|
||||
"Chest"
|
||||
{
|
||||
"name" "Chest"
|
||||
// General
|
||||
"index" "2"
|
||||
|
||||
// Damage
|
||||
"damage" "yes"
|
||||
|
||||
// Knockback
|
||||
"knockback" "1.3"
|
||||
"damage" "yes"
|
||||
}
|
||||
|
||||
"3"
|
||||
"Stomach"
|
||||
{
|
||||
"name" "Stomach"
|
||||
// General
|
||||
"index" "3"
|
||||
|
||||
// Damage
|
||||
"damage" "yes"
|
||||
|
||||
// Knockback
|
||||
"knockback" "1.2"
|
||||
"damage" "yes"
|
||||
}
|
||||
|
||||
"4"
|
||||
"Left Arm"
|
||||
{
|
||||
"name" "Left Arm"
|
||||
// General
|
||||
"index" "4"
|
||||
|
||||
// Damage
|
||||
"damage" "yes"
|
||||
|
||||
// Knockback
|
||||
"knockback" "1.0"
|
||||
"damage" "yes"
|
||||
}
|
||||
|
||||
"5"
|
||||
"Right Arm"
|
||||
{
|
||||
"name" "Right Arm"
|
||||
// General
|
||||
"index" "5"
|
||||
|
||||
// Damage
|
||||
"damage" "yes"
|
||||
|
||||
// Knockback
|
||||
"knockback" "1.0"
|
||||
"damage" "yes"
|
||||
}
|
||||
|
||||
"6"
|
||||
"Left Leg"
|
||||
{
|
||||
"name" "Left Leg"
|
||||
// General
|
||||
"index" "6"
|
||||
|
||||
// Damage
|
||||
"damage" "yes"
|
||||
|
||||
// Knockback
|
||||
"knockback" "0.9"
|
||||
"damage" "yes"
|
||||
}
|
||||
|
||||
"7"
|
||||
"Right Leg"
|
||||
{
|
||||
"name" "Right Leg"
|
||||
// General
|
||||
"index" "7"
|
||||
|
||||
// Damage
|
||||
"damage" "yes"
|
||||
|
||||
// Knockback
|
||||
"knockback" "0.9"
|
||||
"damage" "yes"
|
||||
}
|
||||
|
||||
"10"
|
||||
"Gear"
|
||||
{
|
||||
"name" "Gear"
|
||||
"knockback" "1.0"
|
||||
// General
|
||||
"index" "8"
|
||||
|
||||
// Damage
|
||||
"damage" "yes"
|
||||
|
||||
// Knockback
|
||||
"knockback" "1.0"
|
||||
}
|
||||
}
|
||||
|
713
cstrike/addons/sourcemod/configs/zr/weapons.txt
Normal file
713
cstrike/addons/sourcemod/configs/zr/weapons.txt
Normal file
@ -0,0 +1,713 @@
|
||||
// ============================================================================
|
||||
//
|
||||
// ZOMBIE:RELOADED
|
||||
// Weapon configurations
|
||||
//
|
||||
// Check the weapon configuration section in the manual for detailed info.
|
||||
//
|
||||
// ============================================================================
|
||||
//
|
||||
// SHORT DESCRIPTIONS
|
||||
//
|
||||
// Attribute: Values: Description:
|
||||
// ----------------------------------------------------------------------------
|
||||
// weapontype text The type of weapon it is. (List types, separate by ", "
|
||||
// restrictdefault yes/no The default restricted status of the weapon on map start.
|
||||
// toggleable yes/no Enable weapon to have restrictions toggled mid-game.
|
||||
// ammotype text Ammo entity that belongs to weapons. (Don't change this)
|
||||
// ammoprice number Price of ammo for this weapon.
|
||||
// knockback decimal The knockback multiplier for the weapon. ['0.5' = half knockback | 2.0 = double]
|
||||
// zmarketprice number The price of the weapon in ZMarket. (Defaulted to CS:S buymenu price)
|
||||
|
||||
"weapons" // Counter-Strike: Source weapons
|
||||
{
|
||||
"Glock"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Pistol"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_9mm"
|
||||
"ammoprice" "100"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "0.8"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "400"
|
||||
}
|
||||
|
||||
"USP"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Pistol"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_45acp"
|
||||
"ammoprice" "100"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "0.8"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "500"
|
||||
}
|
||||
|
||||
"P228"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Pistol"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_357sig"
|
||||
"ammoprice" "100"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "600"
|
||||
|
||||
}
|
||||
|
||||
"Deagle"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Pistol"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_50ae"
|
||||
"ammoprice" "100"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.2"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "650"
|
||||
|
||||
}
|
||||
|
||||
"Elite"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Pistol"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_9mm"
|
||||
"ammoprice" "100"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "800"
|
||||
|
||||
}
|
||||
|
||||
"Fiveseven"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Pistol"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_57mm"
|
||||
"ammoprice" "100"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "750"
|
||||
|
||||
}
|
||||
|
||||
"M3"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Shotgun"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_buckshot"
|
||||
"ammoprice" "300"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "0.9" // Remember that there are 8 pellets in 1 shot.
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "1700"
|
||||
|
||||
}
|
||||
|
||||
"XM1014"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Shotgun"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_buckshot"
|
||||
"ammoprice" "300"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "0.8" // See above comment.
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "3000"
|
||||
|
||||
}
|
||||
|
||||
"Mac10"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, SMG"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_45acp"
|
||||
"ammoprice" "300"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "1400"
|
||||
}
|
||||
|
||||
"TMP"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, SMG"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_9mm"
|
||||
"ammoprice" "300"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "1250"
|
||||
}
|
||||
|
||||
"MP5Navy"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, SMG"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_9mm"
|
||||
"ammoprice" "300"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "1500"
|
||||
}
|
||||
|
||||
"UMP45"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, SMG"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_45acp"
|
||||
"ammoprice" "300"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "1700"
|
||||
}
|
||||
|
||||
"P90"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, SMG"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_57mm"
|
||||
"ammoprice" "300"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "2350"
|
||||
}
|
||||
|
||||
"Galil"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Rifle"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_556mm"
|
||||
"ammoprice" "500"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "2000"
|
||||
}
|
||||
|
||||
"Famas"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Rifle"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_556mm"
|
||||
"ammoprice" "500"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "2250"
|
||||
}
|
||||
|
||||
"AK47"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Rifle"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_762mm"
|
||||
"ammoprice" "500"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.2"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "2500"
|
||||
}
|
||||
|
||||
"M4A1"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Rifle"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_556mm"
|
||||
"ammoprice" "500"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.1"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "3100"
|
||||
}
|
||||
|
||||
"SG552"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Rifle"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_556mm"
|
||||
"ammoprice" "500"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "3500"
|
||||
}
|
||||
|
||||
"AUG"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Rifle"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_762mm"
|
||||
"ammoprice" "500"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.1"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "3500"
|
||||
}
|
||||
|
||||
"Scout"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Sniper"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_762mm"
|
||||
"ammoprice" "750"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.5"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "2750"
|
||||
}
|
||||
|
||||
"SG550"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Sniper"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_556mm"
|
||||
"ammoprice" "1000"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.3"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "4200"
|
||||
}
|
||||
|
||||
"G3SG1"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Sniper"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_762mm"
|
||||
"ammoprice" "1000"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.3"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "5000"
|
||||
}
|
||||
|
||||
"AWP"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Sniper"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_338mag"
|
||||
"ammoprice" "1000"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.8"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "4750"
|
||||
}
|
||||
|
||||
"M249"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Machine Gun"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Weapon Ammo (core)
|
||||
|
||||
"ammotype" "ammo_556mm_box"
|
||||
"ammoprice" "1500"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "1.2"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "5750"
|
||||
}
|
||||
|
||||
"Knife"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Melee"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "no"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "10.0"
|
||||
}
|
||||
|
||||
"HEGrenade"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Projectile"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "no"
|
||||
"toggleable" "yes"
|
||||
|
||||
// Knockback (module)
|
||||
|
||||
"knockback" "6.0"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "300"
|
||||
}
|
||||
|
||||
"Flashbang"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Projectile"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "yes"
|
||||
"toggleable" "yes"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "300"
|
||||
}
|
||||
|
||||
"Smokegrenade"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Projectile"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "yes"
|
||||
"toggleable" "yes"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "300"
|
||||
}
|
||||
|
||||
"NVGs"
|
||||
{
|
||||
// General
|
||||
|
||||
"weapontype" "All, Equipment"
|
||||
|
||||
// Restrict (core)
|
||||
|
||||
"restrictdefault" "yes"
|
||||
"toggleable" "yes"
|
||||
|
||||
// ZMarket (module)
|
||||
|
||||
"zmarketprice" "1000"
|
||||
}
|
||||
}
|
@ -1,69 +0,0 @@
|
||||
// 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.
|
||||
// }
|
||||
//
|
||||
// Notes:
|
||||
//
|
||||
// Invalid weapons (not in weapons.txt) will be logged in the error logs and ignored in-game
|
||||
|
||||
"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" {}
|
||||
"G3SG1" {}
|
||||
"AWP" {}
|
||||
}
|
||||
|
||||
"Grenades"
|
||||
{
|
||||
"hegrenade" {}
|
||||
"flashbang" {}
|
||||
"smokegrenade" {}
|
||||
}
|
||||
}
|
@ -1,225 +0,0 @@
|
||||
// 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
|
||||
// "knockback" "1.0" (default) // The knockback multiplier for the weapon
|
||||
// }
|
||||
//
|
||||
// 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.
|
||||
|
||||
"weapons" // Counter-Strike: Source weapons
|
||||
{
|
||||
"Glock"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "0.8"
|
||||
}
|
||||
|
||||
"USP"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "0.8"
|
||||
}
|
||||
|
||||
"P228"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"Deagle"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.2"
|
||||
}
|
||||
|
||||
"Elite"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"Fiveseven"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"M3"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "0.8" // Remember that there are 8 pellets in 1 shot.
|
||||
}
|
||||
|
||||
"XM1014"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "0.8" // See above comment.
|
||||
}
|
||||
|
||||
"Mac10"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"TMP"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"MP5Navy"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"UMP45"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"P90"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"Galil"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"Famas"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"AK47"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.2"
|
||||
}
|
||||
|
||||
"M4A1"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.1"
|
||||
}
|
||||
|
||||
"SG552"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.0"
|
||||
}
|
||||
|
||||
"AUG"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.1"
|
||||
}
|
||||
|
||||
"Scout"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "1.5"
|
||||
}
|
||||
|
||||
"SG550"
|
||||
{
|
||||
"restrict" "yes"
|
||||
"menu" "yes"
|
||||
"knockback" "1.3"
|
||||
}
|
||||
|
||||
"G3SG1"
|
||||
{
|
||||
"restrict" "yes"
|
||||
"menu" "yes"
|
||||
"knockback" "1.3"
|
||||
}
|
||||
|
||||
"AWP"
|
||||
{
|
||||
"restrict" "yes"
|
||||
"menu" "yes"
|
||||
"knockback" "1.8"
|
||||
}
|
||||
|
||||
"M249"
|
||||
{
|
||||
"restrict" "yes"
|
||||
"menu" "yes"
|
||||
"knockback" "1.2"
|
||||
}
|
||||
|
||||
"hegrenade"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "yes"
|
||||
"knockback" "6.0"
|
||||
}
|
||||
|
||||
"flashbang"
|
||||
{
|
||||
"restrict" "yes"
|
||||
"menu" "no"
|
||||
}
|
||||
|
||||
"smokegrenade"
|
||||
{
|
||||
"restrict" "yes"
|
||||
"menu" "no"
|
||||
}
|
||||
|
||||
"Knife"
|
||||
{
|
||||
"restrict" "no"
|
||||
"menu" "no"
|
||||
"knockback" "15.0"
|
||||
}
|
||||
|
||||
"NVGs"
|
||||
{
|
||||
"restrict" "yes"
|
||||
"menu" "no"
|
||||
}
|
||||
}
|
@ -84,8 +84,8 @@
|
||||
|
||||
"Config command reload syntax"
|
||||
{
|
||||
"#format" "{1:s},{2:s},{3:s},{4:s},{5:s},{6:s}"
|
||||
"en" "Syntax: zr_reloadconfig <file alias> - Reloads a config file.\n File Aliases:\n * \"{1}\"\n * \"{2}\"\n * \"{3}\"\n * \"{4}\"\n * \"{5}\"\n * \"{6}\""
|
||||
"#format" "{1:s},{2:s},{3:s},{4:s},{5:s}"
|
||||
"en" "Syntax: zr_reloadconfig <file alias> - Reloads a config file.\n File Aliases:\n * \"{1}\"\n * \"{2}\"\n * \"{3}\"\n * \"{4}\"\n * \"{5}\""
|
||||
}
|
||||
|
||||
"Config command reload invalid"
|
||||
@ -289,46 +289,52 @@
|
||||
"en" "Weapon @green\"{1}\" @defaulthas been unrestricted."
|
||||
}
|
||||
|
||||
"Restrict weapon failed"
|
||||
"Restrict weapon stopped"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Weapon @green\"{1}\" @defaultis already restricted."
|
||||
}
|
||||
|
||||
"Unrestrict weapon failed"
|
||||
"Unrestrict weapon stopped"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Weapon @green\"{1}\" @default has no restrictions set."
|
||||
}
|
||||
|
||||
"Restrict custom weapon group"
|
||||
"Restrict weapon type"
|
||||
{
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "Weapon group @green\"{1}\" ({2}) @defaulthas been restricted."
|
||||
"#format" "{1:s}"
|
||||
"en" "Weapons of type @green\"{1}\" @defaulthave been restricted."
|
||||
}
|
||||
|
||||
"Unrestrict custom weapon group"
|
||||
"Unrestrict weapon type"
|
||||
{
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "Weapon group @green\"{1}\" ({2}) @defaulthas been unrestricted."
|
||||
"#format" "{1:s}"
|
||||
"en" "Weapons of type @green\"{1}\" @defaulthave been unrestricted."
|
||||
}
|
||||
|
||||
"Restrict custom weapon group failed"
|
||||
"Restrict weapon type stopped"
|
||||
{
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "Weapon group @green\"{1}\" ({2}) @defaultis already restricted."
|
||||
"#format" "{1:s}"
|
||||
"en" "Weapons of type @green\"{1}\" @defaultare all already restricted."
|
||||
}
|
||||
|
||||
"Unrestrict custom weapon group failed"
|
||||
"Unrestrict weapon type stopped"
|
||||
{
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "Weapon group @green\"{1}\" ({2}) @defaulthas no restrictions set."
|
||||
"#format" "{1:s}"
|
||||
"en" "Weapons of type @green\"{1}\" @defaulthave no restrictions set."
|
||||
}
|
||||
|
||||
"Restrict weapon untoggleable"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Weapon @green\"{1}\" @defaultmay not have its restrictions toggled."
|
||||
}
|
||||
|
||||
"Weapon invalid"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Weapon @green\"{1}\" @defaultis an invalid weapon name."
|
||||
"en" "Weapon @green\"{1}\" @defaultis an invalid weapon (type) name."
|
||||
}
|
||||
|
||||
"Weapon is restricted"
|
||||
@ -338,29 +344,28 @@
|
||||
"ru" "Оружие @green{1} @default запрещено."
|
||||
}
|
||||
|
||||
// Market
|
||||
// ZMarket
|
||||
|
||||
"Market title"
|
||||
{
|
||||
"en" "Available Weapons:"
|
||||
"en" ""
|
||||
}
|
||||
|
||||
"Market rebuy"
|
||||
{
|
||||
"en" "Rebuy"
|
||||
"ru" "Купить снова"
|
||||
"en" ""
|
||||
}
|
||||
|
||||
// Commands
|
||||
|
||||
"Weapons command restrict syntax"
|
||||
{
|
||||
"en" "Syntax: zr_restrict <weapon> (\"weapon_\" prefix is ignored)"
|
||||
"en" "Restricts a weapon or a weapon type. Usage: zr_restrict <weapon|weapon type> [weapon2|weapontype2] ..."
|
||||
}
|
||||
|
||||
"Weapons command unrestrict syntax"
|
||||
{
|
||||
"en" "Syntax: zr_unrestrict <weapon> (\"weapon_\" prefix is ignored)"
|
||||
"en" "Unrestricts a weapon or a weapon type. Usage: zr_unrestrict <weapon|weapon type> [weapon2|weapontype2] ..."
|
||||
}
|
||||
|
||||
// Menu
|
||||
@ -370,56 +375,48 @@
|
||||
"en" "Weapons Management"
|
||||
}
|
||||
|
||||
"Weapons menu main toggle weapon restrict"
|
||||
"Weapons menu main restrict"
|
||||
{
|
||||
"en" "Toggle Weapon Restriction"
|
||||
"en" "Weapon Restrictions"
|
||||
}
|
||||
|
||||
"Weapons menu main toggle weapon group restrict"
|
||||
"Weapons menu main market"
|
||||
{
|
||||
"en" "Toggle Weapon Group Restriction"
|
||||
"en" "ZMarket"
|
||||
}
|
||||
|
||||
"Weapons menu main market" // Option disabled if ZMarket isn't installed
|
||||
"Weapons menu types title"
|
||||
{
|
||||
"en" "ZMarket Options"
|
||||
"en" "Weapon Restrictions\nSelect Weapon Type:"
|
||||
}
|
||||
|
||||
"Weapons menu weapons weapon title"
|
||||
{
|
||||
"en" "Toggle Restrictions:\n * = restricted"
|
||||
}
|
||||
|
||||
"Weapons menu weapons group title"
|
||||
{
|
||||
"en" "Access Weapon Group:\n * = Partially restricted\n ** = Fully restricted"
|
||||
}
|
||||
|
||||
"Weapons menu weapon group title"
|
||||
"Weapons menu types type title"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Modify Restrictions:\n Current Weapon Group: {1}\n * = restricted"
|
||||
"en" "Weapon Restrictions\nWeapon Type: {1}\n[] = Restricted"
|
||||
}
|
||||
|
||||
"Weapons menu market title"
|
||||
{
|
||||
"en" "Toggle Market Settings:"
|
||||
}
|
||||
|
||||
"Weapons menu market toggle buyzone"
|
||||
"Weapons menu types restrict all"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Buyzone Only (Current: {1})"
|
||||
"en" "Restrict weapon type {1}"
|
||||
}
|
||||
|
||||
"Weapons menu weapon group restrict all"
|
||||
"Weapons menu types unrestrict all"
|
||||
{
|
||||
"en" "Restrict All Group Weapons"
|
||||
"#format" "{1:s}"
|
||||
"en" "Unrestrict weapon type {1}\n "
|
||||
}
|
||||
|
||||
"Weapons menu weapon group unrestrict all"
|
||||
"Weapons menu zmarket title"
|
||||
{
|
||||
"en" "Unrestrict All Group Weapons"
|
||||
"en" "ZMarket\nSelect Setting:"
|
||||
}
|
||||
|
||||
"Weapons menu zmarket buyzone"
|
||||
{
|
||||
"#format" "{1:s}"
|
||||
"en" "Buyzone Only - {1}"
|
||||
}
|
||||
|
||||
// ===========================
|
||||
@ -556,37 +553,7 @@
|
||||
|
||||
"!zadmin main title"
|
||||
{
|
||||
"en" "ZAdmin Menu:"
|
||||
}
|
||||
|
||||
"!zadmin main knockbackm"
|
||||
{
|
||||
"en" "Modify Knockback Multiplier"
|
||||
}
|
||||
|
||||
"!zadmin main knockback"
|
||||
{
|
||||
"en" "Modify Class Knockback"
|
||||
}
|
||||
|
||||
"!zadmin main nvgs"
|
||||
{
|
||||
"en" "Modify Nightvision Options"
|
||||
}
|
||||
|
||||
"!zadmin main infect"
|
||||
{
|
||||
"en" "Infect a Player"
|
||||
}
|
||||
|
||||
"!zadmin main spawn"
|
||||
{
|
||||
"en" "Spawn All Players"
|
||||
}
|
||||
|
||||
"!zadmin main tele"
|
||||
{
|
||||
"en" "ZTele Commands"
|
||||
"en" "ZAdmin\n Select Category:"
|
||||
}
|
||||
|
||||
"!zadmin main weapons"
|
||||
|
@ -4,7 +4,7 @@
|
||||
// * Zombie:Reloaded
|
||||
// *
|
||||
// * File: zombiereloaded.cfg
|
||||
// * Type: Core
|
||||
// * Type: Config
|
||||
// * Description: Plugin cvar configuration.
|
||||
// *
|
||||
// * ============================================================================
|
||||
|
Reference in New Issue
Block a user