#ifndef TF_WEAPON_KNIFE_H
#define TF_WEAPON_KNIFE_H
#ifdef _WIN32
#pragma once
#endif
#include "tf_weaponbase_melee.h"
#ifdef CLIENT_DLL
#define CTFKnife C_TFKnife
#endif
class CTFKnife : public CTFWeaponBaseMelee
{
public:
DECLARE_CLASS(CTFKnife, CTFWeaponBaseMelee);
DECLARE_NETWORKCLASS();
DECLARE_PREDICTABLE();
CTFKnife();
virtual void PrimaryAttack(void);
virtual void GetWeaponID(void) const { return TF_WEAPON_KNIFE; }
virtual float GetMeleeDamage(CBaseEntity *pTarget, int &iCustomDamage);
virtual void SendPlayerAnimEvent(CTFPlayer *pPlayer);
bool IsBehindTarget(CBaseEntity *pTarget);
virtual bool CalcIsAttackCritialHelper(void);
private:
EHANDLE
CTFKnife(const CTFKnife &) {}
};
#endif
To embed this project on your website, copy the following code and paste it into your website's HTML: