View Single Post
satannuts
Member
Join Date: Jan 2010
Old 02-13-2010 , 13:12   Re: [L4D1,2] Loot of Zombies 1.2
Reply With Quote #26

whoa. just noticed you updated to 1.2 - Great plugin BTW.

I've added:
Code:
    AutoExecConfig(true, "l4d2_lootx");
to the end of the public OnPluginStart() section of l4d_loot.sp before the last }.
This will auto-generate a l4d_lootx.cfg file in cfg\sourrcemod on first start with all cvars. This helps eliminate the garbage output to the console.
l4d_lootx.cfg:
Code:
// This file was auto-generated by SourceMod (v1.3.2)
// ConVars for plugin "l4d2_lootx.smx"


// Is the plugin enabled.
// -
// Default: "1"
l4d2_loot "1"

// -
// Default: "7"
l4d2_loot_adrenaline "7"

// -
// Default: "10"
l4d2_loot_autoshotgun "10"

// -
// Default: "15"
l4d2_loot_b_chance_bullet "15"

// -
// Default: "1"
l4d2_loot_b_chance_explosive "1"

// -
// Default: "16"
l4d2_loot_b_chance_health "16"

// -
// Default: "12"
l4d2_loot_b_chance_melee "12"

// -
// Default: "10"
l4d2_loot_b_chance_misc "10"

// -
// Default: "30"
l4d2_loot_b_chance_nodrop "30"

// -
// Default: "20"
l4d2_loot_b_chance_throw "20"

// -
// Default: "10"
l4d2_loot_b_chance_upgrades "10"

// -
// Default: "1"
l4d2_loot_b_drop_items "1"

// -
// Default: "10"
//l4d2_loot_baseball_bat "10"

// -
// Default: "15"
l4d2_loot_c_chance_bullet "15"

// -
// Default: "1"
l4d2_loot_c_chance_explosive "1"

// -
// Default: "16"
l4d2_loot_c_chance_health "16"

// -
// Default: "12"
l4d2_loot_c_chance_melee "12"

// -
// Default: "10"
l4d2_loot_c_chance_misc "10"

// -
// Default: "30"
l4d2_loot_c_chance_nodrop "30"

// -
// Default: "20"
l4d2_loot_c_chance_throw "20"

// -
// Default: "10"
l4d2_loot_c_chance_upgrades "10"

// -
// Default: "1"
l4d2_loot_c_drop_items "1"

// -
// Default: "10"
l4d2_loot_chainsaw "10"

// -
// Default: "10"
l4d2_loot_cricket_bat "10"

// -
// Default: "10"
l4d2_loot_crowbar "10"

// -
// Default: "4"
l4d2_loot_defibrillator "4"

// -
// Default: "10"
l4d2_loot_electric_guitar "10"

// -
// Default: "10"
l4d2_loot_fireaxe "10"

// -
// Default: "25"
l4d2_loot_fireworkcrate "25"

// -
// Default: "4"
l4d2_loot_first_aid_kit "4"

// -
// Default: "0"
l4d2_loot_from_players "0"

// -
// Default: "10"
l4d2_loot_frying_pan "10"

// -
// Default: "0"
l4d2_loot_g_chance_nodrop "0"

// -
// Default: "25"
l4d2_loot_gascan "25"

// -
// Default: "100"
l4d2_loot_grenade_launcher "100"

// -
// Default: "15"
l4d2_loot_h_chance_bullet "15"

// -
// Default: "1"
l4d2_loot_h_chance_explosive "1"

// -
// Default: "16"
l4d2_loot_h_chance_health "16"

// -
// Default: "12"
l4d2_loot_h_chance_melee "12"

// -
// Default: "10"
l4d2_loot_h_chance_misc "10"

// -
// Default: "30"
l4d2_loot_h_chance_nodrop "30"

// -
// Default: "20"
l4d2_loot_h_chance_throw "20"

// -
// Default: "10"
l4d2_loot_h_chance_upgrades "10"

// -
// Default: "1"
l4d2_loot_h_drop_items "1"

// -
// Default: "10"
l4d2_loot_hunting_rifle "10"

// -
// Default: "15"
l4d2_loot_j_chance_bullet "15"

// -
// Default: "1"
l4d2_loot_j_chance_explosive "1"

// -
// Default: "16"
l4d2_loot_j_chance_health "16"

// -
// Default: "12"
l4d2_loot_j_chance_melee "12"

// -
// Default: "10"
l4d2_loot_j_chance_misc "10"

// -
// Default: "30"
l4d2_loot_j_chance_nodrop "30"

// -
// Default: "20"
l4d2_loot_j_chance_throw "20"

// -
// Default: "10"
l4d2_loot_j_chance_upgrades "10"

// -
// Default: "1"
l4d2_loot_j_drop_items "1"

// -
// Default: "10"
l4d2_loot_katana "10"

// -
// Default: "10"
//l4d2_loot_knife "10"

// -
// Default: "10"
l4d2_loot_machete "10"

// -
// Default: "10"
l4d2_loot_molotov "10"

// -
// Default: "25"
l4d2_loot_oxygentank "25"

// -
// Default: "5"
l4d2_loot_pain_pills "5"

// -
// Default: "10"
l4d2_loot_pipe_bomb "10"

// -
// Default: "10"
l4d2_loot_pistol "10"

// -
// Default: "10"
l4d2_loot_pistol_magnum "10"

// -
// Default: "25"
l4d2_loot_propanetank "25"

// -
// Default: "10"
l4d2_loot_pumpshotgun "10"

// -
// Default: "10"
l4d2_loot_rifle "10"

// -
// Default: "10"
l4d2_loot_rifle_ak47 "10"

// -
// Default: "10"
l4d2_loot_rifle_desert "10"

// -
// Default: "10"
l4d2_loot_rifle_sg552 "10"

// -
// Default: "15"
l4d2_loot_s_chance_bullet "15"

// -
// Default: "1"
l4d2_loot_s_chance_explosive "1"

// -
// Default: "16"
l4d2_loot_s_chance_health "16"

// -
// Default: "12"
l4d2_loot_s_chance_melee "12"

// -
// Default: "10"
l4d2_loot_s_chance_misc "10"

// -
// Default: "30"
l4d2_loot_s_chance_nodrop "30"

// -
// Default: "20"
l4d2_loot_s_chance_throw "20"

// -
// Default: "10"
l4d2_loot_s_chance_upgrades "10"

// -
// Default: "1"
l4d2_loot_s_drop_items "1"

// -
// Default: "0"
l4d2_loot_scavenge_gascans "0"

// -
// Default: "10"
l4d2_loot_shotgun_chrome "10"

// -
// Default: "10"
l4d2_loot_shotgun_spas "10"

// -
// Default: "10"
l4d2_loot_smg "10"

// -
// Default: "10"
l4d2_loot_smg_mp5 "10"

// -
// Default: "10"
l4d2_loot_smg_silenced "10"

// -
// Default: "10"
l4d2_loot_sniper_awp "10"

// -
// Default: "10"
l4d2_loot_sniper_military "10"

// -
// Default: "10"
l4d2_loot_sniper_scout "10"

// -
// Default: "15"
l4d2_loot_sp_chance_bullet "15"

// -
// Default: "1"
l4d2_loot_sp_chance_explosive "1"

// -
// Default: "16"
l4d2_loot_sp_chance_health "16"

// -
// Default: "12"
l4d2_loot_sp_chance_melee "12"

// -
// Default: "10"
l4d2_loot_sp_chance_misc "10"

// -
// Default: "30"
l4d2_loot_sp_chance_nodrop "30"

// -
// Default: "20"
l4d2_loot_sp_chance_throw "20"

// -
// Default: "10"
l4d2_loot_sp_chance_upgrades "10"

// -
// Default: "1"
l4d2_loot_sp_drop_items "1"

// -
// Default: "0"
l4d2_loot_survival_defibs "0"

// -
// Default: "3"
l4d2_loot_t_chance_bullet "3"

// -
// Default: "1"
l4d2_loot_t_chance_explosive "1"

// -
// Default: "15"
l4d2_loot_t_chance_health "15"

// -
// Default: "2"
l4d2_loot_t_chance_melee "2"

// -
// Default: "1"
l4d2_loot_t_chance_misc "1"

// -
// Default: "0"
l4d2_loot_t_chance_nodrop "0"

// -
// Default: "4"
l4d2_loot_t_chance_throw "4"

// -
// Default: "6"
l4d2_loot_t_chance_upgrades "6"

// -
// Default: "1"
l4d2_loot_t_drop_items "1"

// -
// Default: "10"
l4d2_loot_tonfa "10"

// -
// Default: "50"
l4d2_loot_upgradepack_exp "50"

// -
// Default: "50"
l4d2_loot_upgradepack_inc "50"

// -
// Default: "10"
l4d2_loot_vomitjar "10"
The only problems with doing this are:
1- cvars are listed alphabetically instead of grouped like you have them.
2- It doesn't take into account the "#if... #end if" cvars. For Example, I have CSS weapons, but I don't use the baseball bat or knife, so I had to comment out those two cvars.

Maybe you could include this in the next version?
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_lootx.sp - 1148 views - 60.0 KB)
satannuts is offline