Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. #include "..\script_macros.hpp"
  2. /*
  3. File: fn_initCiv.sqf
  4. Author: Bryan "Tonic" Boardwine
  5.  
  6. Description:
  7. Initializes the civilian.
  8. */
  9. if !(isNil "The_programmer_initialised") exitWith {};
  10. private _maldenArray = ["Land_i_Shop_01_V1_F","Land_i_Shop_01_V2_F","Land_i_Shop_01_V3_F","Land_i_Shop_02_V1_F","Land_i_Shop_02_V2_F","Land_i_Shop_02_V3_F"];
  11. private _tanoaArray = ["Land_House_Small_01_F"];
  12. private _spawnBuildings = [[["Malden", _maldenArray], ["Tanoa", _tanoaArray]]] call TON_fnc_terrainSort;
  13.  
  14. waitUntil {!(isNull (findDisplay 46))};
  15. if (life_is_alive && !life_is_arrested) then {
  16. /* Spawn at our last position */
  17. player setVehiclePosition [life_civ_position, [], 0, "CAN_COLLIDE"];
  18. } else {
  19. if (!life_is_alive && !life_is_arrested) then {
  20. if (LIFE_SETTINGS(getNumber,"save_civilian_positionStrict") isEqualTo 1) then {
  21. _handle = [] spawn life_fnc_civLoadout;
  22. waitUntil {scriptDone _handle};
  23. CASH = 0;
  24. [0] call SOCK_fnc_updatePartial;
  25. };
  26.  
  27. ["ColorCivilian"] spawn life_fnc_initMarkers;
  28.  
  29. [] call life_fnc_spawnMenu;
  30. waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
  31. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
  32. waitUntil {player getVariable ["gang_init_done", false]};
  33. } else {
  34. if (life_is_arrested) then {
  35. life_is_arrested = false;
  36. [player,true] spawn life_fnc_jail;
  37. };
  38. };
  39. };
  40.  
  41. if (license_civ_dirsp) then {
  42. player setVariable ["ASN_Job","Highway", true];
  43. };
  44. ACE_Medical_menu_useMenu = 0;
  45. life_is_alive = true;
  46. player addRating 9999999;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement