Left 4 Dead 2

Left 4 Dead 2

Left 4 Bots 2
Settings for bot preferences
I went through and sorted out some of the stuff regarding bot preferences and things of that nature, and tried to keep in mind their histories (Bill would likely use a machete because of familiarity through hacking and slashing through foliage in vietnam), personalities (Ellis would likely prefer weapons with louder sounds to them because he'd think that means they're more powerful), physical stature (Francis is a huge dude so heavy weapons work fine with him, but an M60 is probably a little too big for Zoey), weapons they use in promotional material or anything like that (Coach with a chainsaw, Ellis with a grenade launcher), etc.
Obviously it's not perfect but I thought it'd be pretty neat, plus it includes the riotshield for people who have mods that re-enable that.

Note, I didn't really know what to do with the pistols as I have a mod that adds them to a separate slot, basically making the bots completely ignore them as an unintended side effect, but if you want bots to go through with their melee preferences you can just move the pistols to the end of the secondary slot.

Bill
rifle,rifle_m60,sniper_awp,rifle_sg552,sniper_military,rifle_desert,grenade_launcher,rifle_ak47,sniper_scout,autoshotgun,shotgun_spas,smg,smg_mp5,smg_silenced,pumpshotgun,shotgun_chrome
pistol_magnum,pistol,machete,knife,fireaxe,crowbar,baseball_bat,tonfa,katana,chainsaw,frying_pan,riotshield,golfclub,cricket_bat,electric_guitar,pitchfork,shovel
molotov,pipe_bomb,vomitjar
first_aid_kit,upgradepack_incendiary,upgradepack_explosive,defibrillator
pain_pills,adrenaline

Coach
shotgun_spas,autoshotgun,rifle_m60,rifle_desert,rifle_ak47,grenade_launcher,sniper_scout,rifle_sg552,sniper_military,rifle,hunting_rifle,sniper_awp,shotgun_chrome,pumpshotgun,smg_silenced,smg_mp5,smg
pistol,pistol_magnum,chainsaw,baseball_bat,cricket_bat,fireaxe,golfclub,machete,katana,pitchfork,riotshield,frying_pan,electric_guitar,shovel,knife
vomitjar,molotov,pipe_bomb
first_aid_kit,upgradepack_explosive,defibrillator,upgradepack_incendiary
pain_pills,adrenaline

Ellis
grenade_launcher,sniper_military,sniper_awp,sniper_scout,hunting_rifle,rifle_desert,autoshotgun,rifle_sg552,shotgun_spas,rifle_ak47,rifle_m60,rifle,smg_mp5,pumpshotgun,smg,shotgun_chrome,smg_silenced
pistol,pistol_magnum,electric_guitar,baseball_bat,katana,chainsaw,knife,shovel,frying_pan,crowbar,pitchfork,fireaxe,golfclub,riotshield,tonfa,cricket_bat
pipe_bomb,vomitjar,molotov
defibrillator,first_aid_kit,upgradepack_incendiary,upgradepack_explosive
adrenaline,pain_pills

Francis
autoshotgun,shotgun_spas,sniper_awp,hunting_rifle,sniper_military,sniper_scout,grenade_launcher,rifle_m60,rifle_sg552,rifle,rifle_desert,rifle_ak47,pumpshotgun,shotgun_chrome,smg_silenced,smg,smg_mp5,
pistol_magnum,pistol,riotshield,tonfa,baseball_bat,crowbar,shovel,frying_pan,pitchfork,knife,chainsaw,machete,katana,electric_guitar,cricket_bat,golfclub,fireaxe
vomitjar,pipe_bomb,molotov
upgradepack_explosive,upgradepack_incendiary,first_aid_kit,defibrillator
adrenaline,pain_pills

Louis
rifle_m60,rifle_sg552,rifle,rifle_desert,rifle_ak47,sniper_military,sniper_awp,shotgun_spas,hunting_rifle,grenade_launcher,autoshotgun,sniper_scout,smg,smg_mp5,shotgun_chrome,smg_silenced,pumpshotgun
pistol,pistol_magnum,katana,cricket_bat,crowbar,golfclub,knife,chainsaw,fireaxe,baseball_bat,tonfa,riotshield,pitchfork,electric_guitar,frying_pan,shovel,machete
pipe_bomb,vomitjar,molotov
defibrillator,upgradepack_incendiary,first_aid_kit,upgradepack_explosive
pain_pills,adrenaline

Nick
rifle_ak47,rifle_desert,rifle_sg552,rifle_m60,rifle,sniper_military,sniper_awp,sniper_scout,hunting_rifle,grenade_launcher,shotgun_spas,autoshotgun,smg_silenced,smg_mp5,smg,shotgun_chrome,pumpshotgun
pistol_magnum,pistol,fireaxe,frying_pan,baseball_bat,machete,golfclub,cricket_bat,crowbar,shovel,electric_guitar,riotshield,katana,pitchfork,knife,tonfa,chainsaw,
molotov,pipe_bomb,vomitjar
upgradepack_explosive,first_aid_kit,defibrillator,upgradepack_incendiary
adrenaline,pain_pills

Rochelle
rifle_desert,rifle_ak47,shotgun_spas,rifle_sg552,sniper_military,rifle,sniper_awp,hunting_rifle,autoshotgun,sniper_scout,rifle_m60,grenade_launcher,smg_mp5,pumpshotgun,smg_silenced,smg,shotgun_chrome
pistol_magnum,pistol,fireaxe,machete,knife,golfclub,cricket_bat,chainsaw,shovel,riotshield,electric_guitar,crowbar,katana,baseball_bat,pitchfork,tonfa,frying_pan
molotov,vomitjar,pipe_bomb
upgradepack_incendiary,defibrillator,upgradepack_explosive,first_aid_kit
pain_pills,adrenaline

Zoey
hunting_rifle,sniper_awp,sniper_scout,sniper_military,autoshotgun,shotgun_spas,rifle_ak47,grenade_launcher,rifle_sg552,rifle,rifle_desert,rifle_m60,pumpshotgun,smg_silenced,shotgun_chrome,smg_mp5,smg
pistol,pistol_magnum,tonfa,katana,fireaxe,shovel,frying_pan,knife,crowbar,golfclub,chainsaw,baseball_bat,machete,cricket_bat,electric_guitar,riotshield,pitchfork
pipe_bomb,molotov,vomitjar
first_aid_kit,defibrillator,upgradepack_incendiary,upgradepack_explosive
pain_pills,adrenaline

Feel free to post your custom setups regarding the survivors' weapon preferences!
Last edited by LittleBigSmoak; 19 Aug, 2023 @ 8:46am
< >
Showing 1-10 of 10 comments
smilzo  [developer] 19 Aug, 2023 @ 10:54am 
Looks nice. All i did for the default fles was to use my personal preference and add minor variations and at least one character per team to prefer the shotguns but probably for the bots it doesn't really matter what they use, since they are basically aimbots.
As for your addon, if the bots don't pick up the pistols you can try adding them to the itemstoavoid.txt file (it's reversed logic when items_not_to_avoid setting 1) so the vanilla AI can still pick them up. Another option is to set pickups_wep_always to 0 but that will affect all the weapons.
LittleBigSmoak 19 Aug, 2023 @ 11:04am 
Originally posted by smilzo:
Looks nice. All i did for the default fles was to use my personal preference and add minor variations and at least one character per team to prefer the shotguns but probably for the bots it doesn't really matter what they use, since they are basically aimbots.
As for your addon, if the bots don't pick up the pistols you can try adding them to the itemstoavoid.txt file (it's reversed logic when items_not_to_avoid setting 1) so the vanilla AI can still pick them up. Another option is to set pickups_wep_always to 0 but that will affect all the weapons.

I don't quite understand, so itemstoavoid with items_not_to_avoid allows them to pick it up? or not? Since they do pick it up, they just keep trying to pick the same thing up.

as for pickups_wep_always, I don't quite understand what disabling that does, does it prevent them from ever picking the item up? or does it just tell them to move on after a certain point?

Since I do want them to pick the stuff up, it's just that they keep lingering and trying to pick up the same item again and again until I teleport them away from it.
smilzo  [developer] 19 Aug, 2023 @ 11:14am 
Originally posted by LittleBigSmoak:
Originally posted by smilzo:
Looks nice. All i did for the default fles was to use my personal preference and add minor variations and at least one character per team to prefer the shotguns but probably for the bots it doesn't really matter what they use, since they are basically aimbots.
As for your addon, if the bots don't pick up the pistols you can try adding them to the itemstoavoid.txt file (it's reversed logic when items_not_to_avoid setting 1) so the vanilla AI can still pick them up. Another option is to set pickups_wep_always to 0 but that will affect all the weapons.

I don't quite understand, so itemstoavoid with items_not_to_avoid allows them to pick it up? or not? Since they do pick it up, they just keep trying to pick the same thing up.

as for pickups_wep_always, I don't quite understand what disabling that does, does it prevent them from ever picking the item up? or does it just tell them to move on after a certain point?

Since I do want them to pick the stuff up, it's just that they keep lingering and trying to pick up the same item again and again until I teleport them away from it.
items_not_to_avoid = 1 means that the addon tells the vanilla AI to avoid any weapon except the ones in the itemstoavoid.txt file, so if you add the pistols there the vanilla AI should be allowed to pick them up.
pickups_wep_always is just to tell the addon to pick up weapons always or only while executing an order. So that alone would probably not change much, you still need to add the pistols to the itemstoavoid.txt file.

EDIT: And probably you also need to remove the pistols from the preference files. I'm not sure about this one.
Last edited by smilzo; 19 Aug, 2023 @ 11:16am
smilzo  [developer] 19 Aug, 2023 @ 12:25pm 
I confirm you can solve by adding weapon_pistol and weapon_pistol_magnum to itemstoavoid.txt and remove them from all the preference files. Leave items_not_to_avoid and pickups_wep_always to their default values.
Billy
rifle,rifle_ak47,rifle_m60,sniper_awp,rifle_sg552,sniper_military,rifle_desert,grenade_launcher,sniper_scout,autoshotgun,shotgun_spas,smg,smg_mp5,smg_silenced,pumpshotgun,shotgun_chrome
pistol_magnum,machete,knife,riotshield,fireaxe,crowbar,baseball_bat,tonfa,katana,chainsaw,frying_pan,golfclub,cricket_bat,electric_guitar,pistol,pitchfork,shovel
molotov,pipe_bomb,vomitjar
first_aid_kit,upgradepack_incendiary,upgradepack_explosive,defibrillator
pain_pills,adrenaline

Coach
shotgun_spas,autoshotgun,rifle_m60,rifle_ak47,grenade_launcher,rifle_sg552,rifle_desert,sniper_military,rifle,hunting_rifle,sniper_awp,shotgun_chrome,pumpshotgun,smg_silenced,smg_mp5,smg
chainsaw,baseball_bat,fireaxe,katana,cricket_bat,golfclub,machete,pistol_magnum,pitchfork,riotshield,frying_pan,electric_guitar,shovel,knife,pistol
vomitjar,molotov,pipe_bomb
first_aid_kit,upgradepack_explosive,defibrillator,upgradepack_incendiary
pain_pills,adrenaline

Frank
shotgun_spas,autoshotgun,rifle_ak47,rifle_m60,sniper_military,rifle_sg552,sniper_awp,grenade_launcher,rifle,rifle_desert,shotgun_chrome,hunting_rifle,pumpshotgun,smg_silenced,smg,smg_mp5,sniper_scout,
riotshield,tonfa,baseball_bat,machete,katana,crowbar,electric_guitar,cricket_bat,golfclub,fireaxe,pistol_magnum,chainsaw,shovel,pitchfork,knife,frying_pan,pistol
vomitjar,pipe_bomb,molotov
upgradepack_explosive,upgradepack_incendiary,first_aid_kit,defibrillator
adrenaline,pain_pills

Ellis
rifle_ak47,grenade_launcher,sniper_military,sniper_awp,hunting_rifle,rifle_desert,autoshotgun,rifle_sg552,shotgun_spas,rifle_ak47,rifle_m60,rifle,smg_mp5,smg,shotgun_chrome,smg_silence,dsniper_scout,pumpshotgun
electric_guitar,baseball_bat,katana,chainsaw,fireaxe,pistol_magnum,shovel,knife,frying_pan,crowbar,pitchfork,golfclub,riotshield,tonfa,cricket_bat,pistol
vomitjar,pipe_bomb,molotov
upgradepack_incendiary,upgradepack_explosive,first_aid_kit,defibrillator
adrenaline,pain_pills

Manager
rifle_m60,rifle_ak47,rifle_sg552,rifle,rifle_desert,sniper_military,sniper_awp,shotgun_spas,smg_silenced,smg,hunting_rifle,grenade_launcher,autoshotgun,sniper_scout,smg_mp5,shotgun_chrome,pumpshotgun
katana,baseball_bat,machete,pistol_magnum,fireaxe,cricket_bat,crowbar,golfclub,knife,chainsaw,tonfa,riotshield,electric_guitar,frying_pan,pistol,shovel,pitchfork
pipe_bomb,vomitjar,molotov
first_aid_kit,defibrillator,upgradepack_explosive,upgradepack_incendiary
pain_pills,adrenaline

Nickky
rifle_ak47,rifle_sg552,rifle_desert,rifle,rifle_m60,shotgun_spas,autoshotgun,sniper_military,hunting_rifle,sniper_awp,smg_mp5,smg_silenced,grenade_launcher,shotgun_chrome,smg,sniper_scout,pumpshotgun
machete,golfclub,katana,fireaxe,crowbar,cricket_bat,baseball_bat,tonfa,shovel,electric_guitar,knife,frying_pan,pitchfork,pistol_magnum,pistol,chainsaw
molotov,pipe_bomb,vomitjar
first_aid_kit,defibrillator,upgradepack_explosive,upgradepack_incendiary

Rochelle
rifle_ak47,rifle_sg552,rifle_desert,rifle,shotgun_spas,autoshotgun,sniper_military,sniper_awp,hunting_rifle,rifle_m60,grenade_launcher,sniper_scout,smg_mp5,smg_silenced,smg,shotgun_chrome,pumpshotgun
pistol_magnum,machete,golfclub,katana,fireaxe,crowbar,knife,cricket_bat,baseball_bat,tonfa,shovel,electric_guitar,frying_pan,pitchfork,chainsaw,pistol
vomitjar,molotov,pipe_bomb
first_aid_kit,defibrillator,upgradepack_explosive,upgradepack_incendiary
pain_pills,adrenaline

Sexy brunette
sniper_military,hunting_rifle,sniper_awp,rifle_ak47,autoshotgun,rifle_sg552,shotgun_spas,rifle,rifle_desert,rifle_m60,smg_mp5,grenade_launcher,sniper_scout,smg,pumpshotgun,smg_silenced,shotgun_chrome
pistol_magnum,katana,pistol,tonfa,frying_pan,machete,knife,fireaxe,crowbar,golfclub,baseball_bat,shovel,cricket_bat,electric_guitar,chainsaw,riotshield,pitchfork
vomitjar,pipe_bomb,molotov
first_aid_kit,defibrillator,upgradepack_incendiary,upgradepack_explosive
pain_pills,adrenaline

___________________________________________________________________________

I changed the balance between weapons and items a bit,
lowered the pistols as well
___________________________________________________________________________
ChapCanai 20 Aug, 2023 @ 1:28pm 
This is based on a weapons tier list made by others if you prefer the bots to use best weapons only

rifle_ak47,sniper_military,shotgun_spas,autoshotgun,hunting_rifle,shotgun_chrome,rifle_sg552,grenade_launcher,rifle_m60,rifle_desert,pumpshotgun,smg_silenced,rifle,smg,smg_mp5,sniper_scout,sniper_awp
machete,tonfa,riotshield,knife,katana,golfclub,pistol_magnum,chainsaw,baseball_bat,cricket_bat,pitchfork,fireaxe,crowbar,electric_guitar,frying_pan,shovel,pistol

edit: melee weapons ordered from fastest to slowest swing speed (because bots cannot cut tongue... yet?)
Last edited by ChapCanai; 3 Sep, 2023 @ 3:25am
smilzo  [developer] 20 Aug, 2023 @ 11:04pm 
Originally posted by ChapCanai:
This is based on a weapons tier list made by others if you prefer the bots to use best weapons only

rifle_ak47,sniper_military,shotgun_spas,autoshotgun,hunting_rifle,shotgun_chrome,rifle_sg552,grenade_launcher,rifle_m60,rifle_desert,pumpshotgun,smg_silenced,rifle,smg,smg_mp5,sniper_scout,sniper_awp
machete,fireaxe,katana,golfclub,tonfa,pistol_magnum,crowbar,chainsaw,electric_guitar,frying_pan,baseball_bat,cricket_bat,knife,shovel,pistol,pitchfork
Cool. I see we all agree on the ak47 and machete :D
ChapCanai 21 Aug, 2023 @ 1:11am 
It's great to see the bots rush all at once to the nearest ak
CaptPatrick01 2 Sep, 2023 @ 8:14pm 
...And then promptly burn through all their ammo because they cannot manage its recoil properly, leaving you (the one who could best use the AKs strengths) without an AK, and while simultaneously leaving you without a bot who can crown later.
Last edited by CaptPatrick01; 2 Sep, 2023 @ 8:16pm
ChapCanai 3 Sep, 2023 @ 2:58am 
Damn so I guess all bots should use hunting rifle? Also, there's the team_min_shotguns setting for witch

but in the end, weapon preference doesn't really work properly yet anyways
Last edited by ChapCanai; 3 Sep, 2023 @ 3:03am
< >
Showing 1-10 of 10 comments
Per page: 1530 50