hlsdk-portable/dlls/gearbox/grapple_tonguetip.h

63 lines
1.5 KiB
C
Raw Normal View History

/***
*
* 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
2019-07-31 01:18:51 +03:00
class CBarnacleGrappleTip : public CBaseEntity
{
public:
2019-07-31 01:18:51 +03:00
/* virtual int Save( CSave &save );
virtual int Restore( CRestore &restore );
static TYPEDESCRIPTION m_SaveData[];
2019-07-31 01:18:51 +03:00
*/
int targetClass;
void Precache();
void Spawn();
void FlyThink();
void OffsetThink();
void TongueTouch( CBaseEntity* pOther );
int CheckTarget( CBaseEntity* pTarget );
2019-07-31 01:18:51 +03:00
void SetPosition( Vector vecOrigin, Vector vecAngles, CBaseEntity* pOwner );
2019-07-31 01:18:51 +03:00
int GetGrappleType() const { return m_GrappleType; }
2019-07-31 01:18:51 +03:00
bool IsStuck() const { return m_bIsStuck; }
bool HasMissed() const { return m_bMissed; }
2021-06-09 04:35:22 +05:00
#if !CLIENT_DLL
2019-07-31 01:18:51 +03:00
EHANDLE& GetGrappleTarget() { return m_hGrappleTarget; }
void SetGrappleTarget( CBaseEntity* pTarget )
{
m_hGrappleTarget = pTarget;
}
#endif
private:
2019-07-31 01:18:51 +03:00
int m_GrappleType;
bool m_bIsStuck;
bool m_bMissed;
2021-06-09 04:35:22 +05:00
#if !CLIENT_DLL
2019-07-31 01:18:51 +03:00
EHANDLE m_hGrappleTarget;
#endif
Vector m_vecOriginOffset;
};
2019-07-31 01:18:51 +03:00
#endif // GRAPPLE_TONGUETIP_H