Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.

52 lines
1.1 KiB

5 years ago
//========= Copyright Valve Corporation, All rights reserved. ============//
//
//
//=============================================================================
#ifndef TF_WEAPON_DECOY_H
#define TF_WEAPON_DECOY_H
#ifdef _WIN32
#pragma once
#endif
#include "tf_weaponbase_gun.h"
#include "tf_weapon_jar.h"
// Client specific.
#ifdef CLIENT_DLL
#define CTFDecoy C_TFDecoy
#endif
//=============================================================================
//
// Spy Decoy weapon.
//
class CTFDecoy : public CTFJar
{
public:
DECLARE_CLASS( CTFDecoy, CTFJar );
DECLARE_NETWORKCLASS();
/*
// Server specific.
#ifdef GAME_DLL
DECLARE_DATADESC();
#endif
*/
CTFDecoy();
~CTFDecoy() {}
virtual int GetWeaponID( void ) const { return TF_WEAPON_LIFELINE; } // TODO: Need real weapon ID
virtual void PrimaryAttack( void );
virtual bool ShouldDrawCrosshair( void ) { return false; }
virtual bool HasPrimaryAmmo() { return true; }
virtual bool CanBeSelected() { return true; }
private:
CTFDecoy( const CTFDecoy & ) {}
};
#endif // TF_WEAPON_DECOY_H