Related Plugins:
About:- Thanks to "Iizuka07" for the idea and request in L4D2.
- Thanks to "tRololo312312" for the idea and request in L4D1.
- Thanks to "epzminion" for fixing the Linux version.
- Default game behaviour bots cannot trigger car alarms.
- This plugin enables bots to trigger the alarm when shooting or standing on a car.
CVars:
Saved to
l4d2_car_alarm_bots.cfg in your servers
\cfg\sourcemod\ folder.
PHP Code:
l4d2_car_alarm_bots_allow "1" // 0=Plugin off, 1=Plugin on.
l4d2_car_alarm_bots_modes "" // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d2_car_alarm_bots_modes_off "" // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d2_car_alarm_bots_modes_tog "0" // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d2_car_alarm_bots_type "3" // 1=Trigger alarm when bots shoot the car. 2=Trigger alarm when bots stand on the car. 3=Both.
l4d2_car_alarm_bots_infected "3" // Allow SI to trigger the car alarm. 0=OFF. 1=Enable for SI human players. 2=Enable for SI bots. 3=Both.
l4d2_car_alarm_bots_survivor_distance "500" // Max distance that a survivor can be from the SI to trigger the alarm. 0=No check.
l4d2_car_alarm_bots_version // Car Alarm - Bots Trigger plugin version.
Changes:
Code:
1.9a (26-Jun-2021)
- L4D2: Linux only. Compatibility update for "2.2.1.3" update.
- GameData .txt file updated.
1.9 (15-Feb-2021)
- Added team Infected support. Thanks to "Mart" for the feature update.
- Added new cvars "l4d2_car_alarm_bots_infected" and "l4d2_car_alarm_bots_survivor_distance" for this feature.
1.8 (30-Sep-2020)
- Fixed compile errors on SM 1.11.
1.7 (10-May-2020)
- Extra checks to prevent "IsAllowedGameMode" throwing errors.
- Removed unused test command.
- Various changes to tidy up code.
1.6 (01-Apr-2020)
- Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
1.5 (25-Mar-2020)
- Fixed not working on Linux. Thanks to "epzminion" for reporting the correct offset to patch.
- GameData and plugin updated for Linux fix.
1.4 (29-Feb-2020)
- Fixed accidentally enabling the plugin when cvars change. Thanks to "TommyCD1" for reporting.
1.3 (25-Jan-2020)
- Fixed AI special infected from triggering alarms. Thanks to "jamalsheref2" for reporting.
1.2 (05-Nov-2019)
- Fixed hooking entities when the plugin should be turned off.
1.1 (01-Nov-2019)
- Renamed plugin and cvar config and restricted to L4D2 only since it's not required in L4D1.
1.0 (01-Nov-2019)
- Initial release.
Installation- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
- Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.