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

Earlier today, Treyarch released the latest Game Settings Update for Call of Duty: Black Ops 4 which included the start of the Quad Feed for the Weekend, amongst other updates.

Treyarch has released the patch notes for today’s update, which includes changes to Auto Mantling and more.

From Treyarch:

Also in today’s game update, we’ve made two highly-requested changes: adjustments to spawns in round-based respawn modes on all platforms, and an option to toggle Auto Mantle (now live on PS4 and Xbox, coming soon on PC).

Here’s a note on each from the dev team:

Spawns

We’ve identified and resolved an issue with the spawn logic in round-based respawn game modes. This specific issue particularly affected Domination and Control after the first round, in which the spawn system would improperly assess enemy proximity when selecting a respawn location. While this doesn’t resolve all issues that we’re currently tracking to improve with the spawn system, it should reduce the overall percentage of bad spawns experienced in these modes, specifically in rounds two and higher.

Auto Mantle Toggle

We’ve added an option to toggle Auto Mantle in the Controls options menu, now set to “Off” by default. Toggling Auto Mantle on will allow you to mantle without pressing the jump button again when jumping toward a surface that you intend to mantle onto. Toggling Auto Mantle off will require you to hold the jump button to mantle onto your intended surface, or press the jump button once you’ve reached the surface you intend to mantle onto.

Speaking of movement options, we’ve also heard the requests for an Auto-Sprint option for console players, and are currently working on getting that into the game after it’s been put through proper testing. When enabled, this will allow you to double-click your left analog stick to allow your character to automatically sprint without further input. Keep an eye out for future announcements regarding this feature.

Patch Notes: 

General

  • Event
    • Quad Feed (now live through 10AM PT Monday, Nov. 26)
      • 2XP in Multiplayer and Zombies
      • 2X Tier Boost in Multiplayer and Blackout
      • 2X Merits in Blackout
      • 2X Nebulium Plasma in Zombies
  • Gameplay
    • Added an option in the Controls menu to toggle Auto Mantle on or off (now live on PS4 and Xbox, coming soon on PC). Applies to Multiplayer and Blackout.
    • Resolved an issue where enabling Sprint Cancels Reload would disable Auto Mantle (now live on PS4 and Xbox, coming soon on PC).
  • Black Market
    • Clarified the description for Signature Weapons to inform players that the Reactive Camo & Masterwork are now available as soon as a Signature Weapon is unlocked.
  • Miscellaneous
    • Fixed an issue where the Cheers! Gesture could not be equipped on Firebreak and Seraph.
    • Fixed an issue where some Stickers were missing their set name.

Multiplayer

  • Gameplay
    • Resolved a spawn issue in Domination and Control (both Core and Hardcore).

SOURCE: Reddit

comments below