diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/cstrike/fx_cs_shared.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/cstrike/fx_cs_shared.h')
| -rw-r--r-- | game/shared/cstrike/fx_cs_shared.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/game/shared/cstrike/fx_cs_shared.h b/game/shared/cstrike/fx_cs_shared.h new file mode 100644 index 0000000..19008e8 --- /dev/null +++ b/game/shared/cstrike/fx_cs_shared.h @@ -0,0 +1,47 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef FX_CS_SHARED_H +#define FX_CS_SHARED_H +#ifdef _WIN32 +#pragma once +#endif + + +#ifdef CLIENT_DLL + #include "c_cs_player.h" +#else + #include "cs_player.h" +#endif + + +// This runs on both the client and the server. +// On the server, it only does the damage calculations. +// On the client, it does all the effects. +void FX_FireBullets( + int iPlayer, + const Vector &vOrigin, + const QAngle &vAngles, + int iWeaponID, + int iMode, + int iSeed, + float fInaccuracy, + float fSpread, + float flSoundTime = 0.0f + ); + +// This runs on both the client and the server. +// On the server, it dispatches a TE_PlantBomb to visible clients. +// On the client, it plays the planting animation. +enum PlantBombOption_t +{ + PLANTBOMB_PLANT, // play the planting animation + PLANTBOMB_ABORT, // abort the planting animation + // 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. +}; +void FX_PlantBomb( int iPlayer, const Vector &vOrigin, PlantBombOption_t option ); + +#endif // FX_CS_SHARED_H |