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.

50 lines
1.0 KiB

  1. //========= Copyright � 1996-2012, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Client side interactive, shootable chicken
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef C_CHICKEN_H
  8. #define C_CHICKEN_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "c_props.h"
  13. #define CChicken C_CChicken
  14. class C_CChicken : public C_DynamicProp
  15. {
  16. public:
  17. DECLARE_CLASS( C_CChicken, C_DynamicProp );
  18. DECLARE_CLIENTCLASS();
  19. C_CChicken();
  20. virtual ~C_CChicken();
  21. private:
  22. C_CChicken( const C_CChicken& ); // not defined, not accessible
  23. public:
  24. void SetClientSideHolidayHatAddon( bool bEnable );
  25. public:
  26. virtual void Spawn();
  27. static void RecvProxy_Jumped( const CRecvProxyData *pData, void *pStruct, void *pOut );
  28. virtual void ClientThink( );
  29. private:
  30. CHandle<C_BaseAnimating> m_hHolidayHatAddon;
  31. Activity m_lastActivity;
  32. CNetworkVar( bool, m_jumpedThisFrame );
  33. CNetworkVar( EHANDLE, m_leader ); // who we are following, or NULL
  34. };
  35. #endif // C_CHICKEN_H