-Holo- Posted September 8, 2020 Share Posted September 8, 2020 I'm trying to fix and rework individual zombie looting, but not entirely sure on how the game calculates what and how much to drop. for example Killing a Janitor and looting him, with this loot.xml entry for his body (with 50% loot abundance in serverconfig) <!-- Zombie Janitor --> <lootcontainer id="924" count="1,3" size="4,3" destroy_on_close="false" sound_open="UseActions/open_corpse" sound_close="UseActions/close_corpse" open_time="1" loot_quality_template="qualBaseTemplate"> <item group="GenZLoot" prob="60"/> <item group="electricalDevices" prob="5"/> <item name="meleeToolRepairT1ClawHammer"/> <item name="meleeToolSalvageT1Wrench"/> <item name="resourceScrapIron" count="1,30" prob="1.5"/> <item name="meleeToolFlashlight02" prob="0.05" /> <item name="resourceMechanicalParts" count="1,3" prob="0.3"/> <item name="resourceRepairKit" count="1,2"/> <item name="resourceDuctTape" count="1,3"/> <item name="resourceGlue"/> <item name="resourceNail" count="1,10"/> <item name="resourceDoorKnob"/> <item name="resourceAcid"/> <item name="armorMiningHelmet" mods="modArmorHelmetLight" mod_chance="1" prob="0.015"/> </lootcontainer> Do the game essentially roll a 100 digit between 1 to 3 times (in this case) and then decide from the list what to get (And how do it calculate all the things with no prob value?) When do the lootabundance modifier come into play? Do that value affect the count values or simply decide if we get an item or not? How does the loot_quality_template affect the looting? Link to comment Share on other sites More sharing options...
xxx73 Posted September 12, 2020 Share Posted September 12, 2020 My understanding is limited but this is what I think: count="1,3" What you say is correct, a random number from 1 to 3 is chosen each time. (99% sure) No prob = default value = 1.0 (90% sure) loot_quality_template is related to gamestage for all players playing together. lootabundance I dont know about. Link to comment Share on other sites More sharing options...
-Holo- Posted September 21, 2020 Author Share Posted September 21, 2020 Hmmm. It's weird I have came across a whole bunch of times when an zombie has 4 items even when set to count="1,3" It's a bleeping mess the whole thing xD Link to comment Share on other sites More sharing options...
meganoth Posted September 21, 2020 Share Posted September 21, 2020 There are two loot groups in the list, those loot groups might generate multiple items if they have a count as well Link to comment Share on other sites More sharing options...
-Holo- Posted September 25, 2020 Author Share Posted September 25, 2020 Ahh. that would explain a lot, and include a new level of headache for my balancing -.-, Didn't think the game would treat each lootgroup as it's own separate chance for loot. But now when thinking about it, it's obviously so. *I'm dumb* Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.