Vexd_Utilities.inc
Original include source with line numbers.
| 1 | /* Vexd Utility backwards compatibility |
| 2 | * |
| 3 | * by the AMX Mod X Development Team |
| 4 | * |
| 5 | * This file is provided as is (no warranties). |
| 6 | */ |
| 7 | |
| 8 | #if defined _Vexd_Utilities_included |
| 9 | #endinput |
| 10 | #endif |
| 11 | #define _Vexd_Utilities_included |
| 12 | |
| 13 | #include <engine> |
| 14 | #if defined AMXMOD_BCOMPAT |
| 15 | #if !defined _vexd_bcompat_included |
| 16 | #include <VexdUM> |
| 17 | #endif |
| 18 | #endif |
| 19 | |
| 20 | stock Entvars_Get_Int(iIndex, iVariable) |
| 21 | return entity_get_int(iIndex, iVariable); |
| 22 | |
| 23 | stock Entvars_Set_Int(iIndex, iVariable, iNewValue) |
| 24 | return entity_set_int(iIndex, iVariable, iNewValue); |
| 25 | |
| 26 | stock Float:Entvars_Get_Float(iIndex, iVariable) |
| 27 | return entity_get_float(iIndex, iVariable); |
| 28 | |
| 29 | stock Entvars_Set_Float(iIndex, iVariable, Float:fNewValue) |
| 30 | return entity_set_float(iIndex, iVariable, fNewValue); |
| 31 | |
| 32 | stock Entvars_Get_Vector(iIndex, iVariable, Float:vRetVector[3]) |
| 33 | return entity_get_vector(iIndex, iVariable, vRetVector); |
| 34 | |
| 35 | stock Entvars_Set_Vector(iIndex, iVariable, Float:vNewVector[3]) |
| 36 | return entity_set_vector(iIndex, iVariable, vNewVector); |
| 37 | |
| 38 | stock Entvars_Get_Edict(iIndex, iVariable) |
| 39 | return entity_get_edict(iIndex, iVariable); |
| 40 | |
| 41 | stock Entvars_Set_Edict(iIndex, iVariable, iNewIndex) |
| 42 | return entity_set_edict(iIndex, iVariable, iNewIndex); |
| 43 | |
| 44 | stock Entvars_Get_String(iIndex, iVariable, szReturnValue[], iReturnLen) |
| 45 | return entity_get_string(iIndex, iVariable, szReturnValue, iReturnLen); |
| 46 | |
| 47 | stock Entvars_Set_String(iIndex, iVariable, szNewValue[]) |
| 48 | return entity_set_string(iIndex, iVariable, szNewValue); |
| 49 | |
| 50 | stock Entvars_Get_Byte(iIndex, iVariable) |
| 51 | return entity_get_byte(iIndex, iVariable); |
| 52 | |
| 53 | stock Entvars_Set_Byte(iIndex, iVariable, iNewValue) |
| 54 | return entity_set_byte(iIndex, iVariable, iNewValue); |
| 55 | |
| 56 | stock CreateEntity(szClassname[]) |
| 57 | return create_entity(szClassname); |
| 58 | |
| 59 | stock ENT_SetModel(iIndex, szModel[]) |
| 60 | return entity_set_model(iIndex, szModel); |
| 61 | |
| 62 | stock ENT_SetOrigin(iIndex, Float:fNewOrigin[3]) |
| 63 | return entity_set_origin(iIndex, fNewOrigin); |
| 64 | |
| 65 | stock FindEntity(iIndex, szValue[]) |
| 66 | return find_ent_by_class(iIndex, szValue); |
| 67 | |
| 68 | stock RemoveEntity(iIndex) |
| 69 | return remove_entity(iIndex); |
| 70 | |
| 71 | stock TraceLn(iIgnoreEnt, Float:fStart[3], Float:fEnd[3], Float:vReturn[3]) |
| 72 | return trace_line(iIgnoreEnt, fStart, fEnd, vReturn); |
| 73 | |
| 74 | stock TraceNormal(iIgnoreEnt, Float:fStart[3], Float:fEnd[3], Float:vReturn[3]) |
| 75 | return trace_normal(iIgnoreEnt, fStart, fEnd, vReturn); |
| 76 | |
| 77 | stock VecToAngles(Float:fVector[3], Float:vReturn[3]) |
| 78 | return vector_to_angle(fVector, vReturn); |
| 79 | |
| 80 | stock Float:VecLength(Float:vVector[3]) |
| 81 | return vector_length(vVector); |
| 82 | |
| 83 | stock Float:VecDist(Float:vVector[3], Float:vVector2[3]) |
| 84 | return vector_distance(vVector, vVector2); |
| 85 | |
| 86 | stock MessageBlock(iMessage, iMessageFlags) |
| 87 | return set_msg_block(iMessage, iMessageFlags); |
| 88 | |
| 89 | stock GetMessageBlock(iMessage) |
| 90 | return get_msg_block(iMessage); |
| 91 | |
| 92 | stock Float:HLTime() |
| 93 | return halflife_time(); |
| 94 | |
| 95 | stock FakeTouch(iToucher, iTouched) |
| 96 | return fake_touch(iToucher, iTouched); |
| 97 | |
| 98 | stock AttachView(iIndex, iTargetIndex) |
| 99 | return attach_view(iIndex, iTargetIndex); |
| 100 | |
| 101 | stock SetView(iIndex, ViewType) |
| 102 | return set_view(iIndex, ViewType); |
| 103 | |
| 104 | stock SetSpeak(iIndex, iSpeakFlags) |
| 105 | return set_speak(iIndex, iSpeakFlags); |
| 106 | |
| 107 | forward vexd_pfntouch(pToucher, pTouched); |
| 108 | |
| 109 | forward ServerFrame(); |
| 110 | |