Forum rules
- Ask questions about or share code from languages other than Source Engine scripting.
- Start new topic titles with the code language in brackets (i.e. [C#], [C++], [PHP], etc.)
JoshN0S
Former Server Admin
Posts: 504 Joined: Mon May 17, 2010 10:01 pm
Location: United States
Post
by JoshN0S » Fri May 20, 2011 8:35 pm
Code: Select all
class IEntityInfo
{
public:
virtual const char *GetClassName() = 0;
virtual const QAngle& GetAbsAngles() const = 0;
virtual const QAngle& GetLocalAngles() const = 0;
virtual const Vector& GetAbsOrigin() const = 0;
virtual const Vector& GetLocalOrigin() const = 0;
virtual const Vector& GetAbsVelocity() const = 0;
virtual const Vector& GetLocalVelocity() const = 0;
virtual const QAngle& GetLocalAngularVelocity() const = 0;
// add more useful stuff
};
#define INTERFACEVERSION_ENTITYINFOMANAGER "EntityInfoManager001"
class IEntityInfoManager
{
public:
virtual IEntityInfo *GetEntityInfo( edict_t *pEdict ) = 0;
};
Blake
500+ Posts
Posts: 588 Joined: Mon Jul 05, 2010 8:51 pm
Location: Ontario, Canada
Post
by Blake » Fri May 20, 2011 9:11 pm
It looks like you took it right from source code... ;/
Unkown wrote:
Life’s too short to worry about the little things.
Albert Einstein wrote:
You do not really understand something unless you can explain it to your grandmother.