You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.2 KiB
75 lines
2.2 KiB
![]()
4 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
//=============================================================================//
|
||
|
|
||
|
#include "cbase.h"
|
||
|
#include "weapon_citizenpackage.h"
|
||
|
|
||
|
// memdbgon must be the last include file in a .cpp file!!!
|
||
|
#include "tier0/memdbgon.h"
|
||
|
|
||
|
IMPLEMENT_SERVERCLASS_ST(CWeaponCitizenPackage, DT_WeaponCitizenPackage)
|
||
|
END_SEND_TABLE()
|
||
|
|
||
|
BEGIN_DATADESC( CWeaponCitizenPackage )
|
||
|
END_DATADESC()
|
||
|
|
||
|
LINK_ENTITY_TO_CLASS( weapon_citizenpackage, CWeaponCitizenPackage );
|
||
|
PRECACHE_WEAPON_REGISTER(weapon_citizenpackage);
|
||
|
|
||
|
acttable_t CWeaponCitizenPackage::m_acttable[] =
|
||
|
{
|
||
|
{ ACT_IDLE, ACT_IDLE_PACKAGE, false },
|
||
|
{ ACT_WALK, ACT_WALK_PACKAGE, false },
|
||
|
};
|
||
|
IMPLEMENT_ACTTABLE(CWeaponCitizenPackage);
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Purpose:
|
||
|
//-----------------------------------------------------------------------------
|
||
|
void CWeaponCitizenPackage::ItemPostFrame( void )
|
||
|
{
|
||
|
// Do nothing
|
||
|
}
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Purpose: Remove the citizen package if it's ever dropped
|
||
|
//-----------------------------------------------------------------------------
|
||
|
void CWeaponCitizenPackage::Drop( const Vector &vecVelocity )
|
||
|
{
|
||
|
BaseClass::Drop( vecVelocity );
|
||
|
UTIL_Remove( this );
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Purpose: Citizen suitcase
|
||
|
//-----------------------------------------------------------------------------
|
||
|
class CWeaponCitizenSuitcase : public CWeaponCitizenPackage
|
||
|
{
|
||
|
DECLARE_CLASS( CWeaponCitizenSuitcase, CWeaponCitizenPackage );
|
||
|
public:
|
||
|
DECLARE_SERVERCLASS();
|
||
|
DECLARE_DATADESC();
|
||
|
DECLARE_ACTTABLE();
|
||
|
};
|
||
|
|
||
|
IMPLEMENT_SERVERCLASS_ST(CWeaponCitizenSuitcase, DT_WeaponCitizenSuitcase)
|
||
|
END_SEND_TABLE()
|
||
|
|
||
|
BEGIN_DATADESC( CWeaponCitizenSuitcase )
|
||
|
END_DATADESC()
|
||
|
|
||
|
LINK_ENTITY_TO_CLASS( weapon_citizensuitcase, CWeaponCitizenSuitcase );
|
||
|
PRECACHE_WEAPON_REGISTER(weapon_citizensuitcase);
|
||
|
|
||
|
acttable_t CWeaponCitizenSuitcase::m_acttable[] =
|
||
|
{
|
||
|
{ ACT_IDLE, ACT_IDLE_SUITCASE, false },
|
||
|
{ ACT_WALK, ACT_WALK_SUITCASE, false },
|
||
|
};
|
||
|
IMPLEMENT_ACTTABLE(CWeaponCitizenSuitcase);
|