{"id":119950,"date":"2020-10-27T20:03:00","date_gmt":"2020-10-27T20:03:00","guid":{"rendered":"http:\/\/www.gamasutra.com\/view\/news\/372663"},"modified":"2020-10-27T20:03:00","modified_gmt":"2020-10-27T20:03:00","slug":"dont-miss-looking-back-at-left-4-deads-dynamic-ai","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2020\/10\/27\/dont-miss-looking-back-at-left-4-deads-dynamic-ai\/","title":{"rendered":"Don&#8217;t Miss: Looking back at Left 4 Dead&#8217;s dynamic AI"},"content":{"rendered":"<p><strong><i><small> The following blog post, unless otherwise noted, was written by a member of Gamasutra\u0092s community.<br \/>The thoughts and opinions expressed are those of the writer and not Gamasutra or its parent company. <\/small><\/i><\/strong> <\/p>\n<hr>\n<p><em>This article originally appeared on&nbsp;<a title=\"The Discomfort Zone: The Hidden Potential of Valve\u2019s AI Director\" href=\"http:\/\/www.dashjump.com\/discomfort-zone-valve-ai-director\/\">dashjump.com<\/a>.<\/em><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-619\" title=\"Left 4 Dead\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2020\/10\/dont-miss-looking-back-at-left-4-deads-dynamic-ai.jpg\" alt=\"Left 4 Dead\" width=\"550\"><br \/><span><br \/>Remember&nbsp;<\/span><em>Left 4 Dead<\/em><span>? It\u2019s highly likely you do; its 2008 release was heralded with tons of fanfare and a&nbsp;<\/span><a href=\"http:\/\/www.destructoid.com\/valve-to-spend-10-million-pimping-left-4-dead-on-tv-billboards-and-buses-107124.phtml\">$10 million marketing spend<\/a><span>&nbsp;that showed Valve meant business. The push paid off \u2013 as of October 2012, the game, its 2009 sequel and additional DLC have garnered the series over&nbsp;<\/span><a href=\"http:\/\/www.gamespot.com\/news\/left-4-dead-series-sales-hit-12-million-6397450\">12 million sales<\/a><span>.&nbsp;<img decoding=\"async\" class=\"mceWPmore\" title=\"More...\" src=\"http:\/\/www.dashjump.com\/setup\/wp-includes\/js\/tinymce\/plugins\/wordpress\/img\/trans.gif\" alt=\" So why, in the age of endless zombie games, did this particular zombie game do so well?\">So why, in the age of endless zombie games, did this particular zombie game do so well? And more interestingly, why has Valve not released any new installments since 2010, after rapidly developing a sequel and multiple DLC packs?<\/span><\/p>\n<p>An obvious answer to the first question is the sense of authentic cooperation created by the game\u2019s mechanics, afforded in no small part by the \u201cDirector,\u201d the much-admired AI system that generates random enemy encounters; prompts changes in the environment; and adjusts the placement of items players find, all based on a calculated \u2018stress level\u2019 for each player. For the first time in a game, an AI entity could modify multiple elements of the level on the fly for a tailored experience every time. It\u2019s perfect for zombie games, right?<\/p>\n<p>Wrong. It\u2019s perfect for EVERYTHING.<\/p>\n<blockquote>\n<p>\u201cWe set out to create a first-person four-player game in which the action changes each time it\u2019s played. We wanted to use procedural narrative to simulate stories because, in a multiplayer environment like this, we felt a more linear, scripted approach would not deliver in the same way.\u201d \u2013Gabe Newell<\/p>\n<\/blockquote>\n<p>There\u2019s a reason Gabe calls what the AI Director does procedural narrative, and not procedural zombie spawning. All throughout the&nbsp;<a href=\"http:\/\/www.edge-online.com\/features\/gabe-newell-writes-edge\/\">piece he wrote for Edge<\/a>&nbsp;as part of a PR push for&nbsp;<em>L4D<\/em>, he hints broadly about the implications for cooperative games of all types, as well as single-player games. The promise had already been recognized internally at Valve long before the game debuted; the rest of the industry just never caught on.<\/p>\n<p>But back to&nbsp;<em>L4D<\/em>\u2019s use of it in particular. One thing to note is that the AI Director approach is not dynamic difficulty. Dynamic difficulty has been around for a while, and is largely based around the idea of the system making minute adjustments to existing values in order to raise or lower the game\u2019s difficulty. For example, In&nbsp;<em>Max Payne<\/em>, the system would make tweaks to enemy health and the degree of aim assistance based on how well\/poorly you were dominating\/getting wrecked. The end result was a tighter game that never felt too easy or too hard; but all the same, each playthrough was identical.<\/p>\n<blockquote>\n<p>&#8220;This is what makes procedural narrative more of a story-telling device than, say, a simple difficulty mechanism.&#8221; -Gabe Newell<\/p>\n<\/blockquote>\n<p>Apparently, a similar tact was used in&nbsp;<em><a href=\"http:\/\/www.destructoid.com\/good-idea-bad-idea-dynamic-difficulty-adjustment-70591.phtml\">Half-Life 2: Episode 1<\/a><\/em>&nbsp;and&nbsp;<em>2<\/em>, where you would receive different items from crates depending on your health status at the time you smashed it. Again, more than anything else, this kind of adjustment on the fly would help level the playing field without altering the experience too much \u2013 the core experience is still the same. This is why the AI Director is different \u2013 using player activity data, it sculpts a dramatically different experience that fits perfectly with what players are capable of and that engages them on a primal level, since&nbsp;<em>L4D<\/em>\u2019s focus is a survival\/action\/horror hybrid.<\/p>\n<div class=\"mceTemp\">\n<dl id=\"attachment_622\" class=\"wp-caption alignleft\">\n<dt class=\"wp-caption-dt\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-622 \" title=\"Max Payne\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2020\/10\/dont-miss-looking-back-at-left-4-deads-dynamic-ai-1.jpg\" alt=\"Max Payne\" width=\"225\" height=\"169\"><\/dt>\n<dd class=\"wp-caption-dd\">Max Payne&#8217;s dynamic difficulty system helped keep battles tense, but they were always the same.<\/dd>\n<\/dl>\n<\/div>\n<p>But if you remove the zombies, health packs and clich\u00e9d apocalyptic scenarios, you\u2019d be left with a core truth of what this system affords: instant eviction from the comfort zone. While the comfort zone is a nice place to hang out in, in life as well as in games, the returns diminish quickly since you\u2019re essentially in a suspended state in which no learning takes place.<\/p>\n<p>This is why games that, on paper, should be exciting and thrilling prove to be boring despite the number of explosions, particle effects and screaming marines that fill the screen. Disruption of the expected, when you\u2019re pushed into a new experience and enter the discomfort zone, is the thing ultimately responsible for you learning more about the system, your recourses and your capabilities, and is what makes you better at playing the game. While it\u2019s stressful at first, this dynamic proves to be more pleasurable in the long run.<\/p>\n<blockquote>\n<p>\u201cGoing forward, we\u2019re definitely going to use some of the things that we\u2019ve learned \u2013 what worked and what didn\u2019t work \u2013 with&nbsp;<em>Left 4 Dead<\/em>&nbsp;not only in multi-player but also in our single player games in the future.\u201d \u2013Gabe Newell<\/p>\n<\/blockquote>\n<p>So why aren\u2019t more games using this principle? After all, it has been almost five years since Valve debuted the Director. The only reasons I can think of are the prohibitive complexity of creating such a system, and simple laziness. Perhaps this system really is only suited for horror games, you say? How could similar systems even be implemented in other games? Let\u2019s take a look!<\/p>\n<p><strong>Racing<\/strong>. Create courses with dynamic events, similar to&nbsp;<em>Split\/Second<\/em>&nbsp;\u2013 though instead of having events be scripted into the tracks, enable them on the fly to correspond with the player\u2019s performance.<\/p>\n<p><strong>Shooter<\/strong>. Think of a wide-open shooter with a single-player component, like&nbsp;<em>Halo<\/em>&nbsp;or&nbsp;<em>Battlefield<\/em>. Instead of scripted enemy waves attacking from the same direction every time, why not have them drop in via parachute or dropship, launch assaults in vehicles from over the horizon, or spawn mini-bosses where you\u2019d normally expect a battalion?<\/p>\n<div class=\"mceTemp\">\n<dl id=\"attachment_620\" class=\"wp-caption alignright\">\n<dt class=\"wp-caption-dt\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-620 \" title=\"Split\/Second\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2020\/10\/dont-miss-looking-back-at-left-4-deads-dynamic-ai-2.jpg\" alt=\"Split\/Second\" width=\"333\" height=\"187\"><\/dt>\n<dd class=\"wp-caption-dd\">Split\/Second&#8217;s track destruction is scripted. Imagine if it was dynamic, based on the player&#8217;s stress level.<\/dd>\n<\/dl>\n<\/div>\n<p><strong>RPG<\/strong>. In a story-driven RPG that focuses on dialog, should you grow closer to certain NPCs, why not have them drop plot bombshells that threaten your relationship thus far \u2013 and better yet, do it in the middle of a climactic battle?<\/p>\n<p><strong>Sandbox<\/strong>. In a&nbsp;<em>Deus Ex<\/em>-style sandbox game, why not have Director-triggered EMP events temporarily cut off access to certain augmentations, forcing you to adapt to different combinations of powers you wouldn\u2019t normally combine? Remember, the Director would know which combinations you\u2019ve been using regularly.<\/p>\n<p><strong>Arcade<\/strong>. In a&nbsp;<em>Super Hexagon<\/em>-style reflex\/puzzle game, why not sculpt purposeful obstacles for the player that build upon what they\u2019ve just overcome, instead of simply swapping in components from a pool of prefab barriers?<\/p>\n<p><strong>Beat \u2018em up<\/strong>. In a&nbsp;<em>God of War<\/em>-style melee brawler, why not have enemies switch up their attack patterns and weaknesses depending on the player\u2019s proficiency at dispatching certain enemy types?<\/p>\n<p>Of course, there\u2019s a fine line between pushing the player into the discomfort zone and unfairly screwing with the player as a way to extend replay value. In any of the above examples, the key to creating an authentic \u2018discomfort zone\u2019 dynamic is to make sure there are plenty of options available to the player under the new circumstances.<\/p>\n<p>If the goal is to encourage improvisation through immediate, unexpected constraints, this would fail if the player did not have adequate options for dealing with the new problem that\u2019s suddenly been foisted upon them.<\/p>\n<blockquote>\n<p>&#8220;One of the theories of fun we use is that the more ways in which the game is recognizing and responding to player choices, the more fun it seems.&#8221; -Gabe Newell<\/p>\n<\/blockquote>\n<p>The secret sauce of&nbsp;<em>L4D<\/em>, the reason why it was (and continues to be) such a hit, lies in attaining a balance in such a system. It lies in how it makes players anxious for what\u2019s next by making their moment-to-moment actions matter in a more truthful way than purely scripted sequences could.<\/p>\n<p>For developers and designers alike, I challenge you to think of how similar Directors can keep your experiences varied, your players fully engaged and your replay value unlimited.<\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"650\">\n<tbody>\n<tr>\n<td class=\"newsText\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"650\">\n<tbody>\n<tr>\n<td class=\"newsText\">\n<div class=\"post-entry\">\n<p><em>Ben Serviss is a freelance game designer working in commercial, social, educational and indie games. Follow him on Twitter at&nbsp;<a title=\"Ben Serviss on Twitter\" href=\"http:\/\/twitter.com\/benserviss\">@benserviss<\/a>.<\/em><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>The following blog post, unless otherwise noted, was written by a member of Gamasutra\u0092s community.The thoughts and opinions expressed are those of the writer and not Gamasutra or its parent company. This article originally appeared on&nbsp;dashjump.com. Remember&nbsp;Left 4 Dead? It\u2019s highly likely you do; its 2008 release was heralded with tons of fanfare and a&nbsp;$10 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":119951,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-119950","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/119950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/comments?post=119950"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/119950\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media\/119951"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=119950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=119950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=119950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}