Thread: Share the cash?

Results 1 to 10 of 10
  1. #1
    midnightfs's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    0
    My Mood
    Cool

    Question Share the cash?

    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:

    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
    Cheers.

  2. #2
    SMIRL's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    228
    Reputation
    10
    Thanks
    80
    My Mood
    Amused
    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

  3. #3
    dougbenham's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    134
    Reputation
    119
    Thanks
    1,083
    My Mood
    Pensive
    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).

  4. #4
    Rampant_uterus's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Posts
    644
    Reputation
    7
    Thanks
    136
    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.

  5. #5
    dougbenham's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    134
    Reputation
    119
    Thanks
    1,083
    My Mood
    Pensive
    Quote Originally Posted by Rampant_uterus View Post
    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.
    It works for me on the final payout.

  6. #6
    Rampant_uterus's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Posts
    644
    Reputation
    7
    Thanks
    136
    Quote Originally Posted by dougbenham View Post
    It works for me on the final payout.
    EDIT: seems to be working now, stole 2 mil in loose cash bank heist. Is OK recording those stats? looks... illegit, lol.
    Last edited by Rampant_uterus; 09-15-2013 at 08:07 PM.

  7. #7
    midnightfs's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    Quote Originally Posted by dougbenham View Post
    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).
    Thanks for the replies guys...

    Is there any way to "spawn" bags at this time like you were saying, or not sure?

    Cheers
    -Mid

  8. #8
    Rampant_uterus's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Posts
    644
    Reputation
    7
    Thanks
    136
    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?
    Code:
    managers.loot:secure( "meth", 600 )
    spawns acquired or obtained meth bag into van on Rats day 1 and escape?

    Code:
    	self.bag_values.gold = 600
    	self.bag_values.diamonds = 125 -- To compensate for the fast smash and grabs
    LOL compensate... So here's the code we need for bank heists:

    Code:
    managers.loot:secure( "gold", 600 )
    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?

    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

    Code:
    managers.loot:secure( "gold", 1000 )
    ^^^ this is the legit code for a gold bag spawned into van on overkill ^^^

    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.

  9. #9
    midnightfs's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    0
    My Mood
    Cool

    Thumbs up

    Quote Originally Posted by Rampant_uterus View Post
    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?
    Code:
    managers.loot:secure( "meth", 600 )
    spawns acquired or obtained meth bag into van on Rats day 1 and escape?

    Code:
    	self.bag_values.gold = 600
    	self.bag_values.diamonds = 125 -- To compensate for the fast smash and grabs
    LOL compensate... So here's the code we need for bank heists:

    Code:
    managers.loot:secure( "gold", 600 )
    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?

    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

    Code:
    managers.loot:secure( "gold", 1000 )
    ^^^ this is the legit code for a gold bag spawned into van on overkill ^^^

    it works in pub non-host, think it uses default value, we just scored a few dozen bags and everyone got paid (illegit lol)

    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

  10. #10
    fapdarklord's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    'Straya
    Posts
    465
    Reputation
    59
    Thanks
    2,333
    My Mood
    Fine
    Quote Originally Posted by midnightfs View Post
    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:

    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
    Cheers.
    Just spawn loot, you can find it on dougbenham's collection of lua scripts.

Similar Threads

  1. Replies: 0
    Last Post: 01-07-2012, 10:27 PM
  2. [Share]The CodeProject
    By Invidus in forum Visual Basic Programming
    Replies: 9
    Last Post: 09-28-2010, 06:22 AM
  3. [Request] Share the download
    By teun95 in forum CrossFire Hacks & Cheats
    Replies: 5
    Last Post: 02-11-2010, 11:34 AM
  4. does any 1 have cod5 on the wii and internet with the wii.so we can share the code.
    By gunslinger55 in forum Call of Duty 5 - World at War Hacks
    Replies: 2
    Last Post: 04-17-2009, 09:13 AM