Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. #include "..\macro.hpp"
  2. /*
  3. File: fn_customPaychecks.sqf
  4. Author: Maihym
  5. Description: Set custom paychecks
  6. */
  7. _side = player getVariable "onDuty";
  8. _paycheck = 0;
  9. {
  10. if (LICENSE_VALUE(configName _x)) then {
  11. _cost = (M_CONFIG(getNumber,"Licenses",configName _x,"Price")) / 10;
  12. _cost = round _cost;
  13. _paycheck = _paycheck + _cost;
  14. };
  15. } forEach ("true" configClasses (missionConfigFile >> "Licenses"));
  16. _sideAdd = 0;
  17. switch (_side) do {
  18. case "civ": {_sideAdd = 500;};
  19. case "cop": {
  20. switch (life_coplevel) do{
  21. case 1: {_sideAdd = 600;};
  22. case 2: {_sideAdd = 750;};
  23. case 3: {_sideAdd = 900;};
  24. case 4: {_sideAdd = 1050;};
  25. case 5: {_sideAdd = 1200;};
  26. case 6: {_sideAdd = 1350;};
  27. case 7: {_sideAdd = 1500;};
  28. case 8: {_sideAdd = 1650;};
  29. };
  30. };
  31. case "med": {
  32. switch (life_mediclevel) do{
  33. case 1: {_sideAdd = 600;};
  34. case 2: {_sideAdd = 700;};
  35. case 3: {_sideAdd = 800;};
  36. case 4: {_sideAdd = 900;};
  37. case 5: {_sideAdd = 1000;};
  38. };
  39. };
  40. };
  41.  
  42. life_paycheck = (_paycheck + _sideAdd) * (missionNamespace getVariable ["mav_ttm_var_paycheckMultiplier", 1]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement