Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\script_macros.hpp"
- /*
- File: fn_initCiv.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Initializes the civilian.
- */
- if !(isNil "The_programmer_initialised") exitWith {};
- 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"];
- private _tanoaArray = ["Land_House_Small_01_F"];
- private _spawnBuildings = [[["Malden", _maldenArray], ["Tanoa", _tanoaArray]]] call TON_fnc_terrainSort;
- waitUntil {!(isNull (findDisplay 46))};
- if (life_is_alive && !life_is_arrested) then {
- /* Spawn at our last position */
- player setVehiclePosition [life_civ_position, [], 0, "CAN_COLLIDE"];
- } else {
- if (!life_is_alive && !life_is_arrested) then {
- if (LIFE_SETTINGS(getNumber,"save_civilian_positionStrict") isEqualTo 1) then {
- _handle = [] spawn life_fnc_civLoadout;
- waitUntil {scriptDone _handle};
- CASH = 0;
- [0] call SOCK_fnc_updatePartial;
- };
- ["ColorCivilian"] spawn life_fnc_initMarkers;
- [] call life_fnc_spawnMenu;
- waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
- waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
- waitUntil {player getVariable ["gang_init_done", false]};
- } else {
- if (life_is_arrested) then {
- life_is_arrested = false;
- [player,true] spawn life_fnc_jail;
- };
- };
- };
- if (license_civ_dirsp) then {
- player setVariable ["ASN_Job","Highway", true];
- };
- ACE_Medical_menu_useMenu = 0;
- life_is_alive = true;
- player addRating 9999999;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement