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.

43 lines
977 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: CTF Intermission.
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "tf_gamerules.h"
  8. #include "entity_intermission.h"
  9. LINK_ENTITY_TO_CLASS( point_intermission, CTFIntermission );
  10. BEGIN_DATADESC(CTFIntermission)
  11. // Keys
  12. // Inputs
  13. DEFINE_INPUTFUNC(FIELD_VOID, "Activate", InputActivate ),
  14. // Outputs
  15. END_DATADESC()
  16. //=============================================================================
  17. //
  18. // CTF Intermission functions.
  19. //
  20. //-----------------------------------------------------------------------------
  21. // Purpose:
  22. // Input : &inputdata -
  23. //-----------------------------------------------------------------------------
  24. void CTFIntermission::InputActivate( inputdata_t &inputdata )
  25. {
  26. CTFGameRules *pCTFGameRules = TFGameRules();
  27. if ( pCTFGameRules )
  28. {
  29. pCTFGameRules->GoToIntermission();
  30. }
  31. }