Left 4 Dead 2

Left 4 Dead 2

评价数不足
Forbidden Weapons (Vscript)
   
奖励
收藏
已收藏
取消收藏
Game Content: Weapons, Scripts
Game Modes: Single Player, Co-op
文件大小
发表于
6.207 KB
1 月 28 日 下午 10:55
1 项改动说明 ( 查看 )

订阅以下载
Forbidden Weapons (Vscript)

在 kurochama 的 1 个合集中
Useful "Side-Dish" Mods (Especially for Bots)
64 件物品
描述
"Have you ever thought about how annoying it is when bots pick some worse guns & then ruin the game because they can't shoot properly, like when they pick awp or scout?"

"Have you ever thought about what if you can use a brute force to remove certain guns the bots pick immediately so they have no choice but to pick other guns instead?"

Then, this mod is the answer. This mod allows you to restrict/ forbid certain weapons so once they're picked, they'll vanish into thin air instantly. As it's easier to see how it works via animated previews, I only put animated previews instead:





There are 2 cfg files available in "forbidden weapons cfg" folder:
  1. "custom settings.txt": This contains a feature to control on which type of survivor the forbidden weapons will be applied. The feature available inside:
    • forbidden_user: On which type of survivor the "Forbidden Weapons" will be applied (bots only/ players only/ all).

  2. "forbidden weapons.txt": This contains the list of weapons you want to restrict/ forbid.

Simple mechanisms of how this mod works:
  • 2 cfg files mentioned above will be generated when using this mod for the first time".

  • the "forbidden weapons.txt" file has the list of weapons with the format like this:
    weapon_sniper_awp
    weapon_sniper_scout
    weapon_smg_mp5

  • The format on the "forbidden weapons.txt" cfg file must be correct (just like the examples above). Otherwise, it won't work. Formats like this won't work:
    sniper_awp
    weapon_smg_mp5_spawn
    sniper_scout_spawn
    weapon_sniper_awp = 1

  • the "forbidden weapons.txt" file works immediately soon after the changes are saved.

  • When the format is correct & it works, the moment the survivor picks any weapons listed on the list of "forbidden weapons.txt" file, the weapons will vanish immediately from hands. Survivor can keep picking the weapons from the supplies, but the weapons on the supplies will vanish too after being picked several times.

  • All items with "weapon_" can be listed on the "forbidden weapons.txt". Even you can list medkit, pills, throwables etc too.


Q: "Will this conflict with mods that make bots avoid certain weapons?"
A: "No, it won't. The mechanisms are already different. The mods that make bots avoid items only make bots avoid those items, while this mod makes the items disappear when picked. So to put it simply, this mod can become 2nd prevention system to prevent bots from picking those items in case if the mods to avoid items fail to work."


So, now you can say goodbye to bots picking awp & scout snipers, as long as you list those sniper on the cfg file.

NOTES:
  • A video preview will be added later.
  • For now, you can't include melee on the list of "forbidden weapons.txt" file. It won't be bugged, but probably it simply won't work as melee is checked in different ways from other weapons/ items.
2 条留言
kurochama  [作者] 1 月 30 日 上午 11:22 
@infinitig35 , I think that's one of L4D2 mechanisms, like, special infected will target players more often than bots even when bots are closer to them. But I'm not sure about tank & common infected, as tank usually targets the attackers closest to him & survivor who is using minigun. Normally there's "BOT_CMD_ATTACK" bot command that can order common infected to attack certain target including survivor, & it can be set to only target survivor bots, but I'm not sure if this command will also work on special infected & tank.
Unsants 1 月 29 日 上午 8:08 
:steamthumbsup: