Skip to content

Commit

Permalink
markers
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisum committed Mar 15, 2016
1 parent d7b572b commit 7885823
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions player/bluforBluforTeleportListener.sqf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addBluforSpawnMarker = {
_pos = _this;
_pos = _this select 0;


_blufor_marker_start = createMarkerLocal ["blufor_marker_start", _pos];
Expand All @@ -10,7 +10,7 @@ addBluforSpawnMarker = {
_BLUFOR_TELEPORT_TARGET_listener = {
_pos = _this select 1;

_pos call addBluforSpawnMarker;
[_pos] call addBluforSpawnMarker;

[_pos, 50] execVM "player\teleportPlayer.sqf";
};
Expand Down
13 changes: 7 additions & 6 deletions player/civKilledMarker.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ showCivKilledHint = {
};

createCivKilledMarker = {
_marker1Nam = format["civKilledMarkerName_%1",(_this select 0)];
xxx = createMarkerLocal [_marker1Nam, (_this select 0)];
"civ_killed_marker" setMarkerShapeLocal "ICON";
"civ_killed_marker" setMarkerTypeLocal "KIA";
"civ_killed_marker" setMarkerColorLocal "ColorCivilian";
"civ_killed_marker" setMarkerAlphaLocal 1;
_marker = createMarkerLocal [format["%1",_pos],_pos];

_marker setMarkerShapeLocal "ICON";
_marker setMarkerTypeLocal "KIA";
_marker setMarkerColorLocal "ColorCivilian";

diag_log format ["CivKills: Marker %1 created", _marker];
};

[_pos] call createCivKilledMarker;
Expand Down
4 changes: 2 additions & 2 deletions player/opforOpforTeleportListener.sqf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "..\missionMacros.h"

createOpforMarker = {
_opfor_marker = createMarker ["opfor_marker", _this];
_opfor_marker = createMarker ["opfor_marker", _this select 0];
_opfor_marker setMarkerType "hd_objective";
_opfor_marker setMarkerColor "ColorWEST";
// with sector module, marker is only needed for getting position
Expand All @@ -14,7 +14,7 @@ _OPFOR_TELEPORT_TARGET_listener = {

[_pos, 50] execVM "player\teleportPlayer.sqf";

_pos call createOpforMarker;
[_pos] call createOpforMarker;

closeDialog 0;
};
Expand Down
2 changes: 1 addition & 1 deletion player/russianMarker.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xxx = createMarkerLocal ["opfor_marker", [0, 0, 0]];
"opfor_marker" setMarkerShapeLocal "ELLIPSE";
"opfor_marker" setMarkerTypeLocal "mil_unknown";
"opfor_marker" setMarkerColorLocal "ColorOpfor";
"opfor_marker" setMarkerAlphaLocal 1;
"opfor_marker" setMarkerAlphaLocal 0;
"opfor_marker" setMarkerSizeLocal [1, 1];
"opfor_marker" setMarkerBrushLocal "SolidFull";

Expand Down
8 changes: 5 additions & 3 deletions player/teleportPlayer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ addBluforSpawnpadMarker = {
_pos = _this;

_blufor_marker_start = createMarkerLocal ["blufor_marker_spawnpad", _pos];
_blufor_marker_start setMarkerShapeLocal "ICON";
_blufor_marker_start setMarkerTypeLocal "hd_pickup";
_blufor_marker_start setMarkerColorLocal "ColorWEST";
};

addOpforSpawnpadMarker = {
_pos = _this;

_blufor_marker_start = createMarkerLocal ["opfor_marker_spawnpad", _pos];
_blufor_marker_start setMarkerTypeLocal "hd_pickup";
_blufor_marker_start setMarkerColorLocal "ColorEAST";
_opfor_marker_start = createMarkerLocal ["opfor_marker_spawnpad", _pos];
_opfor_marker_start setMarkerShapeLocal "ICON";
_opfor_marker_start setMarkerTypeLocal "hd_pickup";
_opfor_marker_start setMarkerColorLocal "ColorEAST";
};

if (side player == west) then {
Expand Down

0 comments on commit 7885823

Please sign in to comment.