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.

65 lines
2.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Game-specific impact effect hooks
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "fx_impact.h"
  8. #include "tempent.h"
  9. #include "c_te_effect_dispatch.h"
  10. #include "c_te_legacytempents.h"
  11. // NOTE: This has to be the last file included!
  12. #include "tier0/memdbgon.h"
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Handle weapon effect callbacks
  15. //-----------------------------------------------------------------------------
  16. void CStrike_EjectBrass( int shell, const CEffectData &data )
  17. {
  18. C_BasePlayer *pPlayer = C_BasePlayer::GetLocalPlayer();
  19. if( !pPlayer )
  20. return;
  21. DevWarning( "Unhandled CStrike EjectBrass effect\n" );
  22. }
  23. void CStrike_FX_EjectBrass_9mm_Callback( const CEffectData &data )
  24. {
  25. CStrike_EjectBrass( CS_SHELL_9MM, data );
  26. }
  27. void CStrike_FX_EjectBrass_57_Callback( const CEffectData &data )
  28. {
  29. CStrike_EjectBrass( CS_SHELL_57, data );
  30. }
  31. void CStrike_FX_EjectBrass_12Gauge_Callback( const CEffectData &data )
  32. {
  33. CStrike_EjectBrass( CS_SHELL_12GAUGE, data );
  34. }
  35. void CStrike_FX_EjectBrass_556_Callback( const CEffectData &data )
  36. {
  37. CStrike_EjectBrass( CS_SHELL_556, data );
  38. }
  39. void CStrike_FX_EjectBrass_762Nato_Callback( const CEffectData &data )
  40. {
  41. CStrike_EjectBrass( CS_SHELL_762NATO, data );
  42. }
  43. void CStrike_FX_EjectBrass_338Mag_Callback( const CEffectData &data )
  44. {
  45. CStrike_EjectBrass( CS_SHELL_338MAG, data );
  46. }
  47. DECLARE_CLIENT_EFFECT( EjectBrass_9mm, CStrike_FX_EjectBrass_9mm_Callback );
  48. DECLARE_CLIENT_EFFECT( EjectBrass_12Gauge, CStrike_FX_EjectBrass_12Gauge_Callback );
  49. DECLARE_CLIENT_EFFECT( EjectBrass_57, CStrike_FX_EjectBrass_57_Callback );
  50. DECLARE_CLIENT_EFFECT( EjectBrass_556, CStrike_FX_EjectBrass_556_Callback );
  51. DECLARE_CLIENT_EFFECT( EjectBrass_762Nato, CStrike_FX_EjectBrass_762Nato_Callback );
  52. DECLARE_CLIENT_EFFECT( EjectBrass_338Mag, CStrike_FX_EjectBrass_338Mag_Callback );