Journal #6737

Posted 13 years ago2010-08-28 15:09:43 UTC
Notewell NotewellGIASFELFEBREHBER
I've been thinking a bit about game AI recently. What makes an AI good opposed to bad. The answer
isn't how smart an AI is. It's how human it seems.

Look at HL2's Combine AI. They're smart (ish), they use tactics, throw grenades, flank, assess dangers, etc. But they don't seem human. Now, in HL2, that's okay; they're not human anymore, after all. But
that shouldn't be an excuse, not for any game. AI shouldn't be designed just for combat.
Now, look at Goldeneye's (the original, of course) AI. They patrol, they scratch themselves, they sneeze. If you shoot them, they don't just flinch from the impact of the bullet (like the combine do in
HL2) they flinch from pain. Shoot a soldier in the hand, he'll bend over in pain, maybe shake his hand. Shoot them in the neck, they might slowly fall to the ground, slowly dying from asphyxiation. For all
their blockiness and comparatively stupid AI, they seem more human than the combine in HL2 do.

Games need more AI that doesn't just stand around waiting for the player and then shoot. Look at the recent STALKER games; NPCs sleep, eat, wander around. The world doesn't revolve around the player, and that illusion of humanity and life is caused by the AI's idle behaviors. In video games,
Guards and Soldiers should guard things and patrol, chatting with any friendlies nearby, whether it's a passing guy on patrol, or the person the NPC is guarding a door with. Scientists should do science. Terrorists should patrol with varying degrees of unease, with a couple guys guarding the hostages, who huddle on the ground, or sleep, or eat their bread and water. Maybe talking quietly amongst themselves until a terrorist breaks it up. Dynamic or scripted, games need more NPC interaction, more idle behaviors.

And I'm tired of trying to sneak up on soldiers, while crouching and moving slowly, I might add, only to have them swivel around as soon as I get within a few feet of them. Unless you're making noise, or they can see you directly, NPCs should not detect you. If you're in a vent, directly above them, they shouldn't be able to always snap their heads up and start shooting. AI has always been too smart, perception-wise. If I want to use stealth for a change, instead of blasting everything, I should be able to
do so successfully, as long as I'm using the basic techniques from HL's hazard course! And hearing needs to be redone for 90% of AIs as well. Running/Walking around in a large military base, for example, shouldn't attract all the NPCs in the level, but a bit of unsilenced gunfire should attract some, with the amount of different shooters and the length of the combat being a key factor on how many come, and whether they run, walk, or tiptoe. The combat tree of
Idle > Alert > Combat > Search > Alert > Idle
Is no longer good enough, the way it's implemented, there need to be different levels of alertness, different levels of search, Search and Alert should go hand in hand if the player has triggered one of
them, and NPCs should start with varying levels of alertness. Maybe the map is set at night, and most of the guards in the building are tired and not expecting anything to happen. Maybe the map is set in a warzone, and there was just an attack on the outpost, so the guards on the outside are alert and waiting for more.

If we're capable of making NPCs with simulated emotions and dynamic AI, why the hell has no one implemented this stuff in full into a game? Even the AI that's heralded for being realistic doesn't have
all of these features implemented. You know what I think? Laziness. If the big companies can keep making mainstream games using no new tech that doesn't involve graphics, why would they spend the
effort on improving anything? The very notion of doing something that doesn't have an immediate personal payoff is lost on them.
Meanwhile, the few companies that might actually be both capable and willing to improve technology,
such as Valve, are too busy to do it. I think that as soon as Valve are finished Ep3, and are working on the 2011/2012 branch of the engine, they should pull a Valve, and implement AI like I've mentioned in the above 5-6 paragraphs, before anyone else is even near considering doing it. (Skeletal animation, facial animation and full, accurate physical gameplay anyone?)

tl/dr: JeffMOD rants about AI.

EDIT: And don't even get me started on flashlights and corpses in relation to NPC alertness.

16 Comments

Commented 13 years ago2010-08-28 16:38:45 UTC Comment #60658
Buy MGS.
Commented 13 years ago2010-08-28 16:52:48 UTC Comment #60659
^^This
Commented 13 years ago2010-08-28 19:26:31 UTC Comment #60660
While stealth is an integral part of the game, I want the choice to do it in more games, and it seems to use the basic alertness tree I've mentioned above as being outdated. And not enough games have patrolling guards these days, IMO.
Commented 13 years ago2010-08-28 20:24:54 UTC Comment #60665
And then there's the people that think cod has brilliant ai because the ai plays a animation whenever you shoot someone, EG you shoot someone in the leg they'll trip and then start running again, yeah, real brilliant to shoot someone with a .50 cal and they can run just fine afterwards.

You should pick up crysis, it may not have as many idle actions as stalker, but the ai is a hell of a lot better then the mainstream crap you get nowadays.
Commented 13 years ago2010-08-28 20:35:58 UTC Comment #60653
The original Thief games had some rather great AI for their time. But being stealth, it's kind of important.

The thing that makes HL2's AI look a little dumb is the way the Combine seem to just charge into the thick of it over using all their other tactics. Suits them as they're not exactly human, and fearless, but it doesn't look great.
Commented 13 years ago2010-08-28 20:36:03 UTC Comment #60661
Crollo: Yeah, I've heard that quite a bit. But you're only the second source I've heard it from. :\
I'm not even sure if my computer could run it, though I mean, I only have a dual core 3ghz processor and 4GB of ram.

Strider: Yeah, sadly the combine don't look or act real. And that's what counts, as my journal says.

And it seems the formatting of my journal is messed up by TWHL, since I just edited it to fix the odd 'new line' formatting issue...
Commented 13 years ago2010-08-28 20:49:25 UTC Comment #60663
I completely agree. Have you ever played the Commandos games? Granted, it's a different type of game, but the stealth elements (field of view, sneaking or running, darkness, shooting or stabbing, etc.) are all there in varying degrees of detail.

My favourite has always been Commandos 2. However in some regards I see all of them the same way as you. The alert status progression sometimes is not detailed enough, and definitely needs improving. And since this can be said of this game, which happens to be stealth-orientated, it surely applies to all others that aren't so thoroughly thought out.

You are right. The gaming industry definitely needs to work on improving AI.
Commented 13 years ago2010-08-28 23:53:00 UTC Comment #60654
lol crysis AI is TOO smart tbh. the difficulty is all over the place because of this. i spent a good amount of time stealthing, killing, getting shot HARD and then retreating and stealthing again whilst i regained my health... pretty frustrating...
Commented 13 years ago2010-08-29 03:29:54 UTC Comment #60666
Yeah unfortunately like most games, on the harder difficulty it reduces the 'cone LOF' which not only makes them hit you easier, but also makes it less possible for them to miss, which often times is a bit unfair.
Commented 13 years ago2010-08-29 04:26:05 UTC Comment #60657
I liked the hl1 AI on the slaves, they used to jump out - zap you, and then run off into some corner hiding recharging their zapper :P.
Commented 13 years ago2010-08-29 04:33:42 UTC Comment #60652
I've always felt that FEAR's replica soldier AI behaved miraculously human. The first game, not the second. They went full retard in Project Origin.

They were sneakable, they did use impressive tactics, and they actually interacted with and verbally coordinated attacks with their npc buddies.

It went so far beyond simple tactics like "throw grenade if there's no line of sight" and "hide behind a wall if there's a wall".
Commented 13 years ago2010-08-29 06:32:23 UTC Comment #60664
I totally agree with this status, that extra level of realism would be amazing in games. stalker was good like that but could be improved. commandos 2 was always fun, and crysis has quite clever ai also.
Commented 13 years ago2010-08-29 14:39:54 UTC Comment #60662
"lol crysis AI is TOO smart tbh." That's part of the point I'm trying to make; NPCs often do things a human can't or most likely won't, such as seeing the player when they're not in their LOS, or otherwise detecting the player when they're not visible or making noise.
Commented 13 years ago2010-08-29 15:18:01 UTC Comment #60667
FEAR's ai was good... But it was piss easy to pull off in a small room with some windows, it was all extremely scripted and it worked well in the environment, but the ai would have a extremely difficult time in a dynamic, open world situation due to the amount of scripting involved in the levels.
Commented 13 years ago2010-08-30 07:09:04 UTC Comment #60656
I agree with Strider, the Thief games had brilliant AI for the time. Bodies would be noticed, enemies would converse with each other, they would only notice you if you were in front of them and weren't in complete darkness. If it wasn't for the zombies it would be the best game evar.
Commented 13 years ago2010-08-30 14:05:57 UTC Comment #60655
FEAR and Splinter Cell Chaos Theory has my favourite enemy AI.
FEAR is great because they react to flashlight, sound, and anything within their view. You can sneak up on them, and at some points they even trick you during combat by doing unexpected non-scripted manouvers. Also, they sneak up on you from time to time. They even had a small but quite noticeable feeling spectum. They could be either calm, angry or afraid. Which you noticed on both their behavour and dialouge.

I enjoyed the chaos theory AI because it was very human. You could sit in the dark and observe as the AI did their thing. They reacted with fear and reason.
The only thing that was bad with it was if you tricked several soldiers into a perfect for ambush room and then started taking them out one by one.
They found the bodies, and reacted with fear and anger, but then they just started searching again. Even when there was only one enemy left. With any reason they ought to have got the hell out of there, or at least camp in a corner or something

You must log in to post a comment. You can login or register a new account.