extensions/sdktools/vhelpers.h
author Nicholas Hastings <skamonkey@gmail.com>
Wed Jun 27 22:42:23 2012 -0400 (2012-06-27)
changeset 3564 48c4e173997f
parent 2289 44045ead61cd
child 3816 31650bb3c7e8
permissions -rw-r--r--
Updated Core and SDK Tools for ep2v EmitSound sdk change.
dvander@1169
     1
/**
dvander@1169
     2
 * vim: set ts=4 :
ds@1330
     3
 * =============================================================================
dvander@1233
     4
 * SourceMod SDKTools Extension
ds@1947
     5
 * Copyright (C) 2004-2008 AlliedModders LLC.  All rights reserved.
ds@1330
     6
 * =============================================================================
dvander@1169
     7
 *
ds@1330
     8
 * This program is free software; you can redistribute it and/or modify it under
ds@1330
     9
 * the terms of the GNU General Public License, version 3.0, as published by the
ds@1330
    10
 * Free Software Foundation.
dvander@1233
    11
 * 
ds@1330
    12
 * This program is distributed in the hope that it will be useful, but WITHOUT
ds@1330
    13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
ds@1330
    14
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
ds@1330
    15
 * details.
dvander@1233
    16
 *
ds@1330
    17
 * You should have received a copy of the GNU General Public License along with
ds@1330
    18
 * this program.  If not, see <http://www.gnu.org/licenses/>.
dvander@1233
    19
 *
ds@1330
    20
 * As a special exception, AlliedModders LLC gives you permission to link the
ds@1330
    21
 * code of this program (as well as its derivative works) to "Half-Life 2," the
ds@1330
    22
 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
ds@1330
    23
 * by the Valve Corporation.  You must obey the GNU General Public License in
ds@1330
    24
 * all respects for all other code used.  Additionally, AlliedModders LLC grants
ds@1330
    25
 * this exception to all derivative works.  AlliedModders LLC defines further
ds@1330
    26
 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
ds@1330
    27
 * or <http://www.sourcemod.net/license.php>.
dvander@1169
    28
 *
dvander@1169
    29
 * Version: $Id$
dvander@1169
    30
 */
dvander@1169
    31
dvander@1169
    32
#ifndef _INCLUDE_SDKTOOLS_VHELPERS_H_
dvander@1169
    33
#define _INCLUDE_SDKTOOLS_VHELPERS_H_
dvander@1169
    34
dvander@1169
    35
#include <sh_list.h>
dvander@1169
    36
#include <eiface.h>
dvander@1169
    37
#include <IBinTools.h>
dvander@1169
    38
dvander@1169
    39
using namespace SourceMod;
dvander@1169
    40
dvander@1169
    41
struct CallHelper
dvander@1169
    42
{
dvander@1169
    43
	CallHelper() : call(NULL), supported(false), setup(false)
dvander@1169
    44
	{
dvander@1169
    45
	}
dvander@1169
    46
	void Shutdown()
dvander@1169
    47
	{
dvander@1169
    48
		if (call)
dvander@1169
    49
		{
dvander@1169
    50
			call->Destroy();
dvander@1169
    51
			call = NULL;
dvander@1169
    52
			supported = false;
dvander@1169
    53
		}
dvander@1169
    54
	}
dvander@1169
    55
	ICallWrapper *call;
dvander@1169
    56
	bool supported;
dvander@1169
    57
	bool setup;
dvander@1169
    58
};
dvander@1169
    59
dvander@1169
    60
void Teleport(CBaseEntity *pEntity, Vector *origin, QAngle *ang, Vector *velocity);
dvander@1169
    61
bool IsTeleportSupported();
dvander@1169
    62
dvander@1169
    63
void GetVelocity(CBaseEntity *pEntity, Vector *velocity, AngularImpulse *angvelocity);
dvander@1169
    64
bool IsGetVelocitySupported();
dvander@1169
    65
dvander@1611
    66
bool GetEyeAngles(CBaseEntity *pEntity, QAngle *pAngles);
dvander@1611
    67
bool IsEyeAnglesSupported();
dvander@1611
    68
dvander@1628
    69
int GetClientAimTarget(edict_t *pEdict, bool only_players);
dvander@1628
    70
faluco@1769
    71
bool GetPlayerInfo(int client, player_info_t *info);
faluco@1769
    72
dvander@1169
    73
void ShutdownHelpers();
dvander@1169
    74
dvander@1169
    75
#endif //_INCLUDE_SDKTOOLS_VHELPERS_H_