Quote:
Originally Posted by timtam95
[...]
|
Simple yet useful.
Also, for the time being, I'm trying to add "custom" key values for each weapon. This serves for any plugins that modifies those weapons.
For example:
PHP Code:
// ...
"weapon_grenade_launcher"
{
"max_clips" "5" /* Even if you leave this blank, the plugin will use the default game convar instead. */
"max_ammo" "10" /* Even if you leave this blank, the plugin will use the default game convar instead. */
"damage" "1000" /* Even if you leave this blank, the plugin will use the default game convar instead. */
"custom"
{
"multi-clip_grenade_launcher-l4d2" "1"
}
}
// ...
Under there, you must list all the plugins that modifies the Grenade Launcher in order to display this to the client.
PHP Code:
Weapon Stats: (Grenade Launchers)
Maximum Clip: 5
Maximum Ammunition: 10
Damage: 1000
Add-ons:
- You can have more clips with this weapon by reloading.
(Courtesy of [L4D2] Multi-Clip Grenade Launcher plugin)
1. Back