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.

45 lines
1.1 KiB

  1. //====== Copyright � 1996-2005, 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_decoy.h"
  12. #ifdef CLIENT_DLL
  13. #else
  14. #include "cs_player.h"
  15. #include "items.h"
  16. #include "decoy_projectile.h"
  17. #endif
  18. // NOTE: This has to be the last file included!
  19. #include "tier0/memdbgon.h"
  20. IMPLEMENT_NETWORKCLASS_ALIASED( DecoyGrenade, DT_DecoyGrenade )
  21. BEGIN_NETWORK_TABLE(CDecoyGrenade, DT_DecoyGrenade)
  22. END_NETWORK_TABLE()
  23. BEGIN_PREDICTION_DATA( CDecoyGrenade )
  24. END_PREDICTION_DATA()
  25. LINK_ENTITY_TO_CLASS_ALIASED( weapon_decoy, DecoyGrenade );
  26. PRECACHE_REGISTER( weapon_decoy );
  27. #if !defined( CLIENT_DLL )
  28. BEGIN_DATADESC( CDecoyGrenade )
  29. END_DATADESC()
  30. void CDecoyGrenade::EmitGrenade( Vector vecSrc, QAngle vecAngles, Vector vecVel, AngularImpulse angImpulse, CBasePlayer *pPlayer, const CCSWeaponInfo& weaponInfo )
  31. {
  32. CDecoyProjectile::Create( vecSrc, vecAngles, vecVel, angImpulse, pPlayer, weaponInfo );
  33. }
  34. #endif // !CLIENT_DLL