Reblar Posted November 28, 2015 Share Posted November 28, 2015 Always really hated these traits as it's possible for someone to have a ridiculous advantage over anyone without it when it comes to finding items in multiplayer. If anyone's capable of making this mod I'd greatly appreciate it. Link to comment Share on other sites More sharing options...
daorkboypl Posted November 28, 2015 Share Posted November 28, 2015 Good solution would be nerfing it a bit just MP side Link to comment Share on other sites More sharing options...
Svarog Posted November 28, 2015 Share Posted November 28, 2015 I'll make a mod that disables those for mp when I get home. ETA 5 hours.Edit: This should make both traits unobtainable in MP character creation, but won't affect characters that already have it. http://www.mediafire.com/download/ec1p6cbm43y1s71/NoLuckInMP.7zDon't really have a way to test and see if it actually works as I can't set up a server on my cheap ass PC without crashing it so you'll have to test and see if it works yourself :/ I tested to see if it removes them from SP and it did and since the thing I did to disable them in MP char creation is the same it SHOULD work.Edit 2: I could probably do a mod that removes the trait from pre-existing characters too if need be but I've got no idea if that would work right. seargentbingle and lucy the axe 2 Link to comment Share on other sites More sharing options...
Kaltag Posted November 28, 2015 Share Posted November 28, 2015 I do agree it does need a bit of reworking, and in MP it really only affect corpses by large depending on how actively the players are moving. Link to comment Share on other sites More sharing options...
Svarog Posted November 28, 2015 Share Posted November 28, 2015 I do agree it does need a bit of reworking, and in MP it really only affect corpses by large depending on how actively the players are moving.Unless the server respawns items, and most of them do, in that case Lucky players really do have an advantage.And I think loot spawns when container is checked (SO that it's content is displayed), not when player is simply in the area so... (might be wrong, never did really read too deep into loot spawning code) Link to comment Share on other sites More sharing options...
Reblar Posted November 28, 2015 Author Share Posted November 28, 2015 Awesome Svarog, I'll test it when I get the chance. Link to comment Share on other sites More sharing options...
Kaltag Posted November 28, 2015 Share Posted November 28, 2015 I do agree it does need a bit of reworking, and in MP it really only affect corpses by large depending on how actively the players are moving.Unless the server respawns items, and most of them do, in that case Lucky players really do have an advantage.And I think loot spawns when container is checked (SO that it's content is displayed), not when player is simply in the area so... (might be wrong, never did really read too deep into loot spawning code) Forgot about the loot respawn, also you might be right about the container spawns loot when checked, but I think I read somewhere that it was when the grid was loaded, but I could be wrong ¯\_(ツ)_/¯ Link to comment Share on other sites More sharing options...
Reblar Posted November 28, 2015 Author Share Posted November 28, 2015 Svarog do you want to upload it to the Steam workshop? I intend to use it for a server I'm a part of and I figure it's probably better you upload it and get the credit for it yourself. Link to comment Share on other sites More sharing options...
Svarog Posted November 28, 2015 Share Posted November 28, 2015 Does it work? If it does I will. Link to comment Share on other sites More sharing options...
Reblar Posted November 28, 2015 Author Share Posted November 28, 2015 I'm unable to try it in anything other than single player at the minute so I'm unsure for the time being. Link to comment Share on other sites More sharing options...
Svarog Posted November 28, 2015 Share Posted November 28, 2015 I'm unable to try it in anything other than single player at the minute so I'm unsure for the time being.Well it won't work for SP (The version I upped to mediafire anyway) I'll up it to the workshop and see, I'm fairly certain it does what it is supposed to do, if not, shame on me.http://steamcommunity.com/sharedfiles/filedetails/?id=564350497 Link to comment Share on other sites More sharing options...
Kaltag Posted November 28, 2015 Share Posted November 28, 2015 Actually I take back what I said, I have not found anything about the Lucky/Unlucky trait affecting loot spawns, only that it affects repairing chance. Is there concrete evidence that it does affect inventory? Link to comment Share on other sites More sharing options...
Svarog Posted November 29, 2015 Share Posted November 29, 2015 Actually I take back what I said, I have not found anything about the Lucky/Unlucky trait affecting loot spawns, only that it affects repairing chance. Is there concrete evidence that it does affect inventory?It does, very much, evidence? if ItemPicker.player and character then lucky = character:HasTrait("Lucky"); unlucky = character:HasTrait("Unlucky"); end for m = 1, containerDist.rolls do for i, k in ipairs(containerDist.items) do if not alt then -- first we take the name of the item itemname = k;-- print (itemname); else -- next step is the random spawn part local itemNumber = k; if lucky then itemNumber = itemNumber + 1; end if unlucky then itemNumber = itemNumber - 1; if itemNumber<0.1 then itemNumber=0.1; end endIt makes it SIGNIFICANTLY more likely to find rare items. Link to comment Share on other sites More sharing options...
Kaltag Posted November 29, 2015 Share Posted November 29, 2015 Actually I take back what I said, I have not found anything about the Lucky/Unlucky trait affecting loot spawns, only that it affects repairing chance. Is there concrete evidence that it does affect inventory?It does, very much, evidence? if ItemPicker.player and character then lucky = character:HasTrait("Lucky"); unlucky = character:HasTrait("Unlucky"); end for m = 1, containerDist.rolls do for i, k in ipairs(containerDist.items) do if not alt then -- first we take the name of the item itemname = k;-- print (itemname); else -- next step is the random spawn part local itemNumber = k; if lucky then itemNumber = itemNumber + 1; end if unlucky then itemNumber = itemNumber - 1; if itemNumber<0.1 then itemNumber=0.1; end endIt makes it SIGNIFICANTLY more likely to find rare items. I must have missed this then XD whats the file name just wondering? Now I sound like an ignorant boob . Link to comment Share on other sites More sharing options...
Svarog Posted November 29, 2015 Share Posted November 29, 2015 PZDir/media/lua/server/Items/ItemPicker.lua it does loot distribution. Link to comment Share on other sites More sharing options...
Kaltag Posted November 29, 2015 Share Posted November 29, 2015 PZDir/media/lua/server/Items/ItemPicker.lua it does loot distribution. Okay thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now