hlsdk-xash3d/dlls/cthulhu/PowderOfIbn.h

60 lines
1.1 KiB
C++
Executable File

#ifndef POWDER_IBN_H
#define POWDER_IBN_H
/***
*
* Copyright (c) 1999, 2000 Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object code is restricted to non-commercial enhancements to products from
* Valve LLC. All other use, distribution, or modification is prohibited
* without written permission from Valve LLC.
*
****/
#define IBN_PRIMARY_VOLUME 450
enum ibn_e {
IBN_IDLE = 0,
IBN_FIDGET,
IBN_THROW, // toss
IBN_HOLSTER,
IBN_DRAW
};
class CPowderOfIbn : public CBasePlayerWeapon
{
public:
void Spawn( void );
void Precache( void );
int iItemSlot( void ) { return 4; }
int GetItemInfo(ItemInfo *p);
int AddToPlayer( CBasePlayer *pPlayer );
void PrimaryAttack( void );
BOOL Deploy( void );
BOOL CanHolster( void );
void Holster( int skiplocal = 0 );
void WeaponIdle( void );
virtual BOOL UseDecrement( void )
{
#if defined( CLIENT_WEAPONS )
return TRUE;
#else
return FALSE;
#endif
}
};
#endif