Dechance is ignoring the loot max of the object during an event. Below is one example of the issue.
<group name="StaticObj_Train_Wagon_Flat_Industrial_Barrels_DE" lootmax="3"> <usage name="Industrial" /> <usage name="Town" /> <usage name="Village" /> <container name="loot" lootmax="2"> <category name="tools" /> <category name="clothes" /> <category name="explosives" /> <category name="ammunition" /> <category name="containers" /> <point pos="-1.493165 0.738111 -0.807127" range="0.340625" height="0.851563" /> <point pos="0.768067 0.736933 0.346679" range="0.753125" height="1.882813" /> <point pos="3.724854 0.739101 0.000729" range="1.096875" height="2.000000" /> <point pos="6.185058 0.741623 -0.646003" range="0.512500" height="1.281250" /> <point pos="7.778564 0.740980 0.073478" range="0.443750" height="1.109375" /> <point pos="-6.481202 0.734070 -0.032465" range="1.131250" height="2.000000" /> <point pos="-4.231202 0.736799 -0.835201" range="0.306250" height="0.765625" /> <point pos="-3.081788 0.737391 -0.843259" range="0.306250" height="0.765625" /> <point pos="-1.937743 0.734816 0.729250" range="0.340625" height="0.851563" /> <point pos="-0.871338 0.736065 0.371094" range="0.718750" height="1.796875" /> <point pos="-3.594726 0.734655 0.395999" range="0.684375" height="1.710938" /> </container> <dispatch dechance="1.00"> <proxy type="Barrel_Blue" pos="4.91 0.7 -0.47" rpy="0.0 0.0 0.0" dechance="0.1" /> <proxy type="Barrel_Red" pos="5.21 0.7 0.50" rpy="0.0 0.0 0.0" dechance="0.1" /> <proxy type="Barrel_Yellow" pos="3.40 0.7 -0.75" rpy="0.0 0.0 0.0" dechance="0.1" /> <proxy type="Barrel_Green" pos="3.00 0.7 0" rpy="0.0 0.0 0.0" dechance="0.1" /> </dispatch> </group>
This proto is the one I use, but the event spawned all four barrels and the object's loot max of 3 was ignored.