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.

78 lines
2.5 KiB

  1. //========= Copyright � 1996-2008, Valve Corporation, All rights reserved. ====
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef LOGIC_PLAYERPROXY_H
  7. #define LOGIC_PLAYERPROXY_H
  8. #pragma once
  9. //-----------------------------------------------------------------------------
  10. // Purpose: Used to relay outputs/inputs from the player to the world and vice versa
  11. //-----------------------------------------------------------------------------
  12. class CLogicPlayerProxy : public CLogicalEntity
  13. {
  14. DECLARE_CLASS( CLogicPlayerProxy, CLogicalEntity );
  15. DECLARE_DATADESC();
  16. public:
  17. // FIXME: Subclass
  18. #ifdef PORTAL2
  19. COutputEvent m_OnStartSlowingTime;
  20. COutputEvent m_OnStopSlowingTime;
  21. COutputEvent m_OnCoopPing;
  22. COutputEvent m_OnPrimaryPortalPlaced;
  23. COutputEvent m_OnSecondaryPortalPlaced;
  24. #endif // PORTAL2
  25. #if defined( HL2_DLL )
  26. COutputEvent m_OnFlashlightOn;
  27. COutputEvent m_OnFlashlightOff;
  28. COutputEvent m_PlayerMissedAR2AltFire; // Player fired a combine ball which did not dissolve any enemies.
  29. #endif // HL2_DLL
  30. COutputEvent m_PlayerHasAmmo;
  31. COutputEvent m_PlayerHasNoAmmo;
  32. COutputEvent m_PlayerDied;
  33. COutputEvent m_OnDuck;
  34. COutputEvent m_OnUnDuck;
  35. COutputEvent m_OnJump;
  36. COutputInt m_RequestedPlayerHealth;
  37. #if defined HL2_EPISODIC
  38. void InputSetFlashlightSlowDrain( inputdata_t &inputdata );
  39. void InputSetFlashlightNormalDrain( inputdata_t &inputdata );
  40. void InputLowerWeapon( inputdata_t &inputdata );
  41. void InputSetLocatorTargetEntity( inputdata_t &inputdata );
  42. #endif // HL2_EPISODIC
  43. void InputRequestPlayerHealth( inputdata_t &inputdata );
  44. void InputSetPlayerHealth( inputdata_t &inputdata );
  45. void InputRequestAmmoState( inputdata_t &inputdata );
  46. void InputEnableCappedPhysicsDamage( inputdata_t &inputdata );
  47. void InputDisableCappedPhysicsDamage( inputdata_t &inputdata );
  48. #if defined ( PORTAL2 )
  49. void InputAddPotatosToPortalgun( inputdata_t &inputdata );
  50. void InputRemovePotatosFromPortalgun( inputdata_t &inputdata );
  51. void InputSetDropEnabled( inputdata_t &inputdata );
  52. void InputForceVMGrabController( inputdata_t &inputdata );
  53. void InputForcePhysicsGrabController( inputdata_t &inputdata );
  54. void InputResetGrabControllerBehavior( inputdata_t &inputdata );
  55. void InputPaintPlayerWithPortalPaint( inputdata_t &inputdata );
  56. void InputSetMotionBlurAmount( inputdata_t &inputdata );
  57. #endif
  58. void Activate( void );
  59. bool PassesDamageFilter( const CTakeDamageInfo &info );
  60. EHANDLE m_hPlayer;
  61. };
  62. #endif // LOGIC_PLAYERPROXY_H