Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
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.

63 lines
1.5 KiB

/***
*
* Copyright (c) 1996-2001, 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.
*
****/
#ifndef GRAPPLE_TONGUETIP_H
#define GRAPPLE_TONGUETIP_H
5 years ago
class CBarnacleGrappleTip : public CBaseEntity
{
public:
5 years ago
/* virtual int Save( CSave &save );
virtual int Restore( CRestore &restore );
static TYPEDESCRIPTION m_SaveData[];
5 years ago
*/
int targetClass;
void Precache();
void Spawn();
void FlyThink();
void OffsetThink();
void TongueTouch( CBaseEntity* pOther );
int CheckTarget( CBaseEntity* pTarget );
5 years ago
void SetPosition( Vector vecOrigin, Vector vecAngles, CBaseEntity* pOwner );
5 years ago
int GetGrappleType() const { return m_GrappleType; }
5 years ago
bool IsStuck() const { return m_bIsStuck; }
bool HasMissed() const { return m_bMissed; }
4 years ago
#if !CLIENT_DLL
5 years ago
EHANDLE& GetGrappleTarget() { return m_hGrappleTarget; }
void SetGrappleTarget( CBaseEntity* pTarget )
{
m_hGrappleTarget = pTarget;
}
#endif
private:
5 years ago
int m_GrappleType;
bool m_bIsStuck;
bool m_bMissed;
4 years ago
#if !CLIENT_DLL
5 years ago
EHANDLE m_hGrappleTarget;
#endif
Vector m_vecOriginOffset;
};
5 years ago
#endif // GRAPPLE_TONGUETIP_H