mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-14 20:56:56 +00:00
1
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef WEAPON_CSBASE_GUN_H
|
||||
#define WEAPON_CSBASE_GUN_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
|
||||
#include "weapon_csbase.h"
|
||||
|
||||
|
||||
// This is the base class for pistols and rifles.
|
||||
#if defined( CLIENT_DLL )
|
||||
|
||||
#define CWeaponCSBaseGun C_WeaponCSBaseGun
|
||||
|
||||
#else
|
||||
#endif
|
||||
|
||||
|
||||
class CWeaponCSBaseGun : public CWeaponCSBase
|
||||
{
|
||||
public:
|
||||
|
||||
DECLARE_CLASS( CWeaponCSBaseGun, CWeaponCSBase );
|
||||
DECLARE_NETWORKCLASS();
|
||||
DECLARE_PREDICTABLE();
|
||||
|
||||
CWeaponCSBaseGun();
|
||||
|
||||
virtual void PrimaryAttack();
|
||||
virtual void Spawn();
|
||||
virtual bool Deploy();
|
||||
virtual bool Reload();
|
||||
virtual void WeaponIdle();
|
||||
|
||||
// Derived classes call this to fire a bullet.
|
||||
bool CSBaseGunFire( float flCycleTime, CSWeaponMode weaponMode );
|
||||
|
||||
// Usually plays the shot sound. Guns with silencers can play different sounds.
|
||||
virtual void DoFireEffects();
|
||||
virtual void ItemPostFrame();
|
||||
|
||||
protected:
|
||||
float m_zoomFullyActiveTime;
|
||||
|
||||
private:
|
||||
|
||||
CWeaponCSBaseGun( const CWeaponCSBaseGun & );
|
||||
};
|
||||
|
||||
|
||||
#endif // WEAPON_CSBASE_GUN_H
|
||||
Reference in New Issue
Block a user