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.

41 lines
952 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //
  4. //=============================================================================
  5. #include "cbase.h"
  6. #include "tf_weapon_tranq.h"
  7. #include "tf_fx_shared.h"
  8. // Client specific.
  9. #ifdef CLIENT_DLL
  10. #include "c_tf_player.h"
  11. // Server specific.
  12. #else
  13. #include "tf_player.h"
  14. #endif
  15. //=============================================================================
  16. //
  17. // Weapon Tranq tables.
  18. //
  19. IMPLEMENT_NETWORKCLASS_ALIASED( TFTranq, DT_WeaponTranq )
  20. BEGIN_NETWORK_TABLE( CTFTranq, DT_WeaponTranq )
  21. END_NETWORK_TABLE()
  22. BEGIN_PREDICTION_DATA( CTFTranq )
  23. END_PREDICTION_DATA()
  24. LINK_ENTITY_TO_CLASS( tf_weapon_tranq, CTFTranq );
  25. PRECACHE_WEAPON_REGISTER( tf_weapon_tranq );
  26. // Server specific.
  27. #ifndef CLIENT_DLL
  28. BEGIN_DATADESC( CTFTranq )
  29. END_DATADESC()
  30. #endif
  31. //=============================================================================
  32. //
  33. // Weapon Tranq functions.
  34. //