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.

36 lines
808 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "weapon_dodsemiauto.h"
  8. IMPLEMENT_NETWORKCLASS_ALIASED( DODSemiAutoWeapon, DT_SemiAutoWeapon )
  9. BEGIN_NETWORK_TABLE( CDODSemiAutoWeapon, DT_SemiAutoWeapon )
  10. END_NETWORK_TABLE()
  11. #ifdef CLIENT_DLL
  12. BEGIN_PREDICTION_DATA( CDODSemiAutoWeapon )
  13. END_PREDICTION_DATA()
  14. #endif
  15. CDODSemiAutoWeapon::CDODSemiAutoWeapon()
  16. {
  17. }
  18. void CDODSemiAutoWeapon::Spawn()
  19. {
  20. BaseClass::Spawn();
  21. }
  22. void CDODSemiAutoWeapon::PrimaryAttack( void )
  23. {
  24. //Don't attack more than once on the same button press.
  25. //m_bInAttack is set to false when the attack button is released
  26. m_bInAttack = true;
  27. BaseClass::PrimaryAttack();
  28. }