Skip to content

Commit

Permalink
sog
Browse files Browse the repository at this point in the history
  • Loading branch information
tbox1911 committed Jan 25, 2022
1 parent 9d182bc commit d653282
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core.liberation/scripts/client/misc/init_markers.sqf
Expand Up @@ -25,7 +25,7 @@ sleep 5;
[] call compileFinal preprocessFileLineNUmbers "fixed_position.sqf";

// Search Objects by classname (only when dev)
//[] call compileFinal preprocessFileLineNUmbers "compute_position.sqf";
//[] execVM "compute_position.sqf";

// ATM Markers
{
Expand Down
16 changes: 16 additions & 0 deletions core.liberation/scripts/client/spawn/sog_tunnel_enter.sqf
@@ -0,0 +1,16 @@
// Enter SoG tunnel with AI
private _unit_list = units group player;
//private _player_pos = getPos player;
//private _unit_list_redep = [_unit_list, { !(isPlayer _x) && vehicle _x == _x && (_x distance2D _player_pos) < 40 && lifestate _x != 'INCAPACITATED' }] call BIS_fnc_conditionalSelect;
private _unit_list_redep = [_unit_list, { !(isPlayer _x) && vehicle _x == _x && lifestate _x != 'INCAPACITATED' }] call BIS_fnc_conditionalSelect;

diag_log format ["DBG: %1 %2", player, _unit_list_redep];

[_unit_list_redep] spawn {
params ["_list"];
{
sleep 0.3;
_x setpos ([getPosATL player, 1, random 360] call BIS_fnc_relPos);
_x doFollow leader player;
} forEach _list;
};
17 changes: 17 additions & 0 deletions core.liberation/scripts/client/spawn/sog_tunnel_exit.sqf
@@ -0,0 +1,17 @@
// Exit SoG tunnel with AI
private _unit_list = units group player;
//private _player_pos = getPos player;
//private _unit_list_redep = [_unit_list, { !(isPlayer _x) && vehicle _x == _x && (_x distance2D _player_pos) < 40 && lifestate _x != 'INCAPACITATED' }] call BIS_fnc_conditionalSelect;
private _unit_list_redep = [_unit_list, { !(isPlayer _x) && vehicle _x == _x && lifestate _x != 'INCAPACITATED' }] call BIS_fnc_conditionalSelect;

diag_log format ["DBG: %1 %2", player, _unit_list_redep];

[_unit_list_redep] spawn {
params ["_list"];
{
sleep 0.3;
_x setpos ([getPosATL player, 1, random 360] call BIS_fnc_relPos);
_x doFollow leader player;
} forEach _list;
};

8 changes: 4 additions & 4 deletions maps/Liberation_RX.Cam_Lao_Nam/fixed_position.sqf
@@ -1,7 +1,7 @@
GRLIB_Marker_ATM =[];
GRLIB_Marker_ATM = [[14883.6,13061.7,0]];

GRLIB_Marker_SHOP = [];
GRLIB_Marker_SRV = [[12642.3,13051.4,0],[12904.4,17237.3,0],[13411.7,14152.2,0],[13927.3,12873.5,0],[14351.6,15259,0],[14650.1,18346.9,0],[14699.6,16140.5,0],[14866,12732.1,0],[14917.6,14410,0],[15110.7,13591.4,0],[16068,3817.04,0],[16771.8,6144.52,0],[16802.5,9073.64,0],[17641.5,9326.7,0],[19781.5,6891.5,0],[20200.3,6143.19,0]];

GRLIB_Marker_SRV = [];
GRLIB_Marker_FUEL = [[12420.8,19276.3,0],[12749.4,17171.1,0],[13185.2,13363.8,0],[14333.7,15894.4,0],[14886.1,12807.2,0],[16116.1,3765.94,0],[16568.3,3772.63,0],[16766.5,6132.09,0],[17517.2,8728.67,0],[17616.4,9357.47,0],[19813.6,6989.21,0]];

GRLIB_Marker_FUEL = [];
GRLIB_Marker_SHOP = [[7556.42,11777.7,0],[11515.1,6433.04,0],[11861.9,16781.4,0],[12554.5,12943,0],[14095.7,18060.5,0],[14180.7,15932.2,0],[14985.1,12979.5,0],[16053.6,3756.97,0],[17159.9,9178.11,0],[18101.7,6354.6,0],[19708.5,7066.76,0]];
Binary file modified maps/Liberation_RX.Cam_Lao_Nam/mission.sqm
Binary file not shown.

0 comments on commit d653282

Please sign in to comment.