mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-18 14:31:58 +00:00
1
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// TF Pumpkin Bomb
|
||||
//
|
||||
//=============================================================================
|
||||
#ifndef TF_TARGET_DUMMY_H
|
||||
#define TF_TARGET_DUMMY_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "entity_capture_flag.h"
|
||||
|
||||
DECLARE_AUTO_LIST( ITFTargetDummy );
|
||||
|
||||
class CTFTargetDummy : public CBaseAnimating, public ITFTargetDummy
|
||||
{
|
||||
DECLARE_CLASS( CTFTargetDummy, CBaseAnimating );
|
||||
|
||||
public:
|
||||
|
||||
static CTFTargetDummy* Create( const Vector& vPosition, const QAngle& qAngles, CTFPlayer *pOwner );
|
||||
|
||||
CTFTargetDummy();
|
||||
~CTFTargetDummy() {}
|
||||
|
||||
virtual void Precache( void );
|
||||
|
||||
virtual void Spawn( void );
|
||||
virtual void Event_Killed( const CTakeDamageInfo &info );
|
||||
virtual int OnTakeDamage( const CTakeDamageInfo &info );
|
||||
|
||||
void DestroyThink();
|
||||
void Destroy();
|
||||
void SpewGibs();
|
||||
|
||||
virtual bool ShouldCollide( int collisionGroup, int contentsMask ) const;
|
||||
|
||||
private:
|
||||
// Gibs.
|
||||
CUtlVector<breakmodel_t> m_aGibs;
|
||||
|
||||
};
|
||||
|
||||
#endif //TF_TARGET_DUMMY_H
|
||||
Reference in New Issue
Block a user