Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\macro.hpp"
- /*
- File: fn_customPaychecks.sqf
- Author: Maihym
- Description: Set custom paychecks
- */
- _side = player getVariable "onDuty";
- _paycheck = 0;
- {
- if (LICENSE_VALUE(configName _x)) then {
- _cost = (M_CONFIG(getNumber,"Licenses",configName _x,"Price")) / 10;
- _cost = round _cost;
- _paycheck = _paycheck + _cost;
- };
- } forEach ("true" configClasses (missionConfigFile >> "Licenses"));
- _sideAdd = 0;
- switch (_side) do {
- case "civ": {_sideAdd = 500;};
- case "cop": {
- switch (life_coplevel) do{
- case 1: {_sideAdd = 600;};
- case 2: {_sideAdd = 750;};
- case 3: {_sideAdd = 900;};
- case 4: {_sideAdd = 1050;};
- case 5: {_sideAdd = 1200;};
- case 6: {_sideAdd = 1350;};
- case 7: {_sideAdd = 1500;};
- case 8: {_sideAdd = 1650;};
- };
- };
- case "med": {
- switch (life_mediclevel) do{
- case 1: {_sideAdd = 600;};
- case 2: {_sideAdd = 700;};
- case 3: {_sideAdd = 800;};
- case 4: {_sideAdd = 900;};
- case 5: {_sideAdd = 1000;};
- };
- };
- };
- life_paycheck = (_paycheck + _sideAdd) * (missionNamespace getVariable ["mav_ttm_var_paycheckMultiplier", 1]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement