MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / CreateHudSyncObj

Method CreateHudSyncObj

core/smn_hudtext.cpp:147–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 Handle_t CreateHudSyncObj(IdentityToken_t *pIdent)
148 {
149 Handle_t hndl;
150 HandleError err;
151 hud_syncobj_t *obj;
152 HandleSecurity sec;
153
154 obj = new hud_syncobj_t;
155
156 memset(obj->player_channels, 0, sizeof(obj->player_channels));
157
158 sec = HandleSecurity(pIdent, g_pCoreIdent);
159
160 if ((hndl = handlesys->CreateHandleEx(m_hHudSyncObj, obj, &sec, NULL, &err))
161 == BAD_HANDLE)
162 {
163 delete obj;
164 }
165
166 return hndl;
167 }
168
169 HandleError ReadHudSyncObj(Handle_t hndl,
170 IdentityToken_t *pOwner,

Callers 1

CreateHudSynchronizerFunction · 0.80

Calls 2

HandleSecurityClass · 0.85
CreateHandleExMethod · 0.80

Tested by

no test coverage detected