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.

32 lines
748 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Provides access to cvars that are bounded in the client DLL.
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CDLL_BOUNDED_CVARS_H
  8. #define CDLL_BOUNDED_CVARS_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "convar_serverbounded.h"
  13. extern ConVar_ServerBounded *cl_predict;
  14. extern ConVar_ServerBounded *cl_interp;
  15. // Returns cl_interp_ratio / cl_updaterate.
  16. float GetClientInterpAmount();
  17. #if !defined( NO_ENTITY_PREDICTION )
  18. extern bool g_bForceCLPredictOff; // If this is set to true, then prediction is forced off. Used temporarily for kill cam.
  19. #endif
  20. #endif // CDLL_BOUNDED_CVARS_H