2006-09-08 14:49:54 +00:00
|
|
|
/* Vexd Utility backwards compatibility
|
|
|
|
*
|
|
|
|
* by the AMX Mod X Development Team
|
|
|
|
*
|
|
|
|
* This file is provided as is (no warranties).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if defined _Vexd_Utilities_included
|
|
|
|
#endinput
|
|
|
|
#endif
|
|
|
|
#define _Vexd_Utilities_included
|
|
|
|
|
|
|
|
#include <engine>
|
2006-10-27 05:53:09 +00:00
|
|
|
#if defined AMXMOD_BCOMPAT
|
|
|
|
#if !defined _vexd_bcompat_included
|
|
|
|
#include <VexdUM>
|
|
|
|
#endif
|
|
|
|
#endif
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Get_Int(iIndex, iVariable)
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_get_int(iIndex, iVariable);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Set_Int(iIndex, iVariable, iNewValue)
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_set_int(iIndex, iVariable, iNewValue);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Float:Entvars_Get_Float(iIndex, iVariable)
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_get_float(iIndex, iVariable);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Set_Float(iIndex, iVariable, Float:fNewValue)
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_set_float(iIndex, iVariable, fNewValue);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Get_Vector(iIndex, iVariable, Float:vRetVector[3])
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_get_vector(iIndex, iVariable, vRetVector);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Set_Vector(iIndex, iVariable, Float:vNewVector[3])
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_set_vector(iIndex, iVariable, vNewVector);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Get_Edict(iIndex, iVariable)
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_get_edict(iIndex, iVariable);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Set_Edict(iIndex, iVariable, iNewIndex)
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_set_edict(iIndex, iVariable, iNewIndex);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Get_String(iIndex, iVariable, szReturnValue[], iReturnLen)
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_get_string(iIndex, iVariable, szReturnValue, iReturnLen);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Set_String(iIndex, iVariable, szNewValue[])
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_set_string(iIndex, iVariable, szNewValue);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Get_Byte(iIndex, iVariable)
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_get_byte(iIndex, iVariable);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Entvars_Set_Byte(iIndex, iVariable, iNewValue)
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_set_byte(iIndex, iVariable, iNewValue);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock CreateEntity(szClassname[])
|
2007-08-10 04:52:12 +00:00
|
|
|
return create_entity(szClassname);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock ENT_SetModel(iIndex, szModel[])
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_set_model(iIndex, szModel);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock ENT_SetOrigin(iIndex, Float:fNewOrigin[3])
|
2007-08-10 04:52:12 +00:00
|
|
|
return entity_set_origin(iIndex, fNewOrigin);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock FindEntity(iIndex, szValue[])
|
2007-08-10 04:52:12 +00:00
|
|
|
return find_ent_by_class(iIndex, szValue);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock RemoveEntity(iIndex)
|
2007-08-10 04:52:12 +00:00
|
|
|
return remove_entity(iIndex);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock TraceLn(iIgnoreEnt, Float:fStart[3], Float:fEnd[3], Float:vReturn[3])
|
2007-08-10 04:52:12 +00:00
|
|
|
return trace_line(iIgnoreEnt, fStart, fEnd, vReturn);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock TraceNormal(iIgnoreEnt, Float:fStart[3], Float:fEnd[3], Float:vReturn[3])
|
2007-08-10 04:52:12 +00:00
|
|
|
return trace_normal(iIgnoreEnt, fStart, fEnd, vReturn);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock VecToAngles(Float:fVector[3], Float:vReturn[3])
|
2007-08-10 04:52:12 +00:00
|
|
|
return vector_to_angle(fVector, vReturn);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Float:VecLength(Float:vVector[3])
|
2007-08-10 04:52:12 +00:00
|
|
|
return vector_length(vVector);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Float:VecDist(Float:vVector[3], Float:vVector2[3])
|
2007-08-10 04:52:12 +00:00
|
|
|
return vector_distance(vVector, vVector2);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock MessageBlock(iMessage, iMessageFlags)
|
2007-08-10 04:52:12 +00:00
|
|
|
return set_msg_block(iMessage, iMessageFlags);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock GetMessageBlock(iMessage)
|
2007-08-10 04:52:12 +00:00
|
|
|
return get_msg_block(iMessage);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock Float:HLTime()
|
2007-08-10 04:52:12 +00:00
|
|
|
return halflife_time();
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock FakeTouch(iToucher, iTouched)
|
2007-08-10 04:52:12 +00:00
|
|
|
return fake_touch(iToucher, iTouched);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock AttachView(iIndex, iTargetIndex)
|
2007-08-10 04:52:12 +00:00
|
|
|
return attach_view(iIndex, iTargetIndex);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock SetView(iIndex, ViewType)
|
2007-08-10 04:52:12 +00:00
|
|
|
return set_view(iIndex, ViewType);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
|
|
|
stock SetSpeak(iIndex, iSpeakFlags)
|
2007-08-10 04:52:12 +00:00
|
|
|
return set_speak(iIndex, iSpeakFlags);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
2007-08-10 04:52:12 +00:00
|
|
|
forward vexd_pfntouch(pToucher, pTouched);
|
2006-09-08 14:49:54 +00:00
|
|
|
|
2007-08-10 04:52:12 +00:00
|
|
|
forward ServerFrame();
|