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.

47 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef FX_CS_SHARED_H
  7. #define FX_CS_SHARED_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #ifdef CLIENT_DLL
  12. #include "c_cs_player.h"
  13. #else
  14. #include "cs_player.h"
  15. #endif
  16. // This runs on both the client and the server.
  17. // On the server, it only does the damage calculations.
  18. // On the client, it does all the effects.
  19. void FX_FireBullets(
  20. int iPlayer,
  21. const Vector &vOrigin,
  22. const QAngle &vAngles,
  23. int iWeaponID,
  24. int iMode,
  25. int iSeed,
  26. float fInaccuracy,
  27. float fSpread,
  28. float flSoundTime = 0.0f
  29. );
  30. // This runs on both the client and the server.
  31. // On the server, it dispatches a TE_PlantBomb to visible clients.
  32. // On the client, it plays the planting animation.
  33. enum PlantBombOption_t
  34. {
  35. PLANTBOMB_PLANT, // play the planting animation
  36. PLANTBOMB_ABORT, // abort the planting animation
  37. // NOTE: If you add additional items to this enum then m_option in CTEPlantBomb will need to have its SendPropInt setting changed to have more than one bit.
  38. };
  39. void FX_PlantBomb( int iPlayer, const Vector &vOrigin, PlantBombOption_t option );
  40. #endif // FX_CS_SHARED_H