source-engine/game/server/tf2base/entity_ammopack.h
2022-08-10 19:52:28 +03:00

55 lines
1.3 KiB
C++

//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. =======//
//
// Purpose: CTF AmmoPack.
//
//=============================================================================//
#ifndef ENTITY_AMMOPACK_H
#define ENTITY_AMMOPACK_H
#ifdef _WIN32
#pragma once
#endif
#include "tf_powerup.h"
//=============================================================================
//
// CTF AmmoPack class.
//
class CAmmoPack : public CTFPowerup
{
public:
DECLARE_CLASS( CAmmoPack, CTFPowerup );
void Spawn( void );
void Precache( void );
bool MyTouch( CBasePlayer *pPlayer );
powerupsize_t GetPowerupSize( void ) { return POWERUP_FULL; }
virtual const char *GetPowerupModel( void ) { return "models/items/ammopack_large.mdl"; }
};
class CAmmoPackSmall : public CAmmoPack
{
public:
DECLARE_CLASS( CAmmoPackSmall, CAmmoPack );
powerupsize_t GetPowerupSize( void ) { return POWERUP_SMALL; }
virtual const char *GetPowerupModel( void ) { return "models/items/ammopack_small.mdl"; }
};
class CAmmoPackMedium : public CAmmoPack
{
public:
DECLARE_CLASS( CAmmoPackMedium, CAmmoPack );
powerupsize_t GetPowerupSize( void ) { return POWERUP_MEDIUM; }
virtual const char *GetPowerupModel( void ) { return "models/items/ammopack_medium.mdl"; }
};
#endif // ENTITY_AMMOPACK_H