Half-Life 2 - Advanced AI in Action
HTML-код
- Опубликовано: 8 ноя 2024
- A quick retrospective look at the stellar AI of Half-Life 2.
Many of you whippersnappers may be too young to remember, but one of the biggest complaints about HL2 arising shortly after its release was the confoundingly dumb AI. As in, downright rock stupid. Dumber than a bag of particularly unintelligent hammers. Well, it's been several years since then (Over four, to be exact). Have Valve finally patched these long outstanding AI issues in the mean time? You be the judge!
If you can't see them, they can't see you.
false
Black bear.
lol
+Anh Quan You copied mine.
This kind of behavior really happened in Blue Shift. Just face one side where you can't see the ennemy, and some of them (In some areas) won't do anything. You can even approach them, lay on their heads, kill them with the crowbar while they still don't see you. I'ts only after you make eye contact with them, that they start to fight. This maintly applies to soldiers.
"STOP RIGHT THER-- oh wait, just a Mayonnaise Jar-- WAIT THERE HE IS! nope, still just a jar..."
..Must've been the wind.
We can't agree for lost like this, we can't just shoot a jar od good mayonnaise
@@mmafia333 It wasn't even in the refrigerator.
Wait... it’s mayonnaise?
@@sabotabo7476 not realy xD
@indepemdentthought if that was't open it's fine
*_Advisor: "Remember, DO NOT SHOOT ANY JARS OR CANS."_*
*_Combine: "Ok."_*
Underrated
Lol fucking hilarious
Wait so if he can't see me I can't see him? Oh ok!
These aren't Combine. They're just the human civil protection. The combine have thicker armor.
At the end of the video I waited player teabagging combine xD
Commander: "Remember, if you see this guy's FACE, start shooting!"
Soldier: "I gotcha, commander."
MorseKawa You know where I can find Pat Tillman?
MarcusAurelius No idea. Ask Gordon.
+MorseKawa Cpl. Dorkus reporting for duty, sir!
Wait til you see the whites of their eyes
soldier:roger.
later.....
commander:shoot that guy face!
soldier:which face commander?
commander:gordon!
soldier:i did not see the gordon face.
commander:you are fired!!now other soldier shoot him!
other:which him?
will not continued........
I don't think the cop couldn't see Gordon, I think he just thought "What the fuck is he doing?"
10-103m
RescoeZ good one
dont want to, wont.
Gordon silently and slowly approaches Metro Cop with jar of mayo, periodically staring around the edge of the jar with one eye......
*Metro cop gives up turret*
That's some highly hazardous material, BIOhazardous. He didn't want to shoot some can that could leak some form of gas that kills EVERYTHING in range.
"shoot man, not mayo"
- Abraham Lincoln (1947)
lmao
Why did I laugh at this for so long
Thank you for gracing me with this comment lol
1947 lmao
Sadly this was before his Assassination by John F Kennedy to take the throne of China for himself a real tragedy
Bet Snake feels real stupid at this point for carrying an entire box around this whole time for something he only needed a jar for...
+shadowslayer205 mayonaise
+TheGamingBaconator Spunk Mayonaise
NEVER doubt the power of the Box! :D
Well the jar only works on one person. The box works on myltiple people
Aleph Kasai not like its hard to carry a few jars around. compared to a bigass box
"Where did that jar of protein get an HEV suit?"
At Black Mesa.
Duh.
-MasterLobster- Poor Aperture Science, they were leeched off of by Black Mesa
It's the missing HEV helmet
It's like the Skyrim trick of bucket covering the head to steal everything.
That one makes more sense lol
This is more like covering your own head with a bucket, pretending other people don't exist and stealing everything
More like putting a pot of mayonaise on your head and going on a crusade while being seemingly untouchable
Does that still work???
Erol B. When did it stop working?
the door AI at 0:33 is superb
+PilotRedSun Hi
hi
You dare have the audacity to comment on a different video?
You will regret that comment.
still better than fish ai
"IF I CANT SEE THEM"
"THEY CANT SEE ME"
GENIUS
"If you can't see my mirrors, I can't see you"
**666 intensifies**
The Hitchhiker's Guide to the Galaxy.
Can see them implies they see me.
If and only if doesn't apply here.
If you study discrete maths
@@そなんですか What if they're wearing a blindfold? How can they see me back?
It’s important to explain what’s happening here. The AI can see you behind the jar just fine. Unfortunately, enemies are programmed to aim at a specific part of your body. If you block your center mass with something, it thinks you are behind cover and thus immune to bullets. Case in point, once the AI dismounts from the turret, it tries to maneuver around the jar.
Basically most FPS games in a nutshell. You have no body, hence no visible legs. Your hands and weapons are just view-model rendered separately from the world and only visible to you. Your bullets, grenades and everything basically comes from a point where your eyes are. And the enemies basically targets your eyes because that's where you are exist.
not actually whats happening here. enemies can shoot you anywhere
they're programmed to always wait until you can get a fair shot on them, so when you keep them out of sight with the jar, the fairness-check prevents them from shooting.
Metrocops wont attack unless you can see them and this rule also applies to metrocops dropping barrels at you they wont do it unless you can see them
so the AI has Dynamic Cover Orientation 🤔
@@udhi_gn3893 This can be easily avoided, instead of defining point, just let AI aim for any visible part of collision mesh. That should work, but HL2 was released fair time ago, so I guess they need to optimize wherever possible
"this one time i was being shot at by a turret so i hid behind a jar of mayonnaise"
badass...
Damn son
*put his hands on his eyes*
Where is the Freeman?
*remove his hands*
There he is!
*put his hands on his eyes*
Where is the Freeman?
*remove his hands*
There he is!
+Reflexion555 amazing ice age references
+Zip Zap it's a game called peekiboo and it existed long before ice age was made
yeah, because it was in the ice age, which was like, 10,000 years ago
***** *facepalm
Are you fucking serious, Zip Zap?
It’s crazy how good the graphics are for game from 2004
Graphics in the first half life were pretty good too and that's for 1999..
@@vitamincisgoodforme no they weren't
@@vitamincisgoodforme 1998*
Doesn’t Half Life 2 use the post-orange box engine though?
it's crazy how good the video quality is for a video from 2009
Gordon is using the can as a hostage
White Silla hahahahahahhaah this one is the best I found :-D
The final words of Gordon's latest victim: "pls don't hurt tha mayonnaise! ;_;"
lmao hahaha
can has three letters
gordon is using half life 3 as a hostage, the combine is a fan of half life
Drop the can!
and they took over the world in 7 hours... how?
Metrocops are regular people who willingly volunteered without being modified and they serve as some sort of police force, not actual part of Alliance's army.
What dumbasses like you think a occupation force took over Earth in 7 hours?
Gold and Diamond The fact that the characters themselves refer to it as "the seven hour war"
Gold and Diamond Just taking the joke a bit too seriously.
*Overused joke
10 years later...
RUclips algorithm:
HEY DUDE, WATCH THIS!
It seems there's many of us. :/
RUclips Algorithm: "TODAY I will throw this random vintage video to everyone's Recommended!"
Yup! Same
Happy it did haha
@sneksta it's not a joke it's the truth
well as HL3 will be released this year
I like the think that the Metrocop doesn't shoot because he's just so dumbfounded at the sheer ridiculousness of someone holding a barrel in front of them when advancing on a machine gun
The AI in scripted sequences is really... special. Like those guys in the Combine dropships, who don't realize that jumping out one at a time is not a great strategy when there's a guy with a shotgun outside.
Problem is that Combine Dropships don't shoot at short range.
Also, rappelling down in front of a speeding airboat. Truly "Special" Forces material.
I'm pretty sure they used to, but one of the updates broke it and it never got fixed. I think it's fixed in HL2: Update tho. Can't be sure.
Every time I play the game, when i get to the Lighthouse Point fight, I always use that to my advantage. XD
If you only put the jeep in the garage a little bit when your meant to, you can keep it for the lighthouse battle. Place it in front of the dropships and prepare to be amazed
You guys act like no one has ever snuck up on you behind a jar of mayonnaise...
Hahahaa
Best comment
And they said the Combine took over Earth in Seven Hours...
dough1595 Sometimes, no one expects super robots capable of taking over multiple species and enslaving them to fight for them to be too dumb to see their enemy through a jar.
+dough1595 Both the Combine soldiers and CP's appeared AFTER the seven hour war.
prospectus REALLY?
+dough1595 rly
+dough1595 Combine soldiers are modified humans, civil protection are human volunteers. Nobody knows what the actual head species of the combine are, but they invade and modify various species across the universe and across different dimensions. They use these conquered species by modifying them and re purposing them to suite their specific needs, combine soldiers are re purposed humans and the bulk of the combine army occupying earth for example. Remember the advisers? They are probably just another re purposed species with the purpose of overseeing and managing the occupation of earth, though it is speculated they may be the actual combine (probably not though). Also, drop ships, gunships, and striders may also be re purposed species, or they may just be created through some sort of organic engineering.
"I once killed a man by holding a jar of expired mayonnaise up to my face, squat-shuffling towards him, and gunning him down with his own turret.
It was a beautiful day."
its medicine.
Tucker Mason I bet you're fun at parties :P
Liara Ashlynn Jennings The Most Fun :D
Yes
Should be a quote for Freeman's Mind 2
Aah. The old "they can't see me if I can't see'em" trick.
"calm down buddy, i got your pills right here"
PILLS
Pills are good pills are good
Ey man, that skull on your profile picture... Isn't it from Team Fortress Classic, the RED team's flag?
Quick, Gordon, raid the Miracle Whip factory and procure what's left of Earth's mayonnaise supply. It's the only way to defeat the Combine.
500 likes, 4 years old and no comments on this one...
@FireStreamGun You'd at least expect Kleiner to be in on this
I guess Mayonnaise is an instrument....for combat warfare!
Patrick Star shall be pleased.
- SHOOT HIM!
- But command, that can is considered sacred in tribe I came from!
-Then what the hell is it doing in our outpost?!
CPs really have a thing for cans, don't they?
holy shit dude, you're everywhere
And for everybody that don't know! This is the famous BlueShit199! The most hardcore half life fan!
***** o.O
An Ordinator a bomb?
I swear this guy is everywhere. and everytime he pops up someone quotes deus ex
"Computer might be clever but human beings are much smarter."
- Jack ma
Except for Jack Ma himself (Yeah I saw the cringeworthy video with Musk and Ma discussing A.I.)
Cringeworthy is depends on how woke you are bud
@@MarkRijckenberg Elon Musk is a narcissist incacable of facing people who don't agree with his views. We've seen it during the whole Thai cave rescue saga and in his debate with Jack Ma as well. Jack was simply stating that we can come up with new solutions for new problems, solutions we haven't even thought of yet and disagreed with Musk's doom and gloom scenario regarding the future of AI. Even Google's Eric Schmidt says Elon is wrong so you fan boys need to chill. He's not iron Man.
Mean Max are you defending someone who replies « let’s talk about something fun » when musk tries to explain things in a scientific manner ? dude was dumb af sorry man but his opinions are so backwards
Computers are not clever. They are simply fast at calculating and good at doing very very specified tasks
that's what you get for making the player a floating point
WorldoftheLegends Yep
More like for stopping the AI from shooting when their target, the player's CAMERA, is obstructed.
Seriously, you cannot use integers for 3D games, much less ones that have as much granularity in movement and the like as HL2.
I'm not sure if he meant "floating point" as a memory type, but literally a point that is floating in the game space.
Which makes even less sense, because the player isn't a floating point in the world.
That was clearly a protein powder tub. Maybe back on thier world they worship a large protein powder container and are programmed to not harm thier Lord.
those cops are actually just regular people. If that was a soldier, however, you'd be right.
MarcusAurelius That'll be said in hl3
MRW the insane AI is actually a piece of half life lore.
It’s they are.
+Preston No.
*takes a can*
- WHERE, WHERE DID YOU DISAPPEAR?!
The Civil Protection officer telling you to pick up that can wasn't abusing his power. He was actually a double agent teaching you how to prevent the combine from shooting you.
must have been the wind
At least they aren't wasting bullets.
which are not wasteable
Buy our special can and you defeat the Alliance easy! Only today for 9.99$!
Your profile pic goes so well with your comment XD
Daw, Otter!
Missed out on saying you "can" defeat the alliance.
Player: picks up a prop
Combine: [sweating intensifies]
*laughs in combine sniper*
The AI in the game is actually nice. Spawn some Overwatch Soldiers and some rebels. Reduce the accuracy of the Rebels to the same level of the Combine, and place the NPCs in some sort of urban enviroment with multiple obstacles and routes. The Combine AI will almost always win under those circumstances. Soldiers act as a squad and have a squad leader, (usually one of the soldiers with an AR2) and will give orders to one another. They'll try to flank their target if it's behind cover and/or throw grenades. If a soldier needs to reload he'll retreat to the nearest obstacle and the members of his squad will advance. They'll also contact other squads/single units by radio. Their AI easily beats Call of Duty Modern Warfare AI, mainly because CoD AI is based around finding cover and staying there until the area is clear. And let's not talk about Battlefield 3 allied AI, which is non existant (I checked, and Allies are just scripted models from what I can tell, they fire but they don't actually hit anything).
The problem is, Rebels have more health and better accuracy than soldiers (they're supposed to aid the player, if they end up dying every second then they would be useless) so the Soldiers tend to die easily and early and they can't employ their tactics. They're also coded to die in one hit against Antlions (otherwise the Bugbait would be useless). The player also haves more armor and deals equal or more damage per second than an entire squad.
Now, in this specific scenario:
-This specific metrocop was coded to stay there using the stationary pulse machine gun thing. The cop is registering the item as an undestructable object in front of the player and therefore it's AI decides to flank the player (this causes the npc to stop firing the stationary gun) but it can't move due to the code that prevents the npc from leaving the gun until the player is near enough to the barricade. The AI registers your existance behind the object, it never lost you, however the AI conflicts with the map coding and can't do what it wants to do. It's fixed now though. I remember that I grabbed a barrel in Nova Prospekt and the turrets NPC's kept firing at me. Soldiers would always flank me though, so I don't know if this scenario was fixed.
+Maverick DeCero
Jacob Gullick says,
"DUDE SHUT THE FUCK UP YOU STUPID SHIT.. the AI WAS FUCKING STUPID AS SHIT!! LOL hahahaah you're a complete fucking weirdo in denial... stupid fuck! LOL"
This comment is not in response to the video, its a response to the circle jerk of repeated criticism of the AI.
+ArticWolfProductions "omg da cod ai bad xD"
And of course like every other internet pseudo-reviewer, you must make comparisons to CoD.
Also... "Coded"
Jace Connors Indeed. I mean it's nothing revolutionary, and it's kinda generic, but is that seriously a bad thing? The only fucking complaints and criticsms I see about CoD are:
>teh aim down sight ;-;
>teh gunz r ez ;-;
>boo hoo blah blah
Like... I can't think of a single valid criticsm against CoD, other than they copy and paste their games and release a new one every year, and even then, if you clump every CoD together into one single game and judge that game, it's seriously not all terrible.
It's a simple FPS game that you can kill people in. It's not a full of bullshit artificial difficulty shooter like CS:GO, and it's not Battlefield. It's just an FPS. It doesn't try to be anything else.
Sometimes I like playing a game that is simple and fun. But unfortunately the pretentious gamer community doesn't like simple games anymore I guess.
Revan114 Number 1, I never said CoD's AI is bad. That's the work of your interpretation. Number 2, I'm using CoD and Battlefield as examples because they are the most popular FPS games today...
Jace Connors Yeah Halo should be its own seperate thing, and CoD should be its own seperate thing and do its own stuff too I agree.
Unit down at uh... 8 14 response code 3
Bacon Invader "Possible jar biotics in the area, I repeat, living jars"
Stellar voice acting! Sounds like an actual radio call
"Is Mayonnaise an instrument"? 🎷
Developers: Yes it is an *INSTRUMENT OF WAR!*
is there a petition to implement this feature in real life
sign me up
Conversation With overwatch : "But he had a can floating in is face!"
"A *CAN*? That explains everything!"
xD
+Nicolino Willy "LOOK OUT! HE'S GOT A CAN!"
"SHIT! WE CAN'T SHOOT AT HIM, IT MIGHT END THE WORLD!"
*Black hole is created*
Zip Zap *Citadel collapses*
If you see Dr. Breen, tell him I said _F-_ *sees citadel collapsing in distance*
*Barney screams like nick from l4d2*
2009: No
2010: Nah
2011: Nope
2012: Wait
2013: Keep holding
2014: Stop
2015: Not yet
2016: Still no
2017: No again
2018: Keep waiting
2019: *LETS RECCOMENDED IT*
The Aussie Gamer so.. i will wait again it in 2032, Bye!
*FUNNY*
*Welcome to RUclips where I get criticized for a single comment*
"D-D-DROP THE FUCKING CAN.
I-I SAID DROP IT YOU SON OF A BITCH.
SHIT, COMMAND HE AIN'T DROPPIN' IT WHAT DO I DO?"
Just trying to take out the trash, is all.
nice icon
Sh*t...uuuh. ..
Don't panic!That's important...What else ummm...
I honestly don't know,this never happened before.
Hang on,I'm gonna ask Jerry.
So umm...Jerry said that the guy you're fighting is probably dumb and he isn't a real threat.
Just walk straight at him and punch the f*cker,he won't shoot.
Approach, and repeat ultimatum in an even firmer tone of voice. Add the words, "or else".
to be fair, it is a metro cop
Ahem... WUDDAYA SAY N-(banned)
"Retrospective look"
>Upload date 2009
>HL2 release date 2004
Very retrospective :D Thank you
I remember a story like this. Yeah, it was from my brother who served in Iraq. He was on Patrol until a random guy with a jar came running out from a corner. People tried shooting him but wherever he pointed the jar all the guns jammed.
Niko scary
I am from iraq,
Am i a joke to you?
Some voodoo ish there man
Oh hello XD
@@ismaellayth Yep. Why not
*Half Life 1:* Advanced Roach AI
*Half Life 2:* Uhh...
+Ethan Saucier Half Life 2: Flanking, covering and many more advanced combat features. This is just the one CP.
dead squid on keyboard, Finally
Ethan Saucier I'll have uhhhb BONELESS ai
*Half Life 3:* Superintelligent AI
They are pretty intelligent for the time. I think FEAR did a better job with programming the AI to try to flank and suprise the player. But it was a few years for FEAR to come. This was the best back in the day.
Anyone else got in recommendation in September 2019 ???
Yes
Mee
Me too.(Thailand)
wtf is wrong with these recomendations?
No
The game with the best AI of all times is most definitly Far Cry. If you actually go inside the level editor, the amount of tools available to give the AI choices was insane. They literally were able to flank you in team setups depending on your position etc, almost never got stuck, and could be instructed to do certain things on conditions.
HL2 released at that same time, just had different AI. This is an isolated case though, because it's related to the turret. Every turret sequence in HL2 has this problem, but once het gets off the turret it's fine again.
Are you sure about the turret thing? In this video it seems like he still only shoots when the jar isn’t in front. He is able to start flanking around the jar once off the turret at least.
It's that the AI thinks he's behind cover since he is blocking part of his body with the jar. The AI is moving around the area to try and reach behind his cover.
*The NPC will only attack when it is visible to the player.* This happen because the developers did not want the player to be killed in a frustrating way by a hidden NPC.
nah, just lazy coding
@@MrGermandeutsch literally fucking how
@@midnightdragon67
*_with ease_*
@@MrGermandeutsch it just jank
@@midnightdragon67
Watch the video and you'll figure it out
"You can't see me if I can't see you!"
"Well, he is a physicist... maybe he has a point."
Cans are serious bussines at Combine.
Boltscrap hey
WHERE'D HE GO?! OH THERE HE IS! OH NO DID HE DISAPPEAR AGAIN?
Actually, the combine does know where Gordon is. The problem is that it wants to try and flank him but can't since the scripted sequence requires him to stay put until Gordon gets close. So he remains still, conflicted.
What's funny is that HL2's AI is actually amazing. They communicate and coordinate with each other, use flanking maneuvers, and utilize cover often.
This is a funny glitch that has more to do with the Source engine itself rather than the AI. Notice that when the player gets close enough to the turret, the soldier moves out of position to attempt a flank.
feel like they alot better than hl1 scientist, i think they only stupid in scripted sequence
I don't know. Even if the programming is technically better, the marines in HL1 seemed so much smarter to me than the combine.
When the end result is a total disaster as seen in the video, it doesn't matter if the AI is "technically" good.
@@TheJohn_Highway I don't agree that it's a total disaster. It's funny but it's far from a disaster. It works basically flawlessly for most of the game, with very few exceptions. For 2004 using such a new engine for the time, it was a hell of an accomplishment. I don't know how old you are, but if you were around back then, you'll remember that we didn't so much care about every little technical detail being perfect. There was so much more to a game than that.
@@nordfreiheit have you played half life 1? The marines are sooo much more challenging and interesting as foes than the combine. That's my biggest gripe with half life 2 i think. The tactics and combat took a huge downgrade.
he wants to save that mayo for later
It's a finally tuned instrument
@@WitchVulgar spongebob ref?
@@ermant7285 yes
Well they did say not to shoot until you see the white of their eyes.
Actually this AI is better than most games NOWDAYS.
I mean this is from 2004, and games in 2014 still have these retarded AI that get stuck on linear obstacle.
Just notice how the combine realizes there's an obstacle, so he tries to flank you. If there is a team of them, they will split out into two different groups and flank you from both sides.
I'm pretty sure the combine in HL2 use an entirely different AI from TF2's 'Nextbot' AI.
Well it still stinks big time against F.E.A.R. AI (2005, so one year later). But well, F.E.A.R. still has an awesome shooter AI to date. Even its own sequels are worse in that manner.
Dye Violetly You are correct. Npcs navigate via a nodegraph, are less resource intensive and more primitive. Nexbot use navmeshes.
@@StoneyWoneydon’t think you know, but F.E.A.R. didn’t actually have the best AI. Sure, it had everything in tactics, but it never worked in wider and more open areas like in the sequels. The devs admitted to this, the interior arenas and combat areas with lots of cover and paths in the game’s maps made the AI work a lot better than it actually does without them. The dialogue helped a lot too.
Pick up that can.
At last, some really good joke here!
LightCrasher Dat metrocop should probably add "One day, it will save your life"
Now I have urge to save that very can to use in the turret section
No wonder. Look at the can label. Biohazard Mayo! No one wants Pandora's box to be broken ;)
It's not mayonnaise
@@timur5241 it's a can filled with rogue manhacks
@@TinyDeskEngineer lol
Is mayonnaise an instrument?
*squidward voice* No RUclips, mayonnaise is not an instrument.
*Squidward voice* Horseradish is not an instrument either.
Teothehun *Squidward voice* Imgur, mayonnaise is not a gender.
TRIGGERED>
Lashghost An instrument of stealth.
Gordon: "I come in peace! Please accept this Jar of... Stuff as an offering of sacrifice, great Combine!"
Metrocop: "...Mkay." *Stops shooting*
Despite this loophole, the AI is very nice. Of course not better than the Oblivion AI. Good day.
Well u simply can't compare this to "RADIANT A.I"
The AI was not good at all nowhere near as good as hl1
@@sponish0 HL1 was amazing and nuanced for its time, but I don't remember anything about it being superior to HL2, despite HL2 being flawed.
@Flashing Colors I've never cared for it to be honest. Then I didn't care for the first, either. Both Half-Life games were just mod beds for me.
I was being sarcastic you morons
"If you don't see them they won't be able to see you" -Mahatma Gandhi
Ehat about snipers?
"Peace is the Question, the Atomic Bomb is the Answer" Gandhi
"When being yeeted, yote the yeeter"
Joseph Stalin - 2355
"I love spam." Rex Power Colt - 2002
"My cats breath smells like cat food" -Ralph Wiggum
How to Camouflage: Half-Life 2 edition
"Don't mind me officer, I'm just a floating jar of white fluid.."
"Wait, what's that behind you?!"
"Nothing."
"Okay, carry on."
"white fluid"
The AI is actually pretty good (especially for 2004,) the occasional glitch doesn't negate that fact.
ruclips.net/video/OsDM7GKb0xU/видео.html
CP:THER HE IS
*Picks up jar*
CP:The fuck?... he just vani-THERE HE I- and hes gone again?
nobody:
youtube waiting more than 10 years to start recommending a video:
Lol i know right
Nobody did nothing?
Fail
Stop repeating the same stale meme formats. Especially when they don't even work.
@@idoobbberz_tv6676 it never ends, people are like lemmings.
the real mastery is to be able to take a good pause
This isn't technically an AI coding problem. The line of sight to the player is simply defined as a single point, instead of taking into account the actual extent of the player. So hiding that single point counts as "hidden" for the player.
A problem with the way the player is physically defined in space is also an AI problem. They could have just as easily put an invisible box around the camera and said "this is the player's collision box. If you can 'see' this, you can see the player".
Sukuraidogai No, get it, that's precisely the point. AI coding is defining "if you can see the player, do this and decide between this and this".
However, defining what construes "seeing the player" is not strictly part of the AI routine, it's just a definition. The AI code works the same way regardless of definition, the definition will just set the circumstances.
+Sukuraidogai That would've taken more than a few weeks, even months. Since they were in quite a hurry to finish the game, they put as much effort as they could and went on with it. Also, the Source engine uses Lua for everything, as far as I know, so yeah, good luck with that.
Guys, just because you read something from wikipedia doesn't mean you become the new Einstein(in computers).
We all can do the same.
+Marcos42563
"Source engine uses Lua for everything"
LMAO Source uses C/C++ in fact the entire engine was written in it... and Lua isn't included in Source engine by default, you must add it by yourself.
If I can't see him he can't see me!
youtube be like
2009: naw
2019: errbody need to see this
Its half life so no reason to skip
Hl3 confirmed
people be like
2019: we dont wanna see shitty comments like this
The AI in the Source engine is known as being cutting edge (for its time anyway) achieving among others: Squad behavior, flanking and bunkering tactics, suppressive fire, identifying individual enemies by type, calling attention to and avoiding grenades, using grenades to flush the player out of hiding, dynamically finding cover using world objects, flinching occasionally when hit followed by fleeing or seeking cover, moving out of the way of the player if friendly, and using mêlée attacks on you if an enemy (as a built-in animation rather than a separate weapon entity), and finally being able to detect targets through transparent objects (and wallbanging if the material allows it).
Now the Stupid: The Source AI is a known offender of: Reloading out in the open during combat, running blindly into traps, mines, and turrets, not using most tactics when faced with tight and narrow areas (which the games mainly take place in), not being able to wait for more than a few moments when told to, randomly picking up ANY compatible weapon even if their current one is better, moving too slowly to use any of their tactics effectively against a player, and being woefully inaccurate at anything greater than close range unless specifically scripted otherwise.
Clearly something that needs work...
And clearly something that I hope is fixed with Source 2.
If you want REALLY HEMMORAGINGLY STUPID AI, look up: Gamebryo, specifically: Fallout 3 and New Vegas.
i think the only problem of A.I in HL2 is defending themselves (which means you're right), but in offense, they are good
And yet, the roaches in Half-life 1 end up seeming more intelligent because of a number of terrible design choices. The metro cops just stand there and take pot shots at you if they can see you. Most of the rest move so slow and die so fast you never notice they even have AI. A number of scripted sequences make them seem retarded; e.g. slowly unloading two at a time in front of a man with a shotgun and taking their sweet ass time to start shooting back.
Well it's as stupid AI as in skyrim :D
Didi16098Nerffans
I've seen the AI. In New Vegas, one NPC was smart enough to take cover from some guy with a mini gun and only step out when he was reloading. Other than that, freely exposed mines FTW!
BREAKTHROUGH!
Command Console:
player_squad_autosummon_move_tolerance 1000
Now when you tell your squad to wait somewhere, they'll actually wait there and/or move where you tell them to for a reasonable distance. INSTANT +30 REBEL IQ!
Can not pass this level?
Yes, you CAN.
I just imagine the enemy thinking wtf is going on, he's got a mayonase jar what should I do? 🤣🤣🤣🤣
Its all fun and games.
Then Hunters crash the party with them flanking and trying to smoke you out with splash damage. XD
the horror of running out of stamina and getting one shot by the charges
It's not a problem with ai. Problem is the player has no physical body, just a floating point at which coordinates is the camera and from which bullets fly out.
No, you still have hitboxes and bounding boxes that are human-sized, this is certainly a line of sight/AI problem
Still cracked me up, thou~
They were must fix this. It's absolutely not a problem for such company as Valve. Also is CS:S bots were a lot smarter. What's the problem to adapt css bots AI to HL2 enemies?
NPCs & Bots in Half-Life 2 and CS:S are different. Half-Life 2, I don't know what it's called but it's an okay AI. The CS:S bots use Nextbot, which is far more advanced. Nextbot also uses more CPU, which is why CS:S can lag when having so many bots compared to Half-Life 2 where you can have plenty without frame drops.
***** it did try to hit him. When he left the turret the AI flanked him round the jar.
Combine: “Oh ho, you’re approaching me?”
Freeman ''I can't shoot the shit out of you without getting closer''
Then get closer as you like
SHIT.
Where'd he go?
Black Magic!
I didn't expect this to have me in tears.
Combine: OPEN FIRE!
Gordon: *equips jug*
Combine: Tf he go?
this is how you fight helicopters in hl2, just use a big jar of proteins, like a barrel of proteins
vegetarian vs normal person eating anything
''If I don't see them, they don't see Me.''
Combine: ^shoots at the person^
Freeman: ^took a jar^
Combine: "where is he?"
As I probably said a while ago, this specific situation is caused by the engine's ray-scanning implementation, but there's also the fact that the combine operating the turret can't move. Try this with a mobile enemy and they'll probably just attempt to get around the jar.
Also, Half Life 2's level design is fairly linear, and the combine AI was designed to work in somewhat more open spaces. Give it some room to move and you'll see how the AI works when not constrained to scripts. Half Life 2 A I Battle
How did you embed the video in the text?
@@lqu
It's something RUclips used to do at one point when a video link was posted. They've since removed the feature.
True definition of "If I can't see you, you can't see me"
I absolutely did not realize this video was from 2009.
that metrocop just got P-P-P-PRANKED!
It's their mistake to teach you to pick up that can.
Him throwing the can at him, jumping on the turret and gunning him down was absolutely priceless
i bet he thought the can was a hostage
I don't know why this video just popped up on my playlist, but this AI from 11 years ago looks better than Cyberpunks.
This game came out 17 years ago
If you can't see him, he can't see you.
"Don't fire until you see the whites of their eyes."
"What about the whites of their mayo?"
"Don't be ridiculous."
"Whatever you say, boss."
Algorithm :
2009 : this is not recommended
2019 : LETS RECOMMEND THIS!!
smartest civil protection officer
Lol so true
Wow, HL2 was released? Why i didnt know this till 2019?
Because RUclips algorithm recommend this video just today.
Can't tell if satire or actual stupidity.
@a normal everyday Spider sory, i've tell about 3...
Nope it’s a fake sorry bro there’s no such thing as Half-Life 2 sorry man you still have to wait for them to make a sequel to Half-Life (1998).
PIck up that can! Shit! Where did he go?
after 10 years, now yt recom me this video
I don't see why we should 'ignore' the fact that the enemies miss. It would be incredibly easy to make the combine hit you all the time, every time, their bullets always flying true. IMO, it'd be harder to program an AI that realistically misses. If anything, it's another example of excellent AI.
Its not, its the fact the AI is incapable of targeting the player unless it can directly see the player hit box, Hence why he was able to cause the AI to not shoot him, just by holding up a piece of clutter (since the clutter prevented the soldier from seeing him).
Maliciously Delicious as I recall it would work only with this stationary gunner. Other guys will totally bust you if you dont have solid cover and shoot it away asap out of your hands or gravity gun, just in last part- the final, you can do stuff like this with supercharged gravity gun and big objects or even bodies.
Maliciously Delicious It's part of the design, he couldn't do it if there we're more a.is or he wasn't pointing it towards the enemy, if it was a bigger metal box he could use it as cover and a.i wouldn't waste ammo on it, it's working fine, if u can do the same with more enemies with that little jar i'll take this seriously, now stop bashing 2004 a.i, which was 5 years ahead of it's time.
It has nothing to do with AI, it's the weapons accuracy based on values.
It isn't ahead of its time, Unreal was well before even Half-Life and had far better AI. Enemy AI would lead you into ambushes that it constructed, completely unscripted. While a lot of level designs didn't allow this to be shown well do to their linearity, some did, and spawning enemy AI on a custom deathmatch map would show just how extremely dangerous they could be. Half Life 2 did nothing at all whatsoever to expand upon the AI presented in Unreal, it even regressed a little.
The only game since Unreal to show some decent AI was FEAR, and even FEAR's creators have said the AI isn't all that good and just gives an extremely well crafted illusion of being smart. You can see this in FEAR's gameplay too by choke-pointing them or leaving them to fight other AI.
Maliciously Delicious You obviously don't know what you're talking about since the AI could see the player hitbox, it's the central point of the player's camera that seems to be the AIs registration point.
After reading some of the comments, I now understand how the Metrocop is so tremendously stupid here...
...But what I can't forgive is adding A.I. to the DOORS so that they know to close themselves when you're not around.
+h8GW I'm 99% sure they're just on timers and auto-close after being open x seconds.
+Kōichi Zenigata No if you walk away they close (tested)
Their A.I won't reflect them in a real life terms to fill you with holes :/
Actually they are on a timer, if you look at the class info of a "prop_door_rotating" in the Source SDK, you can clearly see that there is an option for how long it takes after it is open to close.
What the fuck y'all alking about?
Objects don't have A.I.