Team Fortress 2 Source Code as on 22/4/2020
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.

28 lines
658 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "dod_location.h"
  8. #include "tier0/memdbgon.h"
  9. LINK_ENTITY_TO_CLASS( dod_location, CDODLocation );
  10. void CDODLocation::Spawn( void )
  11. {
  12. BaseClass::Spawn();
  13. }
  14. bool CDODLocation::KeyValue( const char *szKeyName, const char *szValue )
  15. {
  16. if (FStrEq(szKeyName, "location_name")) //name of this location
  17. {
  18. Q_strncpy( m_szLocationName, szValue, sizeof(m_szLocationName) );
  19. }
  20. else
  21. return CBaseEntity::KeyValue( szKeyName, szValue );
  22. return true;
  23. }