Parent Directory | Revision Log
Revision 17 - (view) (download)
1 : | ian | 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 : | ian | 17 | return entity_get_int(iIndex, iVariable); |
22 : | ian | 1 | |
23 : | stock Entvars_Set_Int(iIndex, iVariable, iNewValue) | ||
24 : | ian | 17 | return entity_set_int(iIndex, iVariable, iNewValue); |
25 : | ian | 1 | |
26 : | stock Float:Entvars_Get_Float(iIndex, iVariable) | ||
27 : | ian | 17 | return entity_get_float(iIndex, iVariable); |
28 : | ian | 1 | |
29 : | stock Entvars_Set_Float(iIndex, iVariable, Float:fNewValue) | ||
30 : | ian | 17 | return entity_set_float(iIndex, iVariable, fNewValue); |
31 : | ian | 1 | |
32 : | stock Entvars_Get_Vector(iIndex, iVariable, Float:vRetVector[3]) | ||
33 : | ian | 17 | return entity_get_vector(iIndex, iVariable, vRetVector); |
34 : | ian | 1 | |
35 : | stock Entvars_Set_Vector(iIndex, iVariable, Float:vNewVector[3]) | ||
36 : | ian | 17 | return entity_set_vector(iIndex, iVariable, vNewVector); |
37 : | ian | 1 | |
38 : | stock Entvars_Get_Edict(iIndex, iVariable) | ||
39 : | ian | 17 | return entity_get_edict(iIndex, iVariable); |
40 : | ian | 1 | |
41 : | stock Entvars_Set_Edict(iIndex, iVariable, iNewIndex) | ||
42 : | ian | 17 | return entity_set_edict(iIndex, iVariable, iNewIndex); |
43 : | ian | 1 | |
44 : | stock Entvars_Get_String(iIndex, iVariable, szReturnValue[], iReturnLen) | ||
45 : | ian | 17 | return entity_get_string(iIndex, iVariable, szReturnValue, iReturnLen); |
46 : | ian | 1 | |
47 : | stock Entvars_Set_String(iIndex, iVariable, szNewValue[]) | ||
48 : | ian | 17 | return entity_set_string(iIndex, iVariable, szNewValue); |
49 : | ian | 1 | |
50 : | stock Entvars_Get_Byte(iIndex, iVariable) | ||
51 : | ian | 17 | return entity_get_byte(iIndex, iVariable); |
52 : | ian | 1 | |
53 : | stock Entvars_Set_Byte(iIndex, iVariable, iNewValue) | ||
54 : | ian | 17 | return entity_set_byte(iIndex, iVariable, iNewValue); |
55 : | ian | 1 | |
56 : | stock CreateEntity(szClassname[]) | ||
57 : | ian | 17 | return create_entity(szClassname); |
58 : | ian | 1 | |
59 : | stock ENT_SetModel(iIndex, szModel[]) | ||
60 : | ian | 17 | return entity_set_model(iIndex, szModel); |
61 : | ian | 1 | |
62 : | stock ENT_SetOrigin(iIndex, Float:fNewOrigin[3]) | ||
63 : | ian | 17 | return entity_set_origin(iIndex, fNewOrigin); |
64 : | ian | 1 | |
65 : | stock FindEntity(iIndex, szValue[]) | ||
66 : | ian | 17 | return find_ent_by_class(iIndex, szValue); |
67 : | ian | 1 | |
68 : | stock RemoveEntity(iIndex) | ||
69 : | ian | 17 | return remove_entity(iIndex); |
70 : | ian | 1 | |
71 : | stock TraceLn(iIgnoreEnt, Float:fStart[3], Float:fEnd[3], Float:vReturn[3]) | ||
72 : | ian | 17 | return trace_line(iIgnoreEnt, fStart, fEnd, vReturn); |
73 : | ian | 1 | |
74 : | stock TraceNormal(iIgnoreEnt, Float:fStart[3], Float:fEnd[3], Float:vReturn[3]) | ||
75 : | ian | 17 | return trace_normal(iIgnoreEnt, fStart, fEnd, vReturn); |
76 : | ian | 1 | |
77 : | stock VecToAngles(Float:fVector[3], Float:vReturn[3]) | ||
78 : | ian | 17 | return vector_to_angle(fVector, vReturn); |
79 : | ian | 1 | |
80 : | stock Float:VecLength(Float:vVector[3]) | ||
81 : | ian | 17 | return vector_length(vVector); |
82 : | ian | 1 | |
83 : | stock Float:VecDist(Float:vVector[3], Float:vVector2[3]) | ||
84 : | ian | 17 | return vector_distance(vVector, vVector2); |
85 : | ian | 1 | |
86 : | stock MessageBlock(iMessage, iMessageFlags) | ||
87 : | ian | 17 | return set_msg_block(iMessage, iMessageFlags); |
88 : | ian | 1 | |
89 : | stock GetMessageBlock(iMessage) | ||
90 : | ian | 17 | return get_msg_block(iMessage); |
91 : | ian | 1 | |
92 : | stock Float:HLTime() | ||
93 : | ian | 17 | return halflife_time(); |
94 : | ian | 1 | |
95 : | stock FakeTouch(iToucher, iTouched) | ||
96 : | ian | 17 | return fake_touch(iToucher, iTouched); |
97 : | ian | 1 | |
98 : | stock AttachView(iIndex, iTargetIndex) | ||
99 : | ian | 17 | return attach_view(iIndex, iTargetIndex); |
100 : | ian | 1 | |
101 : | stock SetView(iIndex, ViewType) | ||
102 : | ian | 17 | return set_view(iIndex, ViewType); |
103 : | ian | 1 | |
104 : | stock SetSpeak(iIndex, iSpeakFlags) | ||
105 : | ian | 17 | return set_speak(iIndex, iSpeakFlags); |
106 : | ian | 1 | |
107 : | ian | 17 | forward vexd_pfntouch(pToucher, pTouched); |
108 : | ian | 1 | |
109 : | ian | 17 | forward ServerFrame(); |
Contact | ViewVC Help |
Powered by ViewVC 1.0.4 |