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.

31 lines
820 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Entity that simulates bullets that are underwater.
  4. //
  5. //=============================================================================//
  6. #ifndef WEAPON_WATERBULLET_H
  7. #define WEAPON_WATERBULLET_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #define WATER_BULLET_BUBBLES_PER_INCH 0.05f
  12. //=========================================================
  13. //=========================================================
  14. class CWaterBullet : public CBaseAnimating
  15. {
  16. DECLARE_CLASS( CWaterBullet, CBaseAnimating );
  17. public:
  18. void Precache();
  19. void Spawn( const Vector &vecOrigin, const Vector &vecDir );
  20. void Touch( CBaseEntity *pOther );
  21. void BulletThink();
  22. DECLARE_DATADESC();
  23. DECLARE_SERVERCLASS();
  24. };
  25. #endif // WEAPON_WATERBULLET_H