| 286 | } |
| 287 | |
| 288 | bool 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 |
no test coverage detected