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.

51 lines
1.4 KiB

  1. //========= Copyright � 1996-2005, 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. uint16 nItemDefIndex,
  22. const Vector &vOrigin,
  23. const QAngle &vAngles,
  24. CSWeaponID iWeaponID,
  25. int iMode,
  26. int iSeed,
  27. float fInaccuracy,
  28. float fSpread,
  29. float fAccuracyFishtail,
  30. float flSoundTime/* = 0.0f*/,
  31. WeaponSound_t sound_type/* = SINGLE*/,
  32. float flRecoilIndex/* = 0.0f*/
  33. );
  34. // This runs on both the client and the server.
  35. // On the server, it dispatches a TE_PlantBomb to visible clients.
  36. // On the client, it plays the planting animation.
  37. enum PlantBombOption_t
  38. {
  39. PLANTBOMB_PLANT, // play the planting animation
  40. PLANTBOMB_ABORT, // abort the planting animation
  41. // 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.
  42. };
  43. void FX_PlantBomb( int iPlayer, const Vector &vOrigin, PlantBombOption_t option );
  44. #endif // FX_CS_SHARED_H