Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. File: fn_spawnPointCfg.sqf
  4. Author: Bryan "Tonic" Boardwine
  5.  
  6. Description:
  7. Master configuration for available spawn points depending on the units side.
  8.  
  9. Return:
  10. [Spawn Marker,Spawn Name,Image Path]
  11. */
  12.  
  13. private["_side","_return","_gang"];
  14. _side = [_this,0,civilian,[civilian]] call BIS_fnc_param;
  15. _gang = 0;
  16.  
  17. _return = [];
  18.  
  19. switch(_side) do {
  20. case west:
  21. {
  22. _return = [
  23. ["cop_spawn_1","La Trinité HQ","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
  24. ["cop_spawn_3","Le Port HQ","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
  25. ["cop_spawn_2","La Riviére HQ","\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa"],
  26. ["cop_spawn_4","Police Air HQ","\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa"],
  27. ["cop_spawn_5","HW Patrol","\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa"]
  28. ];
  29. };
  30.  
  31. case independent:
  32. {
  33. _return = [
  34. ["medic_spawn_1","Malden","\a3\ui_f\data\map\MapControl\hospital_ca.paa"]
  35. ];
  36. };
  37.  
  38. case civilian:
  39. {
  40. _gang = life_gangData select 0;
  41. if(isNil "_gang") then {
  42. _gang = 0;
  43. };
  44.  
  45. if (!license_civ_rebel) then {
  46. _return = [
  47. ["Rebelop_1","Spawn 1","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
  48. ["Rebelop_2","Spawn 2","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
  49. ["Rebelop","Spawn 3","\a3\ui_f\data\map\MapControl\watertower_ca.paa"],
  50. ["civ_spawn_2","L'Arche","\a3\ui_f\data\map\MapControl\watertower_ca.paa"]
  51. ];
  52. };
  53.  
  54. if(count life_houses > 0) then {
  55. {
  56. _pos = call compile format["%1",_x select 0];
  57. _house = nearestBuilding _pos;
  58. _houseName = getText(configFile >> "CfgVehicles" >> (typeOf _house) >> "displayName");
  59. _return pushBack [format["house_%1",_house getVariable "uid"],_houseName,"\a3\ui_f\data\map\MapControl\lighthouse_ca.paa"];
  60. } foreach life_houses;
  61. };
  62. };
  63. };
  64.  
  65. _return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement