Thread: [L4D2]Item tips
View Single Post
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 02-19-2018 , 05:30   Re: [L4D2]Item tips
Reply With Quote #9

Quote:
Originally Posted by timtam95 View Post
[...]
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 Clip5
Maximum Ammunition
10
Damage
1000

Add
-ons:
You can have more clips with this weapon by reloading.
  (
Courtesy of [L4D2Multi-Clip Grenade Launcher plugin)

1. Back 

Last edited by cravenge; 02-19-2018 at 05:30.
cravenge is offline