Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.6 KiB

  1. //========= Copyright � 1996-2007, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: A single behavior that handles running all of the NPC's add ons
  4. //
  5. //=====================================================================================//
  6. /*
  7. #include "cbase.h"
  8. #include "ai_behavior_addonhost.h"
  9. #include "ai_addon.h"
  10. #include "saverestore_utlvector.h"
  11. BEGIN_DATADESC(CAI_AddOnHostBehavior)
  12. DEFINE_UTLVECTOR(m_AddOns, FIELD_EHANDLE),
  13. END_DATADESC()
  14. //---------------------------------------------------------
  15. //---------------------------------------------------------
  16. CAI_AddOnHostBehavior::CAI_AddOnHostBehavior()
  17. {
  18. }
  19. //---------------------------------------------------------
  20. //---------------------------------------------------------
  21. void CAI_AddOnHostBehavior::GatherConditions()
  22. {
  23. BaseClass::GatherConditions();
  24. GatherConditionsCentral();
  25. }
  26. //---------------------------------------------------------
  27. //---------------------------------------------------------
  28. void CAI_AddOnHostBehavior::GatherConditionsNotActive()
  29. {
  30. BaseClass::GatherConditionsNotActive();
  31. GatherConditionsCentral();
  32. }
  33. //---------------------------------------------------------
  34. //---------------------------------------------------------
  35. void CAI_AddOnHostBehavior::GatherConditionsCentral()
  36. {
  37. // blah blah
  38. }
  39. //---------------------------------------------------------
  40. //---------------------------------------------------------
  41. void CAI_AddOnHostBehavior::RegisterAddOn( CAI_AddOn *pAddOn )
  42. {
  43. Assert( pAddOn != NULL );
  44. Assert( m_AddOns.Find(pAddOn) == -1 );
  45. m_AddOns.AddToTail( pAddOn );
  46. }
  47. */