View Single Post
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-27-2019 , 12:26   [L4D & L4D2] Witch - Bots Trigger (1.2) [10-May-2020]
Reply With Quote #1

About:
  • The cvar l4d_witch_trigger_type "1": Makes bots startle the Wandering Witch when shooting her.
  • By default game only does this for Witches that are sitting.
  • This is not required for L4D1.
  • The cvar l4d_witch_trigger_type "0": Blocks bots from startling any Witch they shoot.
  • Bots can still startle the Witch by standing too near and shooting.


Thanks:

Cvars:

Saved to l4d_witch_trigger.cfg in your servers \cfg\sourcemod\ folder.

PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_witch_trigger_allow "1"

// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_witch_trigger_modes ""

// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_witch_trigger_modes_off ""

// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_witch_trigger_modes_tog "0"

// 0=Prevent bots from startling any Witches when shot. 1=Startle all Witches when bots shoot them.
l4d_witch_trigger_type "1" // Value of "0" in L4D1.

// Witch - Bots Trigger plugin version.
l4d_witch_trigger_version 


Changes:
Code:
1.2 (10-May-2020)
    - Extra checks to prevent "IsAllowedGameMode" throwing errors.

1.1 (01-Apr-2020)
    - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.

1.0 (27-Nov-2019)
    - Initial release.


Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_witch_trigger.sp - 2084 views - 9.4 KB)
__________________

Last edited by Silvers; 05-10-2020 at 07:22.
Silvers is offline