hl2_src-leak-2017/src/game/server/dod/dod_ammo_box.h
BotoX 60f625f414 import hl2_src from full.7z
source: magnet:?xt=urn:btih:21DDA6847DDE983F2F8063739249D2D1D09A5DDA
2020-12-25 16:26:23 +01:00

43 lines
816 B
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef AMMO_BOX_H
#define AMMO_BOX_H
#ifdef _WIN32
#pragma once
#endif
#include "items.h"
class CAmmoBox : public CItem
{
public:
DECLARE_CLASS( CAmmoBox, CItem );
CAmmoBox() {}
virtual void Spawn();
virtual void Precache();
void EXPORT FlyThink( void );
void EXPORT BoxTouch( CBaseEntity *pOther );
bool MyTouch( CBasePlayer *pBasePlayer );
static CAmmoBox *Create( const Vector &vecOrigin, const QAngle &vecAngles, CBaseEntity *pOwner, int team );
void SetAmmoTeam( int team );
private:
EHANDLE m_hOldOwner;
int m_iAmmoTeam;
private:
CAmmoBox( const CAmmoBox & );
DECLARE_DATADESC();
};
#endif //GENERIC_AMMO_H