Quote:
Originally Posted by WhataMack
ok, I guess this is my last request for a little bit of assistance for removing tier1 and tier2 shotguns throughout all LD42 campaigns, without having to do individual configs for each map.
|
Quote:
Originally Posted by midnight9
With l4d2_weapon rules you can replace any weapon X with another weapon.
|
Thanks for that, although I've come up with a global_filters.cfg set of rules that replaces all possible shotgun spawns with other weapons, instead of trying to remove them. This is actually fine for what I wanted to do, which was to prevent the bots from grabbing the worthless tier 1 shotguns, and the (almost) worthless tier 2 shotguns, when there are much more effective weapons they can use instead. The biggest reason I wanted to do this is because the bots are constantly switching between trying to reload shotguns and using their pistols...a pretty poor combination imo.
Here's the global_filters.cfg file. I've tested it pretty extensively with good results:
Code:
; Replace each shotgun model with SMG's, M16 or AK47
; ----------
modify:
{
match:
{
"classname" "weapon_pumpshotgun_spawn"
}
replace:
{
"classname" "weapon_smg_spawn"
}
}
modify:
{
match:
{
"classname" "weapon_shotgun_chrome_spawn"
}
replace:
{
"classname" "weapon_smg_silenced_spawn"
}
}
modify:
{
match:
{
"classname" "weapon_autoshotgun_spawn"
}
replace:
{
"classname" "weapon_rifle_spawn"
}
}
modify:
{
match:
{
"classname" "weapon_shotgun_spas_spawn"
}
replace:
{
"classname" "weapon_rifle_ak47_spawn"
}
}
; ==========
; Replace the "tier 1 shotguns", "tier 2 shotguns" and "any shotguns" groups.
; ----------
modify:
{
match:
{
"weapon_selection" "tier1_shotgun"
}
replace:
{
"weapon_selection" "any_smg"
}
}
modify:
{
match:
{
"weapon_selection" "tier2_shotgun"
}
replace:
{
"weapon_selection" "any_rifle"
}
}
modify:
{
match:
{
"weapon_selection" "any_shotgun"
}
replace:
{
"weapon_selection" "any_rifle"
}
}
; ==========
; Replace the "any tier 1 weapon" group with the "any smg" group.
; ----------
modify:
{
match:
{
"weapon_selection" "tier1_any"
}
replace:
{
"weapon_selection" "any_smg"
}
}
; Replace the "any tier 2 weapon" group with the "any rifle" group.
modify:
{
match:
{
"weapon_selection" "tier2_any"
}
replace:
{
"weapon_selection" "any_rifle"
}
}
; ==========