Jump to content
baldwin

Free and unlimited preplanning stuff

Recommended Posts

baldwin

--Found by baldwin

function MoneyManager:get_preplanning_type_cost(type) return 0 end

function MoneyManager:can_afford_preplanning_type(type) return true end

function MoneyManager:get_preplanning_votes_cost() return 0 end

function PrePlanningManager:get_type_budget_cost(type, default) return 0 end

function PrePlanningManager:can_reserve_mission_element(type, peer_id) return true end

function PrePlanningManager:can_vote_on_plan(type, peer_id) return true end

Enjoy :cool:

Share this post


Link to post
Share on other sites
Baddog-11

Lets see how long it takes to get posted on uc.me lol

Share this post


Link to post
Share on other sites
ITStheNELSON

When i press preplan i crash

Share this post


Link to post
Share on other sites
Baddog-11

It works for me great :P

Look for yourself ^^

You should add Baldwins code into your _autooncheatspregame.lua next to the normal Free Assets code

Share this post


Link to post
Share on other sites
Baddog-11

yes it did

Share this post


Link to post
Share on other sites
r4ppi

sorry for that noob question but im totally new to this kind of stuff, im only using the dlc unlocker but id like to use this as well.

is there a way that i can add this to the dlc unlocker.lua? or do i need to create a new one?

Share this post


Link to post
Share on other sites
baldwin

sorry for that noob question but im totally new to this kind of stuff, im only using the dlc unlocker but id like to use this as well.

is there a way that i can add this to the dlc unlocker.lua? or do i need to create a new one?

You can copy script into separate file and then add it into PD2Hook.yml into PostRequireScripts section:

- [lib/setups/gamesetup, 'path_to_script']

Share this post


Link to post
Share on other sites
paul92

Can you explain what every function does?

I can't understand what these 2 functions do:

function MoneyManager:can_afford_preplanning_type(type) return true end

function PrePlanningManager:can_vote_on_plan(type, peer_id) return true end




Also about this one:


function MoneyManager:get_preplanning_votes_cost() return 0 end


It only makes the Costs for the Mission Critical (Safe Cracking Plan and Escape Plan) gratis?

So considering that this function:


function MoneyManager:get_preplanning_type_cost(type) return 0 end

just make ALL favours gratis, including Mission Critical, is there a point to just use this last one here, instead of both the last 2? Or am i missing something?

Thanks for any explanation!

Share this post


Link to post
Share on other sites
baldwin

MoneyManager.get_preplanning_type_cost --This functions returns price of preplanning item

MoneyManager.can_afford_preplanning_type --Checks, If you can purchase preplanning item

MoneyManager.get_preplanning_votes_cost --Returns total price for your purchase

PrePlanningManager.get_type_budget_cost --Returns required votes to purchase preplanning item

PrePlanningManager.can_reserve_mission_element --Checks, If you can purchase escape plan

PrePlanningManager.can_vote_on_plan --Checks, If you can place vote on plan

Share this post


Link to post
Share on other sites
A new hacker
On 6/17/2014 at 1:21 PM, baldwin said:

 

 

--Found by baldwin

function MoneyManager:get_preplanning_type_cost(type) return 0 end

function MoneyManager:can_afford_preplanning_type(type) return true end

function MoneyManager:get_preplanning_votes_cost() return 0 end

function PrePlanningManager:get_type_budget_cost(type, default) return 0 end

function PrePlanningManager:can_reserve_mission_element(type, peer_id) return true end

function PrePlanningManager:can_vote_on_plan(type, peer_id) return true end

 

Enjoy :cool:

but how do i use this code?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Stop being a peeping tom and join the community.... we got cookies

Join the crew now

Sign in

Already part of the crew? Board right here

Sign In Now

×