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.

34 lines
1.1 KiB

  1. //===== Copyright (c) 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //===========================================================================//
  8. #include "cbase.h"
  9. #include "ai_criteria.h"
  10. #include "ai_speech.h"
  11. #include <keyvalues.h>
  12. #include "engine/IEngineSound.h"
  13. // memdbgon must be the last include file in a .cpp file!!!
  14. #include <tier0/memdbgon.h>
  15. BEGIN_SIMPLE_DATADESC( AI_ResponseParams )
  16. DEFINE_FIELD( flags, FIELD_SHORT ),
  17. DEFINE_FIELD( odds, FIELD_SHORT ),
  18. DEFINE_FIELD( soundlevel, FIELD_CHARACTER ),
  19. DEFINE_FIELD( delay, FIELD_INTEGER ), // These are compressed down to two float16s, so treat as an INT for saverestore
  20. DEFINE_FIELD( respeakdelay, FIELD_INTEGER ), //
  21. END_DATADESC()
  22. BEGIN_SIMPLE_DATADESC( AI_Response )
  23. DEFINE_FIELD( m_Type, FIELD_CHARACTER ),
  24. DEFINE_ARRAY( m_szResponseName, FIELD_CHARACTER, AI_Response::MAX_RESPONSE_NAME ),
  25. DEFINE_ARRAY( m_szMatchingRule, FIELD_CHARACTER, AI_Response::MAX_RULE_NAME ),
  26. // DEFINE_FIELD( m_pCriteria, FIELD_??? ), // Don't need to save this probably
  27. DEFINE_EMBEDDED( m_Params ),
  28. END_DATADESC()