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

Treyarch has released a new Game Settings Update for Call of Duty: Black Ops 4 on PlayStation 4, Xbox One, and PC.

Here’s the details:


r/Blackops4•Posted byu/treyarch_official Treyarch1 hour ago

September 25th Update: PC 1.22 Update / “Tag der Toten” Stability Improvements / Jungle Flooded Now on All Platforms

TreyarchPC 1.22 Update

Our 1.22 update comes to PC today, including Jungle Flooded and Havelina AA50 tuning to MP, daytime map updates to the main map and Alcatraz in Blackout, gameplay improvements in Zombies, and Featured Playlist updates in MP and Blackout. See below for the full list of changes now live.“Tag der Toten” Stability Improvements

Post image

While the hunt continues for more hidden surprises in “Tag der Toten” on PS4, today’s update contains stability improvements for Zombies players, including a fix for a rare crash that could occur when using the Wunderwaffe DG Scharfschütze, and another that could occur when throwing snowballs at teammates in certain situations.

We’re also tracking some additional issues for an upcoming update, including:

  • Players getting stuck after using the Thunder Gun on a zipline.
  • A crash that can occur when the host uses Samantha’s Music Box for the first time after another player quits the match.
  • A rare crash that can occur when using the Level 3 Ragnarok DG-5 to kill enemies on top of a flinger.
  • A rare crash that can occur when using Samantha’s Music Box on too many enemies.
  • A rare crash that can occur after viewing the main quest outro cutscene.
  • “Shivering” character sounds playing too frequently when standing in freezing water.

Jungle Flooded Now Live on All Platforms

Post image

Our new free alt-weather map, Jungle Flooded, is now in rotation on all platforms with today’s update, bringing new gameplay elements to this re-imagined classic in Black Ops 4. Arsenal Sandstorm has also shifted out of rotation on Xbox One and PC with this latest update.

Here’s what’s new since our last community update on Monday:

Post image

ZOMBIES

  • “Tag Der Toten”
    • Stability
      • Fixed a rare crash that could occur in certain situations when throwing snowballs at teammates.
      • Fixed a rare crash that could occur when using the Wunderwaffe DG Scharfschütze.
Post image

MULTIPLAYER

  • Maps
    • Jungle Flooded
      • Alt-weather variant of Jungle now in rotation in core and hardcore game playlists.
    • Arsenal Sandstorm
      • Arsenal Sandstorm removed from map rotation.
Post image

MULTIPLAYER

  • Weapons
    • Havelina AA50
      • Corrected damage values for High Caliber II attachment.
  • Featured Playlists
    • Chaos Domination
    • Barebones Moshpit
    • Party Game Moshpit

BLACKOUT

  • Map Updates
    • Main Map
      • The apocalypse has ended in Blackout, bringing new daytime lighting and brightness levels to the main map environment.
    • Alcatraz
      • Original daytime map environment returns to Alcatraz.
  • Featured Playlists
    • Hot Pursuit
    • Alcatraz Portals
    • Quads

ZOMBIES

  • Weapons
    • M16
      • Increased base ammo count.
  • Miscellaneous
    • Addressed an issue that could allow Hellhounds to start pathing before spawning.
    • Addressed a timing issue on Hellhound spawn visual FX.

SOURCE: Treyarch

comments below