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

Function FindNestedDataTable

extensions/sdktools/vhelpers.cpp:288–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288bool FindNestedDataTable(SendTable *pTable, const char *name)
289{
290 if (strcmp(pTable->GetName(), name) == 0)
291 {
292 return true;
293 }
294
295 int props = pTable->GetNumProps();
296 SendProp *prop;
297
298 for (int i=0; i<props; i++)
299 {
300 prop = pTable->GetProp(i);
301 if (prop->GetDataTable())
302 {
303 if (FindNestedDataTable(prop->GetDataTable(), name))
304 {
305 return true;
306 }
307 }
308 }
309
310 return false;
311}
312
313// https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/game/server/baseentity.cpp#L3396L3404
314// CBaseEntity::SetOwnerEntity offers a more or less direct access to CBaseEntity::CollisionRulesChanged

Callers 4

InitTeamNativesFunction · 0.85
GetResourceEntityFunction · 0.85
LookupEntityAttachmentFunction · 0.85
GetEntityAttachmentFunction · 0.85

Calls 2

GetPropMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected