mirror of https://github.com/FWGS/hlsdk-xash3d
62 lines
1.2 KiB
C++
Executable File
62 lines
1.2 KiB
C++
Executable File
|
|
#ifndef MOLOTOV_H
|
|
#define MOLOTOV_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 MOLOTOV_PRIMARY_VOLUME 450
|
|
|
|
enum molotov_e {
|
|
MOLOTOV_DRAW = 0,
|
|
MOLOTOV_IDLE1,
|
|
MOLOTOV_IDLE2,
|
|
MOLOTOV_LIGHT,
|
|
MOLOTOV_THROW, // toss
|
|
MOLOTOV_HOLSTER
|
|
};
|
|
|
|
|
|
|
|
class CMolotov : public CBasePlayerWeapon
|
|
{
|
|
public:
|
|
void Spawn( void );
|
|
void Precache( void );
|
|
int iItemSlot( void ) { return 2; }
|
|
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 );
|
|
float m_flFinishThrow;
|
|
|
|
virtual BOOL UseDecrement( void )
|
|
{
|
|
#if defined( CLIENT_WEAPONS )
|
|
return TRUE;
|
|
#else
|
|
return FALSE;
|
|
#endif
|
|
}
|
|
};
|
|
|
|
#endif
|
|
|
|
|