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.

46 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef GRENADE_HOPWIRE_H
  7. #define GRENADE_HOPWIRE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "basegrenade_shared.h"
  12. #include "Sprite.h"
  13. extern ConVar hopwire_trap;
  14. class CGravityVortexController;
  15. class CGrenadeHopwire : public CBaseGrenade
  16. {
  17. DECLARE_CLASS( CGrenadeHopwire, CBaseGrenade );
  18. DECLARE_DATADESC();
  19. DECLARE_SERVERCLASS();
  20. public:
  21. void Spawn( void );
  22. void Precache( void );
  23. bool CreateVPhysics( void );
  24. void SetTimer( float timer );
  25. void SetVelocity( const Vector &velocity, const AngularImpulse &angVelocity );
  26. void Detonate( void );
  27. void EndThink( void ); // Last think before going away
  28. void CombatThink( void ); // Makes the main explosion go off
  29. protected:
  30. void KillStriders( void );
  31. CHandle<CGravityVortexController> m_hVortexController;
  32. };
  33. extern CBaseGrenade *HopWire_Create( const Vector &position, const QAngle &angles, const Vector &velocity, const AngularImpulse &angVelocity, CBaseEntity *pOwner, float timer );
  34. #endif // GRENADE_HOPWIRE_H