// 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); }; });

Infinity Ward has posted to Reddit an update on a lot of the feedback they’ve received and some of what they’ve fixed going into Beta Weekend 2 and launch of Call of Duty: Modern Warfare.

Updates on Feedback from Weekend One:

  • Connecting your PSNID to your CallofDuty.com account/Display name in-game: Please check this link provided by Activision Support if you’re having issues with connecting accounts or would like to adjust your display name. You can learn how to do this here: https://www.reddit.com/r/modernwarfare/comments/d3ei14/activision_account_display_names_in_the_modern/
  • Hearing enemy footsteps, team footsteps, and your own: We have a blog that goes through all of the audio presets and helps you select the best option for you! We’ll be making some additional adjustments before launch as well! http://www.infinityward.com/news/2019-09/modern_warfare_audio_settings
  • Calling Cards using wrong name and/or flag description: The description for the flag of Colombia currently says “Columbia.” This will be fixed by launch. The Slovakian flag is currently labeled Croatia. This is fixed for weekend two.
  • Level Cap displaying a higher level than 10: Previously, the level cap was set to 10. Some players are seeing their level cap display 11 or higher. This is a visual bug and will be fixed in weekend two. This is fixed for weekend two.
  • Graphical corruption on the matchmaking screen: Some players experienced graphical corruption errors while in matchmaking, resulting in the screen appearing black, green, or yellow. This has been fixed for weekend two.
  • Cruise Missile: The camera will remain static on the initial deployment scene and not properly display the map and enemy targets below. Once having control of the missile, it can become hard to control. This has been fixed for weekend two.
  • Clipping through vehicles and Deployable Cover: Character models are currently clipping through vehicles used during the infil sequence and in some cases, when using the Deployable Cover Field Upgrade. This has been fixed for weekend two.
  • Semtex Grenade: When stuck to a door, the Semtex grenade will not explode and the grenade icon will remain on screen. This has been fixed for weekend two.
  • Smoke effect on weapons: The smoke effect after firing a weapon is currently not displaying in-game. This will be fixed by launch.
  • Players unable to move in certain locations: We’ve seen a few cases where players are getting stuck in their position and are unable to move around the map. We’re currently investigating this.
  • Weapon Attachments: In some cases, weapon attachments are not unlocking after reaching the required level. This is being investigated.
  • Doors: We’ve read your comments about doors; how they open, how loud they can be, and how they interact with you if they’re already open. We’ll be monitoring how you interact with them throughout the weekend and during weekend two.
  • Spawning and Visuals: Spawning is currently inconsistent on some maps, so thank you for sharing your videos with us and sharing your feedback. We’ll continue to monitor the spawn system and we’ll update you if we deploy any changes. We will also be looking into lighting and exposure on various areas of the map, such as how you view dark rooms from the outside of a building and vice versa, for example.
  • Minimap: We turned on a version of the minimap that doesn’t display enemy fire. We’ve been reading through your comments not only about the map itself, but also the compass and other UI elements on screen. Reading your feedback has brought up some very insightful conversations here at the studio, so again, thank you. We’ll continue to monitor throughout weekend two.
  • Recon Drone: There are two noted issues with this Killstreak. One: UI elements remain on the players screen after using the Drone. Second: Thermal function on the Drone causes the map below to become discolored. This is currently being investigated.
  • Weapons clipping through the Operator Character Model: On occasion, the AUG will clip through the arm of an Operator when viewing in the matchmaking or Operator selection screen. This will be fixed by launch.

As a reminder, here’s the schedule for Weekend 2 of the Beta for Modern Warfare:

Post image

SOURCE: Infinity Ward

comments below