Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_spawnPointCfg.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Master configuration for available spawn points depending on the units side.
- Return:
- [Spawn Marker,Spawn Name,Image Path]
- */
- private["_side","_return","_gang"];
- _side = [_this,0,civilian,[civilian]] call BIS_fnc_param;
- _gang = 0;
- _return = [];
- switch(_side) do {
- case west:
- {
- _return = [
- ["cop_spawn_1","La Trinité HQ","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
- ["cop_spawn_3","Le Port HQ","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
- ["cop_spawn_2","La Riviére HQ","\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa"],
- ["cop_spawn_4","Police Air HQ","\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa"],
- ["cop_spawn_5","HW Patrol","\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa"]
- ];
- };
- case independent:
- {
- _return = [
- ["medic_spawn_1","Malden","\a3\ui_f\data\map\MapControl\hospital_ca.paa"]
- ];
- };
- case civilian:
- {
- _gang = life_gangData select 0;
- if(isNil "_gang") then {
- _gang = 0;
- };
- if (!license_civ_rebel) then {
- _return = [
- ["Rebelop_1","Spawn 1","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
- ["Rebelop_2","Spawn 2","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
- ["Rebelop","Spawn 3","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
- ["civ_spawn_2","L'Arche","\a3\ui_f\data\map\MapControl\watertower_ca.paa"]
- ];
- };
- if(count life_houses > 0) then {
- {
- _pos = call compile format["%1",_x select 0];
- _house = nearestBuilding _pos;
- _houseName = getText(configFile >> "CfgVehicles" >> (typeOf _house) >> "displayName");
- _return pushBack [format["house_%1",_house getVariable "uid"],_houseName,"\a3\ui_f\data\map\MapControl\lighthouse_ca.paa"];
- } foreach life_houses;
- };
- };
- };
- _return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement