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.

21 lines
551 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "fx.h"
  8. #include "c_te_effect_dispatch.h"
  9. #include "c_te_legacytempents.h"
  10. void HL1ShellEjectCallback( const CEffectData &data )
  11. {
  12. int iType = data.m_fFlags; // 0 = shell, 1 = shotgun shell
  13. tempents->HL1EjectBrass( data.m_vOrigin, data.m_vAngles, data.m_vStart, iType );
  14. }
  15. DECLARE_CLIENT_EFFECT( "HL1ShellEject", HL1ShellEjectCallback );