how can i make player markers shown on map

  • Offline Glein
  • Fresh Spawn
  • *
  • Posts: 2

how can i make player markers shown on map

« posted: Jul 26, 2014, 04:46 PM »
i cant see where i am on the map. does not work in a group or with the gps.

if i have the gps i can open the gps and i can see where i am but i want this to work on the map.

this is my config atm. if anyone knows how i can do this please tell :D

class veteran
   {
      class Flags
      {
         Armor=0;
         FriendlyTag=1;
         EnemyTag=0;
         MineTag=0;
         HUD=1;
         HUDPerm=1;
         HUDWp=1;
         HUDWpPerm=1;
         HUDGroupInfo=1;
         AutoSpot=0;
         Map=1;
         WeaponCursor=0;
         AutoAim=0;
         AutoGuideAT=0;
         Tracers=0;
         ClockIndicator=1;
         3rdPersonView=1;
         UltraAI=1;
         CameraShake=0;
         UnlimitedSaves=0;
         DeathMessages=1;
         NetStats=1;
         VonID=1;
         ExtendetInfoType=1;
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2593

Re: how can i make player markers shown on map

« Reply #1 posted: Jul 26, 2014, 06:55 PM »
What version of the mission are you using?
  • Offline Glein
  • Fresh Spawn
  • *
  • Posts: 2

Re: how can i make player markers shown on map

« Reply #2 posted: Jul 26, 2014, 07:31 PM »
What version of the mission are you using?

think its 0.9 G or something
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2593

Re: how can i make player markers shown on map

« Reply #3 posted: Jul 26, 2014, 07:33 PM »
Player markers have been added in the revive beta:

https://github.com/A3Wasteland/ArmA3_Wasteland.Altis/tree/revive_beta

Re: how can i make player markers shown on map

« Reply #4 posted: Jul 26, 2014, 08:51 PM »
Dont know how to explain this very well but, is there a way to make the markers to only show if the units have a GPS, i mean so you can only see other units (and yourself) within your group on the map or in the GPS if "they" have GPS also.

It may be my settings but now i can always pinpont my location, without the use of a GPS. is that my settings or is that the way the new group markers work?
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2593

Re: how can i make player markers shown on map

« Reply #5 posted: Jul 29, 2014, 03:00 AM »
The team player markers include a red circle player icon if "Extended map" is disabled in the difficulty settings (Map=0). It's so as to allow turning that option off to prevent map spotting, without preventing the player to pinpoint his unit on the map.

To only show units with GPS, you could probably add something like '"ItemGPS" in assignedItems UNIT in the IS_FRIENDLY_PLAYER condition from drawPlayerMarkers.sqf

Re: how can i make player markers shown on map

« Reply #6 posted: Jul 29, 2014, 07:40 AM »
Thank you =).

Re: how can i make player markers shown on map

« Reply #7 posted: Aug 05, 2014, 12:03 AM »
Not having anyone other to test this with right now, was this how you meant with the

Code: [Select]
#define IS_FRIENDLY_PLAYER(UNIT) (isPlayer UNIT && {(group UNIT == group player || (!_isIndie && side group UNIT == playerSide) || ("ItemGPS" in (assignedItems player)))})
"ItemGPS" in assignedItems UNIT

or should it be this?
Code: [Select]
#define IS_FRIENDLY_PLAYER(UNIT) (isPlayer UNIT && {(group UNIT == group player || (!_isIndie && side group UNIT == playerSide) || ("ItemGPS" in (assignedItems UNIT)))})
hmm, getting confused here, these are my settings and i still get my (own) marker with a red circle around it on the map, with or without GPS and with
Code: [Select]
A3W_groupMarkers = 0;              // Show group markers with player names on the map, regardless of difficulty level (0 = no, 1 = yes)
Code: [Select]
class regular
{
class Flags
{
Armor=1;
FriendlyTag=0;
EnemyTag=0;
MineTag=0;
HUD=1;
HUDWp=1;
HUDPerm=0;
HUDWpPerm=1;
HUDGroupInfo=1;
StanceIndicator=1;
AutoSpot=0;
Map=0;
WeaponCursor=0;
AutoGuideAT=0;
ClockIndicator=0;
3rdPersonView=1;
CameraShake=1;
UnlimitedSaves=0;
DeathMessages=1;
NetStats=1;
VonID=1;
ExtendetInfoType=0;
};
aiLevelPreset=3;
skillAI=0.89999998;
precisionAI=0.5;
};

Think its bedtime ;-)
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2593

Re: how can i make player markers shown on map

« Reply #8 posted: Aug 05, 2014, 01:05 AM »
hmm, getting confused here, these are my settings and i still get my (own) marker with a red circle around it on the map, with or without GPS and with

Yes that is on purpose, I added it so we can still see our own position while disabling autospotted enemy icons using Map=0

A3W_groupMarkers is no longer used, it's A3W_teamPlayersMap now.

Re: how can i make player markers shown on map

« Reply #9 posted: Aug 05, 2014, 04:31 PM »
I got it so far that my own and group/teammembers markers don't shown when i don't have a GPS which is acceptable as i think not doing this will render the GPS redundant. I would however prefer to have it so that i cannot see units that doesn't have a GPS equipped even if i got one myself. This is not only for me but for players that want to be a bit incognito as they are a bit afraid to play red/opfor as they feel that there are "spies". Another solution may be that you can only see you groupmates regardless of which team you are in but i see the benefit of being able to show where you are on the map also, but i guess you cant have it all =).

With this i cannot see myself on map (or the red circle) or my teammember on the map unless i have a GPS equipped (but as soon as i equip it its shows group/teammates also), can someone see what i need to do to, in addition so i can only see other units that also have an GPS equipped because i cannot figure it out =).

Code: [Select]
// @file Name: drawPlayerMarkers.sqf
// @file Author: AgentRev

if (!hasInterface) exitWith {};

#define IS_FRIENDLY_PLAYER(UNIT) (isPlayer UNIT && {(group UNIT == group player || (!_isIndie && side group UNIT == playerSide))})
#define DEFAULT_ICON_POS(UNIT) (UNIT modelToWorld (UNIT selectionPosition "spine3"))

disableSerialization;
waitUntil {!isNull findDisplay 12};

_mapCtrl = (findDisplay 12) displayCtrl 51;

if (!isNil "mapEH_drawPlayerMarkers") then
{
_mapCtrl ctrlRemoveEventHandler ["Draw", mapEH_drawPlayerMarkers]
};

mapEH_drawPlayerMarkers = _mapCtrl ctrlAddEventHandler ["Draw",
{
_mapCtrl = _this select 0;

_isIndie = !(playerSide in [BLUFOR,OPFOR]);
_mapIconsEnabled = difficultyEnabled "map";

_allDeadMen = allDeadMen;
_playableUnits = playableUnits;

reverse _allDeadMen;
reverse _playableUnits;

{
_newUnit = _x getVariable ["newRespawnedUnit", objNull];

if (IS_FRIENDLY_PLAYER(_x) || (_newUnit getVariable ["playerSpawning", false] && IS_FRIENDLY_PLAYER(_newUnit))) then
{
_veh = vehicle _x;
_pos = if (_mapIconsEnabled) then { DEFAULT_ICON_POS(_veh) } else { visiblePositionASL _x };

_mapCtrl drawIcon ["\A3\UI_F_Curator\Data\CfgMarkers\kia_ca.paa", [0,0,0,0.6], _pos, 22, 22, 0]; // draw skull
};
} forEach _allDeadMen;

{
if (IS_FRIENDLY_PLAYER(_x) && ("ItemGPS" in (assignedItems player) && !(_x getVariable ["playerSpawning", false]))) then
{
_veh = vehicle _x;

if ((crew _veh) select 0 == _x) then
{
_icon = getText (configFile >> "CfgVehicles" >> typeOf _veh >> "icon");
if (_icon == "") then { _icon = "iconMan" };

_color = if (group _x == group player) then { [0,1,0,1] } else { [1,1,1,1] };
_vehColor = if ({group _x == group player} count crew _veh > 0) then { [0,1,0,1] } else { _color }; // make vehicle green if group player in it
_pos = if (_mapIconsEnabled) then { DEFAULT_ICON_POS(_veh) } else { visiblePositionASL _veh };
_dir = if (_icon == "iconParachute") then { 0 } else { getDir _veh };

_mapCtrl drawIcon [_icon, _vehColor, _pos, 24, 24, _dir, "", 1]; // draw icon

if (_x != player)  then
{
_mapCtrl drawIcon ["#(argb,8,8,3)color(0,0,0,0)", _color, _pos, 25, 25, 0, name _x, 2, 0.05, "PuristaMedium"]; // draw text
};
};
};
} forEach _playableUnits;

if ("ItemGPS" in (assignedItems player) && (!_mapIconsEnabled)) then
{
_veh = vehicle player;
_mapCtrl drawIcon ["\A3\UI_F\Data\IGUI\Cfg\IslandMap\iconplayer_ca.paa", [1,0,0,1], visiblePositionASL _veh, 26, 26, getDir _veh]; // draw player circle
};
}];
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2593

Re: how can i make player markers shown on map

« Reply #10 posted: Aug 05, 2014, 06:23 PM »
Remove your current GPS conditions and change IS_FRIENDLY_PLAYER to :

Code: [Select]
#define IS_FRIENDLY_PLAYER(UNIT) (isPlayer UNIT && {(group UNIT == group player || (!_isIndie && side group UNIT == playerSide)) && {"ItemGPS" in assignedItems UNIT}})
Then add the following above "_mapCtrl = _this select 0" :

Code: [Select]
if !("ItemGPS" in assignedItems player) exitWith {};

i think not doing this will render the GPS redundant

I dunno, to me the only purpose of having a GPS is so you can have a minimap by pressing Ctrl M

Re: how can i make player markers shown on map

« Reply #11 posted: Aug 05, 2014, 07:35 PM »
Haha, it worked perfectly  ;D. How do you know when to use all the different symbols and when, damn i wish i had you skills.

Tested it thru with blu/red/indy and blu and red can see all that has a GPS if they have one themselves. And Indy can see each other if they are in the same group if they have their GPS ofc.

I learned that you seem to have a "map" even if you throw away the map but still have your GPS equipped, didnt know that before.

"now you see me, now you dont"  ;)

Thanks a bunch!


i think not doing this will render the GPS redundant

I dunno, to me the only purpose of having a GPS is so you can have a minimap by pressing Ctrl M
[/quote]

Well i guess thats true but without it it can be a challenge to place yourself exactly on the map(and the relay accurate information to others, for lets say a bomb run or arty), well you can trace yourself with the "quickmarker" i guess, actually now when im thinking of it, you just made a feature i wanted as i think that you usually cant see your exact pos on the map even with the GPS but with this you can. Very happy =) this is like a really nice "combat information system".
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2593

Re: how can i make player markers shown on map

« Reply #12 posted: Aug 05, 2014, 07:51 PM »
it can be a challenge to place yourself exactly on the map (and the relay accurate information to others, for lets say a bomb run or arty)

It's already a challenge just to relay information to other players, unless you use voice chat outside the game... There's always some faggot blasting Soulja Boy in global, and by the time he's muted or banned, some other guy starts playing Borat songs... And then you have Steam and BattlEye spamming all sorts of useless messages in the chat, plus indies constantly bickering and making hackusations. Also that 8 years old kid looking for a group in sidechat. lol

Re: how can i make player markers shown on map

« Reply #13 posted: Aug 05, 2014, 07:57 PM »
it can be a challenge to place yourself exactly on the map (and the relay accurate information to others, for lets say a bomb run or arty)

It's already a challenge just to relay information to other players, unless you use voice chat outside the game... There's always some faggot blasting Soulja Boy in global, and by the time he's muted or banned, some other guy starts playing Borat songs... And then you have Steam and BattlEye spamming all sorts of useless messages in the chat, plus indies constantly bickering and making hackusations.

Very true, ROFL

And talking of that, i should really disable VoN on the server, the amount of players that do very strange stuff with that is staggering... i really hope BIS gives us they tools to disable VoN in any specific channel we want or even have rules to the so for example only teamleaders can talk in side and the rest in group etc.