blob: a35f7dbecdca28c119a4231c81a3ace69f043a4b (
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
38
39
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: TF's derived BaseCombatWeapon
//
// $NoKeywords: $
//=============================================================================//
#ifndef TF_BASECOMBATWEAPON_H
#define TF_BASECOMBATWEAPON_H
#ifdef _WIN32
#pragma once
#endif
#include "baseplayer_shared.h"
#include "basetfplayer_shared.h"
#include "basetfcombatweapon_shared.h"
class CBaseObject;
class CBaseTechnology;
class CBaseTFPlayer;
//-----------------------------------------------------------------------------
// Purpose: Base TF Machinegun
//-----------------------------------------------------------------------------
class CTFMachineGun : public CBaseTFCombatWeapon
{
DECLARE_CLASS( CTFMachineGun, CBaseTFCombatWeapon );
public:
DECLARE_SERVERCLASS();
virtual void PrimaryAttack( void );
virtual void FireBullets( CBaseTFCombatWeapon *pWeapon, int cShots, const Vector &vecSrc, const Vector &vecDirShooting, const Vector &vecSpread, float flDistance, int iBulletType, int iTracerFreq);
virtual const Vector& GetBulletSpread( void );
virtual float GetFireRate( void );
};
#endif // TF_BASECOMBATWEAPON_H
|