Would be great if we could do that i also was very disappointed then i realised that its client-side. Therefore it wont work for others
Hey everyone,
I was wondering if one of you nice people has a minute to help me out?
I'm using the small loot multiplier and its working great for myself. However i would like to find a way to sync with peers so my friends in the room get the cash bonus too.
Anyone got any suggestions?
The code I'm using is as follows:
Cheers.Code:if not _uvSmallLoot then _uvSmallLoot = PlayerManager.upgrade_value end function PlayerManager:upgrade_value( category, upgrade, default ) if category == "player" and upgrade == "small_loot_multiplier" then return 10 else return _uvSmallLoot(self, category, upgrade, default) end end if not _uvlSmallLoot then _uvlSmallLoot = PlayerManager.upgrade_value_by_level end function PlayerManager:upgrade_value_by_level( category, upgrade, level, default ) if category == "player" and upgrade == "small_loot_multiplier" then return 100 else return _uvlSmallLoot(self, category, upgrade, level, default) end end
Would be great if we could do that i also was very disappointed then i realised that its client-side. Therefore it wont work for others
I'm not sure its possible. Sorry. Each PD2 client will compute its own cash earnings. Unless they cheat too, then they won't see the increased payouts.
The only workaround would be to spawn & collect extra loot bags (but I haven't ever tried this).
small loot multiplier doesn't even work? For me it just changed the visible text that shows up when you pick it up, not the "instant cash" when you hold TAB, or the useable 5% cash/instant cash shown when ending a mission.
Spawning bags may be more spottable than small loot increases? But you can spawn meth bags now for rats (so probably bank maps too, what bag type has biggest payout, and spawn that bag?) Using same function as meth bag for rats, eh?spawns acquired or obtained meth bag into van on Rats day 1 and escape?Code:managers.loot:secure( "meth", 600 )
LOL compensate... So here's the code we need for bank heists:Code:self.bag_values.gold = 600 self.bag_values.diamonds = 125 -- To compensate for the fast smash and grabs
Your welcome, but thanks to the guy who found Meth bag code, otherwise I couldn't replicate it or figure it out. edit @dougbenham you wanna add this?Code:managers.loot:secure( "gold", 600 )
also check out the MoneyTweakData.lua
EDIT: it works, just looted 30 gold baggs on bank heist. However the 600 may need to be edited, the value might be calculated by multiplier and on overkill its not 36k but more? idk i'll check it out
math anyone? 600 = 36k$ bag
8400 = 504k$ bag
60 is the multiplier for overkill? so um 60k$ is legit gold bag value then
^^^ this is the legit code for a gold bag spawned into van on overkill ^^^Code:managers.loot:secure( "gold", 1000 )
it works in pub non-host, think it uses default value, we just scored a few dozen bags and everyone got paid (illegit lol)
Last edited by Rampant_uterus; 09-16-2013 at 12:21 AM.
Thanks mate this is what i was after. Confirmed working in pub non host. You have to add a fair amount of bags though even if you change the amount to 1000 it caps out even on overkill. I added ~250 bags of gold on a pro bank heist and totaled about 4.5mil payout.
Once again cheers for the help on this matter i knew one of you code geniuses out there would be able to help me out
Cheers,
-Mid