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.

66 lines
2.5 KiB

  1. //===== Copyright � 1996-2008, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. //===========================================================================//
  6. #ifndef DEMO_POLISH_H
  7. #define DEMO_POLISH_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //------------------------------------------------------------------------------------------------------------------------
  12. #include "demo_polish/demo_polish_recorder.h"
  13. #include "demo_polish/demo_polish_controller.h"
  14. //------------------------------------------------------------------------------------------------------------------------
  15. bool IsDemoPolishEnabled();
  16. bool IsDemoPolishRecording();
  17. bool IsDemoPolishPlaying();
  18. bool DemoPolish_ShouldReplaceRoot( int iEntIndex );
  19. void DemoPolish_Think();
  20. CDemoPolishRecorder& DemoPolish_GetRecorder();
  21. CDemoPolishController& DemoPolish_GetController();
  22. //------------------------------------------------------------------------------------------------------------------------
  23. extern ConVar demo_polish_auto_polish;
  24. extern ConVar demo_polish_bone_test_index;
  25. extern ConVar demo_polish_root_adjustments_enabled;
  26. extern ConVar demo_polish_global_adjustments_enabled;
  27. extern ConVar demo_polish_local_adjustments_enabled;
  28. extern ConVar demo_polish_bone_overrides_enabled;
  29. extern ConVar demo_polish_leaning_enabled;
  30. extern ConVar demo_polish_leaning_strafe_kneebend_enabled;
  31. extern ConVar demo_polish_ik_enabled;
  32. extern ConVar demo_polish_draw_path_enabled;
  33. extern ConVar demo_polish_step_in_place_enabled;
  34. extern ConVar demo_polish_pelvis_noise_enabled;
  35. extern ConVar demo_polish_terrain_adjust_enabled;
  36. extern ConVar demo_polish_foot_plants_enabled;
  37. extern ConVar demo_polish_draw_skeleton;
  38. extern ConVar demo_polish_draw_prev_skeleton_frames;
  39. extern ConVar demo_polish_draw_next_skeleton_frames;
  40. extern ConVar demo_polish_path_frames; // # of path frames to draw before/after current frame
  41. //------------------------------------------------------------------------------------------------------------------------
  42. //
  43. // One day this could go in a math library - this is very similar to FLerp() except it does a bounds check and the params
  44. // are in a different order.
  45. //
  46. inline float LerpScale( float flInLo, float flInHi, float flOutLo, float flOutHi, float flX )
  47. {
  48. float const tt = MIN( 1, MAX( 0, (flX - flInLo) / (flInHi - flInLo) ) );
  49. return Lerp(tt, flOutLo, flOutHi);
  50. }
  51. //------------------------------------------------------------------------------------------------------------------------
  52. #endif // DEMO_POLISH_H