Ticket #3530: t3530_unobstructive_corpses_v1.patch
File t3530_unobstructive_corpses_v1.patch, 819 bytes (added by , 9 years ago) |
---|
-
source/ps/TemplateLoader.cpp
void CTemplateLoader::CopyResourceSubset 552 552 permittedComponentTypes.insert("Sound"); 553 553 permittedComponentTypes.insert("AIProxy"); 554 554 555 555 CParamNode::LoadXMLString(out, "<Entity/>"); 556 556 out.CopyFilteredChildrenOfChild(in, "Entity", permittedComponentTypes); 557 558 // Disable the Obstruction component (if there is one) so it doesn't affect pathfinding 559 // (but can still be used for testing this entity for collisions against others) 560 if (out.GetChild("Entity").GetChild("Obstruction").IsOk()) 561 CParamNode::LoadXMLString(out, "<Entity><Obstruction><Active>false</Active></Obstruction></Entity>"); 557 562 }