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

Activision and Infinity Ward have finally added the ability for players to chose to be a female solider in Call of Duty. With Ghosts’ new Character Customization feature, you can now chose if you want to be a male or female character.

Even more important, Infinity Ward has designed the male and female character to be the same size.

“Even on the female characters, we can’t make them smaller,” Rubin said. “They have to have gear on them that makes them the same size as male players. We need to be fair. It has to be fair from a gameplay standpoint.” As a result, the female soldiers may appear to have slightly differently-shaped bodies, but the areas that count as their bodies as far as the game’s bullets are concerned will be the same shape as men’s. “They might look differently, but they’ll fill the same area so that your hit-boxes aren’t out of whack.”

Rubin also spoke on about how and why previous games didn’t have these soldiers:

Past Call of Duty games didn’t have a female character because all the characters were rendered as male soldiers.

“We really want players to feel more connected and engaged with who they are as a player,”Ghosts executive producer Mark Rubin told me earlier today. “We felt that that was something that casual players, who are a huge portion of our fan base, would benefit the most from.

“Our fan base is huge. We cover such a dramatic range of people who play our game that we wanted to be as inclusive as we possibly could with character customization. And that’s where the idea came from. Why wouldn’t we have a female [option] then?”

And now because of the new engine, they are able to add such new features:

“A lot of it was the engine,” executive producer Mark Rubin told Kotaku in a new interview. “Our previous engine would not handle that. The way memory worked in the previous engine, it never would have been able to do that.”

“When we got a chance to re-tool the engine completely, that gave us the opportunity to make the change that we could have character customization,” he said. “That then gave us the opportunity to do female characters.”

SOURCE: Kotaku

 

comments below