Skip to content

Commit bf61030

Browse files
TuxuHolylandultranoobian
authored andcommitted
Added safe spawner location to vehicle and squad spawning
#156
1 parent 870b979 commit bf61030

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

source/dialog/request_squad.sqf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
_index = lbCurSel 2101;
22

3-
_spawnPos = getpos hq_blu1;
3+
//_spawnPos = getpos hq_blu1; blocked by Tuxu
4+
//center, minDist, maxDist, objDist, waterMode, maxGrad, shoreMode, blacklistPos, defaultPos
5+
//HQ, minDist=80,max =250, objdist = 20, landmode, maxgrad = 20, shoremode,
6+
_spawnPos = [getpos hq_blu1, 80, 250, 20, 0, 20, 0] call BIS_fnc_findSafePos;
47
_spawnPos = [(_spawnPos select 0)+15, _spawnPos select 1];
58

69
switch (_index) do
@@ -186,4 +189,4 @@ switch (_index) do
186189
};
187190
};
188191
};
189-
publicVariable "commandpointsblu1";
192+
publicVariable "commandpointsblu1";

source/dialog/request_vehicle.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
_index = lbCurSel 2102;
22

3-
4-
_spawnPos = getpos player;
3+
//_spawnPos = getpos player; Blocked by Tuxu
4+
_spawnPos = [getpos hq_blu1, 100, 250, 20, 0, 20, 0] call BIS_fnc_findSafePos; //changed by tuxu
55
_spawnPos = [(_spawnPos select 0)+30, _spawnPos select 1];
66

77
addEWS_EH = {

0 commit comments

Comments
 (0)