Call of Duty: Modern Warfare will feature outlines to identify friendlies in maps

// initialize jwplayer var playerInstance = jwplayer('player');// player dom elements var playerContainerEl = document.querySelector('.player-container');// returns video player position from top of document function getElementOffsetTop(el) { var boundingClientRect = el.getBoundingClientRect(); var bodyEl = document.body; var docEl = document.documentElement; var scrollTop = window.pageYOffset || docEl.scrollTop || bodyEl.scrollTop; var clientTop = docEl.clientTop || bodyEl.clientTop || 0; return Math.round(boundingClientRect.top + scrollTop - clientTop); }// returns the current y scroll position function getScrollTop() { var docEl = document.documentElement; return (window.pageYOffset || docEl.scrollTop) - (docEl.clientTop || 0); }// configure jwplayer instance playerInstance.setup({ autostart: true, playlist: 'https://cdn.jwplayer.com/v2/playlists/mYdavspX', primary: 'html5', setFullscreen: true, width: '100%' });// when jwplayer instance is ready playerInstance.on('ready', function() { var config = playerInstance.getConfig(); var utils = playerInstance.utils; // get height of player element var playerHeight = config.containerHeight; // flag determining whether close has been clicked var closed = true; // CHANGED // flag determing whether player is playing var playing = false; // ADDED // eventhandler for when close button is being pressed document.getElementsByClassName('icon-close')[0].addEventListener('click', () => { closed = true; onScrollViewHandler(); }); playerInstance.on('play', function() { closed = false; playing = true; // ADDED }).on('pause', function () { playing = false; // ADDED }).on('adPlay', function() { closed = false; // ADDED playing = true; // ADDED }).on('adPause', function() { playing = false; // ADDED });// get player element position from top of document var playerOffsetTop = getElementOffsetTop(playerContainerEl);// set player container to match height of actual video element playerContainerEl.style.height = playerHeight + 'px';// below we handle window scroll event without killing performance function onScrollViewHandler() { var minimized = getScrollTop() >= playerOffsetTop;if (closed && minimized) { minimized = false; jwplayer().pause(); playing = false; // ADDED } else if (!minimized && !playing) { closed = true; // ADDED } utils.toggleClass(playerContainerEl, 'player-minimize', minimized); // update the player's size so the controls are adjusted playerInstance.resize(); }// namespace for whether or not we are waiting for setTimeout() to finish var isScrollTimeout = false;// window onscroll event handler window.onscroll = function() { // skip if we're waiting on a scroll update timeout to finish if (isScrollTimeout) return; // flag that a new timeout will begin isScrollTimeout = true; // otherwise, call scroll event view handler onScrollViewHandler(); // set new timeout setTimeout(function() { // reset timeout flag to false (no longer waiting) isScrollTimeout = false; }, 80); };});

UPDATE: GameInformer shared their gameplay video of Call of Duty: Modern Warfare this week, and GameInformer revealed that Modern Warfare is their cover story for the month. Because of that, the gameplay GameInformer recorded was actually done at the Infinity Ward studio with the latest build of the game, instead of a build made for a specific event (with the gameplay we captured).

In their build, the player outlines was working at intended, and this is what it looks like:

Original Story:

With the lack of mini-map in Call of Duty: Modern Warfare, it’s a bit harder to see where your teammates are at all times in the maps.

The game does show a smaller indicator and their name when in your view, but if they’re inside buildings or around objects, there’s no identifier to showcase where they are.

The studio confirmed during the stream this past week that they plan to have outlines for teammates on the maps, but that feature had a bug and was not ready for the build they showcased during the MP reveal event. The final game will in fact have the outlines for teammates, and the outlines will only be shown when a teammates move behind objects or in buildings to help identify where players are.

The outlines are proximity based. Also they would all have to be occluded behind geometry for an outline to be necessary. Outlines only appear when friendlies are behind things.

Although many fans would just prefer a mini-map, Infinity Ward devs have stated that they will monitor the feedback about this during the upcoming beta for Modern Warfare and will then decide what to do. The studio says they prefer fans to get hands on and then report back versus basing their decisions off of just watching gameplay.

SOURCE: Reddit

comments below

No comments