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.

31 lines
977 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //
  4. //
  5. //=============================================================================
  6. #ifndef TF_FX_SHARED_H
  7. #define TF_FX_SHARED_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. // Client specific.
  12. #ifdef CLIENT_DLL
  13. #include "c_tf_player.h"
  14. // Server specific.
  15. #else
  16. #include "tf_player.h"
  17. #endif
  18. void FX_WeaponSound ( int iPlayer, WeaponSound_t soundType, const Vector &vecOrigin, CTFWeaponInfo *pWeaponInfo );
  19. void StartGroupingSounds( void );
  20. void EndGroupingSounds( void );
  21. bool IsFixedWeaponSpreadEnabled( void );
  22. // This runs on both the client and the server.
  23. // On the server, it only does the damage calculations.
  24. // On the client, it does all the effects.
  25. void FX_FireBullets( CTFWeaponBase *pWpn, int iPlayer, const Vector &vecOrigin, const QAngle &vecAngles,
  26. int iWeapon, int iMode, int iSeed, float flSpread, float flDamage = -1.0f, bool bCritical = false );
  27. #endif // TF_FX_SHARED_H