📄 weapon_tripwire.h
字号:
//=========== (C) Copyright 1999 Valve, L.L.C. All rights reserved. ===========
//
// The copyright to the contents herein is the property of Valve, L.L.C.
// The contents may be used and/or copied only with the written permission of
// Valve, L.L.C., or in accordance with the terms and conditions stipulated in
// the agreement/contract under which the contents have been supplied.
//
// Purpose: TRIPWIRE
//
// $Workfile: $
// $Date: $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================
#ifndef WEAPONTRIPWIRE_H
#define WEAPONTRIPWIRE_H
#include "basegrenade_shared.h"
#include "basehlcombatweapon.h"
enum TripwireState_t
{
TRIPWIRE_TRIPMINE_READY,
TRIPWIRE_SATCHEL_THROW,
TRIPWIRE_SATCHEL_ATTACH,
};
class CWeapon_Tripwire : public CBaseHLCombatWeapon
{
public:
DECLARE_CLASS( CWeapon_Tripwire, CBaseHLCombatWeapon );
DECLARE_SERVERCLASS();
bool m_bNeedReload;
bool m_bClearReload;
bool m_bAttachTripwire;
void Spawn( void );
void Precache( void );
int CapabilitiesGet( void ) { return bits_CAP_WEAPON_RANGE_ATTACK1; }
void PrimaryAttack( void );
void SecondaryAttack( void );
void WeaponIdle( void );
void WeaponSwitch( void );
void SetPickupTouch( void );
void TripwireTouch( CBaseEntity *pOther ); // default weapon touch
void ItemPostFrame( void );
bool Reload( void );
bool CanAttachTripwire(void); // In position where can attach TRIPWIRE?
void StartTripwireAttach( void );
void TripwireAttach( void );
bool Deploy( void );
bool Holster( CBaseCombatWeapon *pSwitchingTo = NULL );
CWeapon_Tripwire();
DECLARE_ACTTABLE();
DECLARE_DATADESC();
};
#endif //WEAPONTRIPWIRE_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -