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.

44 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #include "cbase.h"
  9. #include "antlion_dust.h"
  10. // memdbgon must be the last include file in a .cpp file!!!
  11. #include "tier0/memdbgon.h"
  12. IMPLEMENT_SERVERCLASS_ST( CTEAntlionDust, DT_TEAntlionDust )
  13. SendPropVector( SENDINFO( m_vecOrigin ) ),
  14. SendPropVector( SENDINFO( m_vecAngles ) ),
  15. SendPropBool( SENDINFO( m_bBlockedSpawner ) ),
  16. END_SEND_TABLE()
  17. CTEAntlionDust::CTEAntlionDust( const char *name ) : BaseClass( name )
  18. {
  19. }
  20. CTEAntlionDust::~CTEAntlionDust( void )
  21. {
  22. }
  23. static CTEAntlionDust g_TEAntlionDust( "AntlionDust" );
  24. //-----------------------------------------------------------------------------
  25. // Purpose: Creates antlion dust effect
  26. // Input : &origin - position
  27. // &angles - angles
  28. //-----------------------------------------------------------------------------
  29. void UTIL_CreateAntlionDust( const Vector &origin, const QAngle &angles, bool bBlockedSpawner )
  30. {
  31. g_TEAntlionDust.m_vecOrigin = origin;
  32. g_TEAntlionDust.m_vecAngles = angles;
  33. g_TEAntlionDust.m_bBlockedSpawner = bBlockedSpawner;
  34. //Send it
  35. CPVSFilter filter( origin );
  36. g_TEAntlionDust.Create( filter, 0.0f );
  37. }