Skip to content

Commit e33cc3f

Browse files
committed
ReAPI Update version 5.22.0.254
1 parent 90de72f commit e33cc3f

4 files changed

Lines changed: 71 additions & 4 deletions

File tree

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
| 🔧 [AMX Mod X](https://www.amxmodx.org/amxxdrop/1.9/) | [AMXX Dev Team](https://www.amxmodx.org/) | 1.9.0.5281 |
2828
| 💣 [Metamod-r](https://github.com/theAsmodai/metamod-r) | [theAsmodai](https://github.com/theAsmodai) | 1.3.0.131 |
2929
| 📈 [ReHLDS](https://github.com/dreamstalker/rehlds/) | [dreamstalker](https://github.com/dreamstalker) | 3.11.0.779 |
30-
| ⚙️ [ReAPI](https://github.com/s1lentq/reapi) | [s1lentq](https://github.com/s1lentq) | 5.21.0.252 |
30+
| ⚙️ [ReAPI](https://github.com/s1lentq/reapi) | [s1lentq](https://github.com/s1lentq) | 5.22.0.254 |
3131
| 💡 [ReGameDLL](https://github.com/s1lentq/ReGameDLL_CS) | [s1lentq](https://github.com/s1lentq) | 5.21.0.556 |
3232
| 🔐 [Reunion](https://cs.rin.ru/forum/viewtopic.php?f=29&t=69235) | [theAsmodai](https://github.com/theAsmodai) | 0.1.0.92 |
3333
| 🔊 [ReVoice Plus](https://github.com/Garey27/revoice-plus) | [Garey27](https://github.com/Garey27/) | 2.0.5 |
8.31 KB
Binary file not shown.

cstrike/addons/amxmodx/scripting/include/reapi_engine_const.inc

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@ enum MapNameType
1313
MNT_SET // return the name of the current map
1414
};
1515

16+
/*
17+
* For RH_SV_AddResource hook
18+
*/
19+
enum ResourceType_t
20+
{
21+
t_sound = 0,
22+
t_skin,
23+
t_model,
24+
t_decal,
25+
t_generic,
26+
t_eventscript,
27+
t_world, // Fake type for world, is really t_model
28+
rt_unk,
29+
30+
rt_max
31+
};
32+
1633
/**
1734
* rh_emit_sound2 flags
1835
*/
@@ -91,10 +108,60 @@ enum EngineFunc
91108
RH_ED_Free,
92109

93110
/*
94-
* Description: -
111+
* Description: Called when a message is being sent to the server's console.
95112
* Params: (const string[])
96113
*/
97114
RH_Con_Printf,
115+
116+
/*
117+
* Description: Called when a player's userinfo is being checked.
118+
* Params: (adr, userinfo[], bool:reconnect, reconnectSlot, name[])
119+
*
120+
* @note Param adr is unused, guaranteed to return nothing also, don't send anything through it.
121+
* @note In order for param name work, hook needs to be registered as Post.
122+
*/
123+
RH_SV_CheckUserInfo,
124+
125+
/*
126+
* Description: Called when a generic resource is being added to generic precache list.
127+
* Return type: int
128+
* Params: (const string[])
129+
*/
130+
RH_PF_precache_generic_I,
131+
132+
/*
133+
* Description: Called when a model is being added to model precache list.
134+
* Return type: int
135+
* Params: (const string[])
136+
*/
137+
RH_PF_precache_model_I,
138+
139+
/*
140+
* Description: Called when a sound is being added to sound precache list.
141+
* Return type: int
142+
* Params: (const string[])
143+
*/
144+
RH_PF_precache_sound_I,
145+
146+
/*
147+
* Description: Called when an event is being added to event precache list.
148+
* Return type: int
149+
* Params: (const string[])
150+
*/
151+
RH_EV_Precache,
152+
153+
/*
154+
* Description: Called when a resource is being added to resource list.
155+
* Params: (ResourceType_t:type, const filename[], size, flags, index)
156+
*/
157+
RH_SV_AddResource,
158+
159+
/*
160+
* Description: Called when message is being printed to client console.
161+
* Params: (const string[])
162+
*/
163+
RH_SV_ClientPrintf,
164+
98165
};
99166

100167
/**

cstrike/addons/amxmodx/scripting/include/reapi_version.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
#define _reapi_version_included
55

66
// reapi version
7-
#define REAPI_VERSION 521252
7+
#define REAPI_VERSION 522254
88
#define REAPI_VERSION_MAJOR 5
9-
#define REAPI_VERSION_MINOR 21
9+
#define REAPI_VERSION_MINOR 22

0 commit comments

Comments
 (0)