diff --git a/Missionframework/scripts/client/civinformant/civinfo_notifications.sqf b/Missionframework/scripts/client/civinformant/civinfo_notifications.sqf index a3698442..7a47de5e 100644 --- a/Missionframework/scripts/client/civinformant/civinfo_notifications.sqf +++ b/Missionframework/scripts/client/civinformant/civinfo_notifications.sqf @@ -9,7 +9,9 @@ switch (_notif_id) do { ["lib_civ_informant_start", [markertext ([10000, _pos] call F_getNearestSector)]] call BIS_fnc_showNotification; private _informant_marker = createMarkerLocal ["informantmarker", _pos]; _informant_marker setMarkerColorLocal "ColorCIV"; - _informant_marker setMarkerTypeLocal "hd_unknown"; + _informant_marker setMarkerShape "ELLIPSE"; + _informant_marker setMarkerBrush "FDiagonal"; + _informant_marker setMarkerSize [500,500]; }; case 1: { ["lib_civ_informant_success"] call BIS_fnc_showNotification; diff --git a/Missionframework/scripts/server/civinformant/civinfo_loop.sqf b/Missionframework/scripts/server/civinformant/civinfo_loop.sqf index 5f92b3f2..91884468 100644 --- a/Missionframework/scripts/server/civinformant/civinfo_loop.sqf +++ b/Missionframework/scripts/server/civinformant/civinfo_loop.sqf @@ -4,7 +4,7 @@ if (KP_liberation_civinfo_debug > 0) then {private _text = format ["[KP LIBERATI while {true} do { uiSleep (KP_liberation_civinfo_min + round (random (KP_liberation_civinfo_max - KP_liberation_civinfo_min))); - + if (KP_liberation_civinfo_debug > 0) then {private _text = "[KP LIBERATION] [CIVINFO] Informant sleep passed";_text remoteExec ["diag_log",2];}; waitUntil { @@ -18,7 +18,7 @@ while {true} do { if ((KP_liberation_civinfo_chance >= (random 100)) && GRLIB_endgame == 0) then { private _sector = selectRandom ([blufor_sectors, {_x in sectors_capture || _x in sectors_bigtown}] call BIS_fnc_conditionalSelect); private _house = (nearestObjects [[((getMarkerPos _sector select 0) - 100 + (random 200)), ((getMarkerPos _sector select 1) - 100 + (random 200))],["House", "Building"], 100]) select 0; - + private _grp = createGroup [GRLIB_side_civilian, true]; private _informant = _grp createUnit [(selectRandom civilians), getMarkerPos _sector, [], 0, "NONE"]; private _waiting_time = KP_liberation_civinfo_duration; @@ -39,10 +39,10 @@ while {true} do { if (KP_liberation_civinfo_debug > 0) then {private _text = format ["[KP LIBERATION] [CIVINFO] Informant %1 spawned on: %2 - Position: %3", name _informant, debug_source, getPos _informant];_text remoteExec ["diag_log",2];}; - [0, getPos _informant] remoteExec ["civinfo_notifications"]; + [0, [((((getPos _informant) select 0) + 200) - random 400),((((getPos _informant) select 1) + 200) - random 400),0]] remoteExec ["civinfo_notifications"]; while {alive _informant && ((side (group _informant)) == GRLIB_side_civilian) && _waiting_time > 0} do { - uiSleep 1; + uiSleep 1; private _player_near = false; { if (((_x distance _informant) < 150) && (alive _x)) exitWith {_player_near = true}; diff --git a/README.md b/README.md index 29876ab2..d2ab29f9 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,7 @@ class Missions * Tweaked: Weather module is also loaded, even with ACE running. (ACE doesn't control weather completely anymore) * Tweaked: Disabled script that switched locality of all blufor units to the commander machine. (should fix UAV issue) * Tweaked: `allPlayers` replaced with `(allPlayers - entities "HeadlessClient_F")` for scripts which should pause when no players are online. (logistic, resources, battlegroups) +* Tweaked: Marker for civilian informant is an area now and not centered on the informants position anymore. * Fixed: Annoying popup since A3 1.90 concerning missing entry for `widthRailWay`. ### 0.963a (10th April 2018 as "legacy support" release)