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.
37 lines
808 B
37 lines
808 B
//========= 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();
|
|
}
|