blob: e0aaeafa6658e9b8772dc31f53035a1cb5971aba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
//========= 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();
}
|