UbberN00ber Posted February 21, 2019 Share Posted February 21, 2019 i have tested this and its not working <ZombieLootDrop> <!-- Changes loot drops from .02 range to 1 --> <set xpath="/entity_classes/entity_class[@name=zombieTemplateMale]/property[@name=LootDropProb]/@value">1</set> <!-- Adds more TimeStayAfterDeath to EntityLoot (from 5 min to 20 min) --> <set xpath="/entity_classes/entity_class[@name='zombieTemplateMale')]/property[@name='TimeStayAfterDeath')]/@value">600</set> </ZombieLootDrop> Link to comment Share on other sites More sharing options...
Royal Deluxe Posted February 21, 2019 Share Posted February 21, 2019 i am not sure, but has not each zombie his own values ? And the time stay is the corpse so far i see this Link to comment Share on other sites More sharing options...
UbberN00ber Posted February 21, 2019 Author Share Posted February 21, 2019 so it looks like this need to be written for each entity class zombie even tho each class extends from maletemplate extends="zombieTemplateMale"> but each class have own loot prob and table could it be written with name of "zombie" to change to all classes? Link to comment Share on other sites More sharing options...
Royal Deluxe Posted February 21, 2019 Share Posted February 21, 2019 if i see this right you need the Dropchance for every zombie and the timer should be in the dropped bags Link to comment Share on other sites More sharing options...
UbberN00ber Posted February 21, 2019 Author Share Posted February 21, 2019 yes thats correct Link to comment Share on other sites More sharing options...
UbberN00ber Posted February 21, 2019 Author Share Posted February 21, 2019 if i see this right you need the Dropchance for every zombie and the timer should be in the dropped bags so is this correct? <ZombieLootDrop> <!-- Changes loot drops from .02 range to .25 --> <set xpath="/entity_classes/entity_class[contains(@name, 'zombie')]/property[@name=LootDropProb]/@value">1</set> <!-- Adds more TimeStayAfterDeath to EntityLoot (from 5 min to 10 min) --> <set xpath="/entity_classes/entity_class[contains(@name, 'zombie')]/property[@name='TimeStayAfterDeath')]/@value">600</set> </ZombieLootDrop> Link to comment Share on other sites More sharing options...
Ragsy 2145 Posted February 21, 2019 Share Posted February 21, 2019 Wolfgang did a modlet for dead disappear quickly but also stated in the mod that Zombie loot stays a lot longer along with the back pack.... https://github.com/PVWolfgang/wolfgangMods <set xpath="//entity_class[starts-with(@name, 'EntityLootContainer')]/property[@name='TimeStayAfterDeath']/@value">1200</set> Which is 20 mins for a dropped loot bag, someone else did a modlet for higher loot drops Link to comment Share on other sites More sharing options...
UbberN00ber Posted February 21, 2019 Author Share Posted February 21, 2019 ok so it should look like this? reason i ask for the loot drop is that i havent found any to work so im testing this one Code: <ZombieLootDrop> <!-- Changes loot drops --> <set xpath="/entity_classes/entity_class[contains(@name, 'zombie')]/property[@name='LootDropProb']/@value">1</set> <!-- Adds more TimeStayAfterDeath to EntityLoot --> <set xpath="//entity_class[starts-with(@name, 'EntityLootContainer')]/property[@name='TimeStayAfterDeath']/@value">600</set> </ZombieLootDrop> Link to comment Share on other sites More sharing options...
Ragsy 2145 Posted February 21, 2019 Share Posted February 21, 2019 <!-- Increase loot drop chance --> <set xpath="/entity_classes/entity_class[@name='zombieTemplateMale']/property[@name='LootDropProb']/@value">0.15</set> Which is identical to your first post and is part of the better balance mod so in thoery your code should work <set xpath="/entity_classes/entity_class[@name=zombieTemplateMale]/property[@name=LootDropProb]/@value">1</set> Give it a try with your version and see ..maybe it will work too , although when i was testing my find bycycles modlets setting prob to 1 was buggy , worked fine at 0.95 and below Link to comment Share on other sites More sharing options...
UbberN00ber Posted February 21, 2019 Author Share Posted February 21, 2019 i tried the zombieTemplateMale one and it never worked when i look in entity classes each class have their own loot prob. Link to comment Share on other sites More sharing options...
Ragsy 2145 Posted February 21, 2019 Share Posted February 21, 2019 i tried the zombieTemplateMale one and it never worked when i look in entity classes each class have their own loot prob. They all extend from that entity so I can not see why it does not work to be honest ... and setting at 1 does not mean you get a bag at every zombie death. Link to comment Share on other sites More sharing options...
Drconfused Posted February 21, 2019 Share Posted February 21, 2019 ok so it should look like this? reason i ask for the loot drop is that i havent found any to work so im testing this one Code: <ZombieLootDrop> <!-- Changes loot drops --> <set xpath="/entity_classes/entity_class[contains(@name, 'zombie')]/property[@name='LootDropProb']/@value">1</set> <!-- Adds more TimeStayAfterDeath to EntityLoot --> <set xpath="//entity_class[starts-with(@name, 'EntityLootContainer')]/property[@name='TimeStayAfterDeath']/@value">600</set> </ZombieLootDrop> looks very close.. I would also add a 2nd contains variable and you also had double // on your EntityLoot <ZombieLootDrop> <set xpath="/entity_classes/entity_class[contains(@name, 'zombie')]property[contains(@name='LootDropProb']/value">1</set> <set xpath="/entity_class[starts-with(@name, 'EntityLootContainer')]/property[contains(@name='TimeStayAfterDeath')]/@value">600</set> </ZombieLootDrop> Link to comment Share on other sites More sharing options...
UbberN00ber Posted February 21, 2019 Author Share Posted February 21, 2019 They all extend from that entity so I can not see why it does not work to be honest ... and setting at 1 does not mean you get a bag at every zombie death. just curious why would setting it to "1" not drop on every death? Link to comment Share on other sites More sharing options...
Ragsy 2145 Posted February 21, 2019 Share Posted February 21, 2019 looks very close.. I would also add a 2nd contains variable and you also had double // on your EntityLoot <ZombieLootDrop> <set xpath="/entity_classes/entity_class[contains(@name, 'zombie')]property[contains(@name='LootDropProb']/value">1</set> <set xpath="/entity_class[starts-with(@name, 'EntityLootContainer')]/property[contains(@name='TimeStayAfterDeath')]/@value">600</set> </ZombieLootDrop> The code sample is from wolfgangs modlet which I am using and for this entry in his xpath this works even with // <set xpath="//entity_class[@name=zombieTemplateMale]/property[@name=TimeStayAfterDeath]/@value">9</set> <!-- Zombie dead bodies stay for 6 seconds --> Anyway I hope you get this sorted I am off to bed ... - - - Updated - - - just curious why would setting it to "1" not drop on every death? I dont know to be honest it probably a bug or something to do with rolled probabilities or 1 does not equal 100% Link to comment Share on other sites More sharing options...
Drconfused Posted February 21, 2019 Share Posted February 21, 2019 So I looked at all the instances of prob= and noticed that the highest is 10 which is on spawning football and cheerleader zombies specifically in a football stadium. We don't see loot with that high of a prob= so I decided to try chaning the LootDropProb to 10 and spawned 25 zeds, after all were dead I had 25 loot containers. It appears we need a 1000% for it to be guaranteed? this is not tested thoroughly though. Link to comment Share on other sites More sharing options...
Drconfused Posted February 22, 2019 Share Posted February 22, 2019 The last couple hours of playing have confirmed to me that setting LootDropProb to 10 guarntees a loot drop. 100% of all my kills have given me a loot bag. Was going to remove the modlet and play normally but figured meh why not try a new game and test it. So there you are. Link to comment Share on other sites More sharing options...
Ragsy 2145 Posted February 22, 2019 Share Posted February 22, 2019 Good information to know for the future Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.