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.

49 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "weapon_csbase.h"
  8. #include "gamerules.h"
  9. #include "npcevent.h"
  10. #include "engine/IEngineSound.h"
  11. #include "weapon_smokegrenade.h"
  12. #ifdef CLIENT_DLL
  13. #else
  14. #include "cs_player.h"
  15. #include "items.h"
  16. #include "smokegrenade_projectile.h"
  17. #endif
  18. IMPLEMENT_NETWORKCLASS_ALIASED( SmokeGrenade, DT_SmokeGrenade )
  19. BEGIN_NETWORK_TABLE(CSmokeGrenade, DT_SmokeGrenade)
  20. END_NETWORK_TABLE()
  21. BEGIN_PREDICTION_DATA( CSmokeGrenade )
  22. END_PREDICTION_DATA()
  23. LINK_ENTITY_TO_CLASS( weapon_smokegrenade, CSmokeGrenade );
  24. PRECACHE_WEAPON_REGISTER( weapon_smokegrenade );
  25. #ifndef CLIENT_DLL
  26. BEGIN_DATADESC( CSmokeGrenade )
  27. END_DATADESC()
  28. void CSmokeGrenade::EmitGrenade( Vector vecSrc, QAngle vecAngles, Vector vecVel, AngularImpulse angImpulse, CBasePlayer *pPlayer )
  29. {
  30. CSmokeGrenadeProjectile::Create( vecSrc, vecAngles, vecVel, angImpulse, pPlayer );
  31. }
  32. #endif