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

Season 1 has arrived in Call of Duty: Modern Warfare with the latest patch update for the game on PlayStation 4, Xbox One, and PC.

Patch Update 1.10 deployed now and has activated the start of Season 1 for the game. Patch Update 1.10 is 15.1GB on PS4, 18.5GB on Xbox One, and 20GB on PC.

“Since Modern Warfare’s launch it’s been great sharing a steady stream of new playable content, but today’s launch of Season One takes things to a new level for all players. We’re rolling out multiplayer maps like Crash, Vacant and Shipment; Gunfight maps Cargo, Atrium, and Shipment; a Ground War map Port; three new multiplayer modes; five new Special Ops experiences and two new weapons,” said Patrick Kelly, Co-Studio Head and Creative Director, Infinity Ward. “This is the largest free content drop in Call of Duty history, and we’re excited that everyone can play all of this new Modern Warfare content together across all platforms.”

This new update brings a variety of bug fixes, the new Battle Pass, new content – including the Item Shop and new weapons, – Crash MP map, and two new Gunfight maps. More content will be released throughout Season 1, including additional MP maps and Gunfight maps. Check the post HERE for the latest on when the content is coming.

PATCH NOTES:

PLAYLIST UPDATE:

Added:

  • Crash 24/7
  • Port added to Ground War
  • Reinforce
  • Added Rammaza and Gun Runner to TDM 20 and DOM 20
  • Added night maps to Hardcore TDM, Search and Destroy, Cyber Attack

Removed:

  • Gun Game (available in Private Match)
  • Shoot House 24/7
  • 2v2 Gunfight Tournament
Post image

GENERAL FIXES:

  • Riot Shield:
    • Tuning to how the Riot Shield protects against grenades when thrown at the players’ feet
    • Reduced explosive damage within certain ranges
  • Fixed a bug where the final killcam would appear under the map when a player got stuck by Thermite or Semtex on the lower part of the body
  • Fixed an issue where players stuck inside the Infantry Assault Vehicle would not take damage from Thermite
  • Fix for a bug where attempting to scroll to the bottom of the Recent Players list could cause the list to read “No Recent Players” and return to the top
  • Gunfight (private match): Fixes ‘Win by Two’ setting to end the game properly once the conditions have been met

Missions and Challenges:

The following are now fixed and have had their descriptions updated as needed

  • “Close and Personal”
  • “Perks of the Job”
  • “Bloodthirsty Killer”
  • “Destroy Ground Killstreaks” – All player-driven vehicles will count towards this launcher camo challenge
  • “Get 50 kills while an enemy UAV is active” – description updated to reflect that the Ghost perk needs to be equipped in order to complete
  • Combat Knife challenge descriptions updated
  • .357 camo challenge
  • Various updates to other camo challenges
  • Fix for Officer Challenge completion notifications not appearing on screen

Killstreaks:

  • Improved effectiveness of FMJ on Killstreaks
  • Fix for the Cluster Strike dealing damage inconsistently when targeting a VTOL jet

Weapons:

  • .357: Buckshot: reduced damage range, reduced effective hip fire damage. Tuned spread adjustments from barrel attachments
  • Menu damage stat bar adjustments for miscellaneous LMGs
Post image
  • Fixed a bug where the informant can be dropped in bad positions/near enemy soldiers in Operation Harbinger
  • Added a checkpoint after the third hack on Operation Brimstone
  • Fix for a bug where players could become stuck after going into last stand while breaching the trains on Operation Brimstone
  • Enemies in white trucks now exit their vehicles

KEYBOARD AND MOUSE

  • Leaderboards will no longer display complete gamertags. This should help higher profile leaderboards users from receiving too many invites
  • Fixed an issue where players would not be able to mantle while strafing with keyboard and mouse
  • Increased the turn-rate when aiming with a tank
  • Adjusted the camera orbit turn-rate while driving a vehicle using keyboard and mouse
  • The keybind “Vehicle Camera Recenter” is now linked to Melee by default (default on E / Mouse 4) and the re-centering of the camera has been improved

COD CASTER

  • Improvements for the camera transitions with Free Camera and Aerial Camera
  • Added a Killstreak view option when using the Portrait List
  • Added arrows under the players when using the Aerial Camera view
  • Added a skull icon on the Minimap where players die

PC

Shaders

Fixed an issue that forced shaders to be fully re-compiled after each title update. Shader installation should be expected mainly for new content, drivers update or changing the video card. New optimizations or bugfix that require modifying the shaders can also trigger part or the totality of the shaders to be re-compiled.

SOURCE: Reddit

comments below