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

The latest Game Settings Update for Call of Duty: Black Ops 4 is now live on PlayStation 4, Xbox One, and PC.

Today’s update brings back the Ambush game mode for Blackout, a fan favorite LTM for the Blackout Battle Royale mode. Ambush’s return brings some changes to the mode, including separate weapon balancing, different weapon availability, and more.

The current set up in game is Ambush Quads as the Featured Playlist.

From Treyarch:

Ambush Returns, Hot Pursuit to Follow

Now live this week on PS4, Xbox One, and PC: Ambush is back in Blackout! Get up close and personal to surprise your enemies, or pick them off from a distance before they even know you’re there. The rules have been updated in this new-and-improved version:

  • Sniper Rifles, Shotguns, and Bowie Knife only.
  • Final Collapse will always end in an open location.
  • SDM removed.
  • Concussion Grenade and Cluster Grenade removed.
  • ATV and ARAV removed.

We’re excited to bring back this sniper-friendly mode for Operation Spectre Rising before Hot Pursuit makes its way back into rotation later this month, so let us know what you think of the new Ambush throughout the week!

Barebones Deathmatch Moshpit Begins May 17

The community’s response to our Barebones game mode has been fantastic since it launched with TDM and DOM, and starting this Friday, we’re expanding on the old-school formula with Barebones Deathmatch Moshpit to introduce Kill Confirmed into the mix along with TDM. The same rules apply: no Specialist Weapons, no Special Issue Equipment, no Gear, and no Operator Mods allowed. Watch for this new Barebones variant in Multiplayer on Friday the 17th at 10AM PT.

We’ve also added time frames for our playlist rotations in Multiplayer and Blackout below for all platforms, to give a clearer view of when to expect playlist updates. As a reminder, playlist refreshes typically occur on Tuesdays and/or Fridays. Read on to see what’s new with today’s update:

BLACKOUT

  • Ambush
    • Ambush returns to Blackout for a limited time with updated rules:
      • Sniper Rifles, Shotguns, and Bowie Knife only.
      • Final Collapse will always end in an open location.
      • SDM removed.
      • Concussion Grenade removed.
      • Cluster Grenade removed.
      • ATV removed.
      • ARAV removed.
  • Featured Playlists (May 14-17)
    • PS4/Xbox One
      • Ambush
      • Alcatraz
      • Solo
      • Duos
      • Quads
    • PC
      • Ambush
      • Bounty Hunter
      • Duos

MULTIPLAYER

  • Featured Playlists (May 10-17)
    • PS4/Xbox One
      • Prop Hunt
      • Deathmatch Domination
      • Barebones Moshpit
      • Infected
      • Mercenary Deathmatch Moshpit
    • PC
      • Prop Hunt
      • Deathmatch Domination
      • Barebones Moshpit

SOURCE: Treyarch

comments below