@@ -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/* *
0 commit comments