hl2_src-leak-2017/src/game/shared/dod/weapon_dodsemiauto.cpp
BotoX 60f625f414 import hl2_src from full.7z
source: magnet:?xt=urn:btih:21DDA6847DDE983F2F8063739249D2D1D09A5DDA
2020-12-25 16:26:23 +01:00

37 lines
808 B
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "weapon_dodsemiauto.h"
IMPLEMENT_NETWORKCLASS_ALIASED( DODSemiAutoWeapon, DT_SemiAutoWeapon )
BEGIN_NETWORK_TABLE( CDODSemiAutoWeapon, DT_SemiAutoWeapon )
END_NETWORK_TABLE()
#ifdef CLIENT_DLL
BEGIN_PREDICTION_DATA( CDODSemiAutoWeapon )
END_PREDICTION_DATA()
#endif
CDODSemiAutoWeapon::CDODSemiAutoWeapon()
{
}
void CDODSemiAutoWeapon::Spawn()
{
BaseClass::Spawn();
}
void CDODSemiAutoWeapon::PrimaryAttack( void )
{
//Don't attack more than once on the same button press.
//m_bInAttack is set to false when the attack button is released
m_bInAttack = true;
BaseClass::PrimaryAttack();
}