// 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 is live in Call of Duty: Black Ops 4 across platforms, bringing 2XP for the weekend and some bug fixes.

Here’s the details on the update:

Between Barebones in MP, “Ancient Evil” in Zombies, Hardcore in Blackout, and this week’s new ranks in League Play, there’s a whole lot to celebrate in Black Ops 4 this week, and we’re kicking off the weekend the best way we know how.

2XP + 2X Merits Weekend

Now live through 10AM Monday, April 1, players on all platforms get the following:

  • 2XP in Multiplayer
  • 2XP in Zombies
  • 2XP in League Play
  • 2X Merits in Blackout

Go forth and rank up!

Weapon Tuning: Rampart and Saug 9mm

The Rampart has been slightly overperforming in its weapon class lately, so we’ve got some tuning changes in this update. Damage per shot has been reduced a bit from 46 to 40, High Caliber shots do 70 damage per hit to parts of the body affected by High Caliber, and ADS-in speed has been slightly reduced to better balance the Rampart against the rest of the assault rifles in the current meta.

We’ve also slightly increased the 6-shot range on the Saug 9mm SMG, and for those OCD players running the Daemon 3XB with iron sights, we’ve realigned a couple of pixels to make it 100% dead-center. Yeah, it was bothering us too.

Read below for the rest of today’s updates, including a fix for Reactive Camos in Custom Games, restored Dart functionality, several stability and gameplay improvements in “Ancient Evil” for Zombies players, and more.

  • 2XP + 2X Merits Weekend now live on all platforms.
  • Weapon tuning for Rampart and Saug 9mm.
  • Fix for Dart functionality in Multiplayer.
  • Unwrapped Reactive Camos now longer show as wrapped in Custom Games.
  • Various gameplay improvements and stability fixes in Zombies.

General

  • 2XP Weekend
    • Now live through 10AM PT Monday, April 1:
      • 2XP in Multiplayer
      • 2XP in Zombies
      • 2XP in League Play
      • 2X Merits in Blackout

Multiplayer

  • Weapons
    • Rampart
      • Adjusted damage per shot from 46 to 40.
      • High Caliber I-II shots deal 70 damage when hitting parts of the body affected by High Caliber.
      • Slightly reduced ADS-in speed.
    • Saug 9mm
      • Slightly increased 6-shot range.
    • Daemon 3XB
      • Iron sights are now properly centered.
  • Scorestreaks
    • Dart
      • Addressed an issue where the Dart could self-destruct when maneuvering quickly around the map.
  • Reactive Camos
    • Addressed an issue that would show an unwrapped Reactive Camos as wrapped in Custom Games.
  • Barebones
    • After Action Report now properly appears after Hardcore Barebones matches.
  • Friendly Fire
    • 20-second respawn penalty now occurs after a 5th teamkill in Hardcore and League Play matches.
  • Stability
    • Fixed various potential crashes.

Blackout

  • Quick Equip Menu
    • Quick Equip Menu scroll behavior now works as intended when using alternate button layout settings.
  • UI
    • Added game type information to the map loading screen.
  • Low-Population Playlists
    • Featured Playlist set to Hardcore.
    • Rotating playlist set to Solos.
  • Stability
    • Fixed a crash that could occur when the host quits a Custom Match after deployment after having been in a previous Custom Match that was played to completion.

Zombies

  • Perks
    • Added individual sound FX when equipping Perks.
    • Addressed an issue where Stone Cold Stronghold prevented the player from acquiring an armor buff from Special Weapons.

Zombies

  • Stability
    • Fixed a potential crash that could occur when using the Zombshell Perk.
  • Ancient Evil
    • Wonder Weapons
      • Hand of Gaia’s charged shot now always kills zombies in one shot.
    • Miscellaneous
      • Addressed an issue where zombies would cease to spawn if a player started the “Light” step during the Main Quest.
      • Addressed an issue where players were able to Fast Travel during defense in Rush Mode.
      • Addressed an issue where the Objective Marker would remain visible during the defend moment.
      • Addressed an error that could occur when both the player and a bot were downed during the Sentinel Artifact event.
      • Addressed an issue where being revived during the Boss Fight with “Join the Party” caused players to lose functionality.
    • Stability
      • Fixed a crash that could occur when interacting with the statues during the Main Quest.
      • Fixed a crash that could occur while playing as Shaw during “Blood” step of the Main Quest.
      • Fixed a crash that could occur when a player disconnected while auto-reviving.
      • Fixed a crash that could occur when a player disconnected during the Wonder Weapon upgrade quest.
      • Fixed a potential crash caused by Wonder Weapon FX impact.

SOURCE: Treyarch

comments below