View Single Post
Author Message
sereky
Member
Join Date: Aug 2011
Old 06-29-2012 , 15:03   [L4D & L4D2] Survivor Bot Sniper Rifle AI Fix
Reply With Quote #1

About:

In Left 4 dead (2), if the survivor bots have sniper rifle and if the infecteds are close to them, they always fight with their pistols instead of their sniper rifle. These bots are useless because they often get incapacitated and they kill the least amount of infecteds.

This plugin prevents bots with sniper from switch to their pistols except if they don't have ammo or they are incapacitated. (It will not block switching to magnum or melee weapon.)

Changelog:

Code:
1.1 (2012-Jul-5)
- Added "IsClientConnected" check.

1.0 (2012-Jun-29)
- Initial release.
Installation

Download the l4d_bot_sniper_rifle_aifix.smx file and put into your \addons\sourcemod\plugins\ folder.

Important:

This plugin requires the SDKHooks extension. Therefore do not click "Get Plugin" because it will not work. You can download the compiled .smx file.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_bot_sniper_rifle_aifix.sp - 2541 views - 2.4 KB)
File Type: smx l4d_bot_sniper_rifle_aifix.smx (3.4 KB, 6942 views)

Last edited by sereky; 08-08-2012 at 14:49.
sereky is offline