All GTA, all day, since 2012

Grand Theft Game Design: AI, Singleplayer and Online


This time on Grand Theft Game Design, our on-going article series fleshing out the more technical bits of GTA 5, we'll be tackling the game's AI. In the past we've looked at static and dynamic objects, answering why the trees are indestructible, as well as instancing and interiors, looking at how multiple players can own the same property but have their own apartments. Today, you'll learn why the relatively well crafted and intelligent AI in the game's singleplayer goes retarded when switching to Online.

First of all, it's important to understand that GTA 5 is primarily CPU intensive. Different games are built and optimized differently, and while some will hog your GPU, others will mostly rely on your CPU and RAM. GTA 5 falls into the latter category, which is why a system with a top end graphics card and a mid-range CPU won't run the game at a steady 60 FPS on higher settings. The game's reliance on RAM is also why using SSD's doesn't decrease loading times.

When playing GTA 5's story mode, you might have made note of relatively intelligent AI when fighting enemies, especially police. These small tidbits usually show up in longer, drawn-out firefights, but you'll see unharmed opponents dragging wounded allies behind cover, call out your location to one another, try to flank you and more. They'll generally stick to cover and use some semblance of tactics even, though nothing particularly hard to outwit.

I mean, in the end, they're still just video game enemies with a pretty limited range of intelligence so don't expect masterful strategy and the like, but you'll see that the devs put effort into the AI scripting. However, the moment you go Online, all of that flies right out the window.

Police will just come at you with nary a care for their own bodily well-being and they sure as shit won't be dragging downed comrades out of harm's way. They'll make use of the cover system, but not much else. The reason for this is also why you won't be seeing any animals in Online.

Thanks to the server structure of GTA Online and the mere fact that this is a multiplayer game we're talking about, the CPU draw is significantly increased compared to playing single player. To keep system requirements consistent between the story mode and Online, Rockstar had to cut corners with CPU intensive features in Online, which meant axing the AI first and foremost.

So why wipe out the animals? They too possess fairly advanced AIs for the time and were pretty taxing on the system. Since they didn't much impact the gameplay of Online, they were cut. Since the game more or less wants you to do PvP combat unless in specific missions, enemy NPC AI was downgraded.

When it comes to heists, however, the NPC opponents you'll face will tend to have a greater measure of tenacity than those you mow down in Freeroam. Naturally the reason for this is that the heists are intended to be challenging, pseudo-end-game missions. In these cases, optimization was done in other areas, which ties back to instancing.

When you're playing a heist, you don't occupy the same, regular game world as you do in Freeroam, otherwise all those people in the lobby not playing a heist would come along and rain on your parade. Since you're kind of restricted in where you can go and what you can do while in a heist, the developers could afford to cut pretty much everything that you won't encounter normally, freeing up resources for running better AI in a multiplayer scenario.

If you look at other games, you'll generally see underlying differences between single player and multiplayer that don't immediately pop or aren't apparent. One of the most obvious examples is map size. Way back in the day, many of the great FPS classics possessed large, sprawling levels in their campaigns with all kinds of secret locations sprinkled about, while the multiplayer maps were comparatively tiny arena locations.

Sure, the reason for this was first and foremost a design decision. With a smaller map, players are more likely to find one another, therefore there would be less downtime. A mirrored or symmetrical map was also easier to memorize, making matches more frantic and fast-paced. However, the reason why the advent of large multiplayer maps, save for some notable outliers, is a relatively recent one is because (the average) older systems could either manage a large map or multiplayer, but not both.

Whenever the next time you bump into a particularly dumb pack of hostile police, you'll now know why they're so incompetent compared to their highly-trained terminator cybercommando singleplayer counterparts. Don't ask why the latter can pinpoint snipe you with a pistol from half the map away, because that is beyond us.

One Comment

Your email address will not be published. Required fields are marked *

Aron Gerencser

Aron Gerencser // Articles: 900

In the site's early beginnings, Aron was responsible for the bulk of the news posts that you'd find on GTA BOOM each and every day. He loves getting involved with the community and is an avid fan of all things Rockstar Games. Since then, Aron has become an editor across all the content that is posted on GTA BOOM. His journey with the franchise began with GTA 2 back when it was new (all the way back in 1999), and he was a gamer even before then. Graduating summa cum laude from Università degli Studi Guglielmo Marconi with a BA in Media Production, Aron has been a game journalist since 2014. When not writing, editing or playing, Aron is building models which you can find on Instagram and Facebook.