View Single Post
Author Message
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-25-2009 , 09:41   [L4D] Survivor AI Trigger Fixes
Reply With Quote #1

After quite some work my newest plugin is done. This kicks in if it detects an all-Bot Survivor Team (enabling sb_all_bot_team itself) and then triggers Crescendos and Finales as they should have by themselves. This also shuts Safe Room Doors if an All Bot Team refuses to do it.

Be advised this does NOTHING if there is a single human Player in the Survivor team.


Big thanks go to mi123645 for helping me with triggering non-networkable stuff and to javalia for pointing out where Entity Names are hidden.



This also features an extensive Toolkit for finding and manipulating Entities in L4D ...


sm_findentitybyclass - find an entity by classname and starting index.
sm_findentitybyname - find an entity by name and starting index.
sm_listentities - server console dump of all valid entities
sm_findnearentities <radius> - find all Entities in a radius around you.
sm_entityinput <entity id> <input string> - sends an Input to said Entity.
sm_findentprop <property string> - returns an entity property value in yourself.


Changelog:

1.0.0 - Initial release.
1.0.1 - NM4 Elevator fixing
1.0.2 - DA5 and BH3 fixing
1.0.3 - Fix in case the Trigger Bot died
1.0.4 - removed misfiring chatstrings
1.0.5 - improved All Bot team detection accuracy
1.0.6 - added NM3 Gas Station and DT5 Finale Triggers
1.0.7 - bug fixes against error log floodings
1.0.8 - more minor fixing
1.0.9 - error log fix
1.1.0 - added fix for the Crash Course 02 stucking place
Attached Files
File Type: sp Get Plugin or Get Source (l4d_survivorai_triggerfix.sp - 11100 views - 25.4 KB)

Last edited by AtomicStryker; 11-04-2009 at 15:16.
AtomicStryker is offline