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

CWL and Treyarch have announced an update to the current Call of Duty: Black Ops 4 CWL Rule Set, which will take effect today in League Play and in all CWL competitions in Call of Duty: Black Ops 4.

On top of the previously announced CWL Rule Set, the following changes have been made:

  • Zero Specialist is now available in the CWL Rule Set
  • Three AI Controlled Scorestreaks are now restricted in CWL Rule Set:
    • Drone Squad
    • Sniper’s Nest
    • Strike Team

The following changes will be live today in League Play and the new rule set will debut at the CWL Fort Worth event, which takes place March 15-17 in Fort Worth, Texas.

Here’s the full CWL Rule Set:

CWL Rule Set, Version 1.5:

Maps and Modes

Here are the maps and main settings changes for Control:

Maps: – Updated November 15

—   Arsenal

—   Frequency

—   Gridlock

—   Seaside

Settings:

—   Two second respawn delay

—   Three-second suicide penalty

—   15-second pre-match timer

—   Five second pre-round timer

As for the other two modes, here is the initial map pool and settings changes for Hardpoint and Search and Destroy:

Hardpoint Maps: – Updated November 15

—   Arsenal

—   Frequency

—   Gridlock

—   Hacienda

—   Seaside

Hardpoint Settings:

—   Two second respawn delay

—   Three-second suicide penalty

—   15-second pre-match timer

Search and Destroy Maps: – Updated November 15

—   Arsenal

—   Frequency

—   Gridlock

—   Hacienda

—   Payload

Search and Destroy Settings:

—   Time limit decreased to 1:30

—   Round Win limit increased to six rounds

—   Select Spawn disabled

—   Silent Plant enabled

—   15-second pre-match timer

Five second pre-round timer

Specialists – Updated March 1

The following Specialist is restricted from use in CWL competition:

—   Nomad

—   Torque

—   Ajax

Specialists in the game can be used by one player on each team, just like in regular Multiplayer lobbies.

Specialist Equipment – Updated January 29

The following Specialist Equipment is restricted from use in CWL competition:

—   Tac-Deploy 

—   Seeker Drone

—   Reactor Core

Sensor Dart has been removed from the restricted Specialist Equipment list and has been re-enabled in competitive play (Updated 11/15)

Some equipment the studio would like to try adjusting – specifically for Esports Modes – include how Tac-Deploy operates and how many spawns it can generate, Reactor Core’s strength and radius, the damage and durability of Torque’s gear and more.

Weapon Restrictions

The following will be restricted for competitive play.

—   Titan

—   Hades

—   VKM 750

—   MOG 12

—   SG12

Hellion Salvo has been removed from the restricted weapons list and has been re-enabled in competitive play (Updated 11/15)

Rocket Launchers have traditionally been restricted from competitive Call of Duty due to free fire functionality and the damage that they apply to other players. However, they will be permitted in Call of Duty: Black Ops 4 competitive play after a tuning adjustment has been made to significantly reduce damage to players.

The ultimate goal of keeping Launchers in play in competitive is to serve as a tactical counter to equipment and scorestreaks exclusively, and not affect player-to-player combat.

For that reason – specifically when selecting Esports settings in custom games, which will be added to the game in the near future – damage to players from Launchers will be dramatically reduced, such that it will be insignificant.

Other Restrictions – Updated January 29:

The following will be restricted for competitive play.

Attachments:

—   High Caliber

—   High Explosive

—   Laser Sight II

—   Max Load

—   Rapid Fire

—   Rocket Cache

—   Steady Grip

Optics:

—   Fast Lock

Perks:

—   Gung-Ho

—   Skulker

—   Team Link

—   Tracker

Wildcards:

—   Overkill

—   Primary Operator Mod

—   Secondary Operator Mod

Scorestreaks – Updated March 1:

—   UAV

—   Care Package

—   Counter-UAV

—   Sentry

—   Mantis

—   Dart

—   RC-XD

-Drone Strike

-Strike Team

-Sniper’s Nest

Gear:

—   Acoustic Sensor

Lobby Settings

In all modes, some standard game settings will be changed, including:

—   Friendly Fire enabled

—   Battlechatter disabled

—   Revenge voice disabled

—   3rd Person Spectating Disabled

—   3rd Person Gestures Disabled

—   Gesture Camera Controls Disabled

—   Team Assignment – Open

—   Announcer – Enabled

Check out the rule set here.

comments below