The AI of Half-Life

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 163

  • @TylertheCC1010fan
    @TylertheCC1010fan 3 года назад +88

    Fun Fact: The cut Human Sergeant would've been able to call any nearby grunts to his position, we don't know what the maximum distance that he could call grunts from would've been, this ability would've made the H.E.C.U's squad system all the more believable if the squad leader could call for backup from any marines within a certain radius.

  • @kenzorman
    @kenzorman 5 лет назад +278

    I’ve got to say how impressive HL pathfinding was at the time. It doesn’t matter how cool your Ai is if they spend most of there time running into walls. We did a lot of sense based ai for the original AvP but really struggled with the pathfinding .

    • @99sproth
      @99sproth  5 лет назад +43

      Who got the fun task of setting all those navigation nodes all over the floor, walls and ceilings? :D

    • @MDADigital
      @MDADigital 5 лет назад +12

      @@99sproth It can be done automatically, in our game we setup "rooms" and then the navigation nodes are created by our framework. For the fine detailed navigation inside each room we use a standard navmesh. ruclips.net/video/nGHmmSEWfmY/видео.html

    • @UziIdiot
      @UziIdiot 5 лет назад +7

      @@99sproth Is HL1/GoldSrc movement based on nodes like HL2/Source? I always wondered how they got the AI to move in far more complex ways than Quake

    • @Zack_Wester
      @Zack_Wester 4 года назад +11

      @@UziIdiot Hl and Hl2 are both Node based (think of it as a tiny square piece of paper whit a straight yarn string between them).
      and AI can only move between any two nodes if there is a set line between them. Nods are close to each other I think is like 0.5 to 1 meters between them. you can do longer stretches like on a thin but long Catwalk put two node next to each other one next to each railing. and then have the whole 10 meters catwalk be covers whit only 3 pairs nodes. two on each end and one in the middle. (should work fine the AI might look a bit wonky if there are many on the catwalk at the same time).
      the other way thats used in Conter strike source.
      is to place what I would be calling a nav mesh or for a better recuperation a lot of different sized Carpets layers all around the room.
      some mats like the one under the unmovable Desk is painted whit a Need to Crouch to be able to move here.
      or another located in a next to a open small window might have the info Good Sniping spot.

    • @Zack_Wester
      @Zack_Wester 3 года назад +2

      @@UziIdiot a bit late but if I recall correctly HL1/GoldSrc uses nodes like HL2/Source that said HL2 node system was obliviously a lot more advance another thing I dont recall correctly is the how many node away a AI can see and by that how far they can path because trying to tell the AI to path in one go from one end of a huge complex map to the other can fail if its to far.

  • @kvltizt
    @kvltizt 5 лет назад +102

    I played this in 99 when I was 10 years old. The AI scared me at the time. The scientists seemed so alive.

    • @capscaps04
      @capscaps04 4 года назад +25

      "Why do we have to wear these ridiculous ties?"

    • @numbers4851
      @numbers4851 3 года назад +14

      “Stahp!”

    • @Beretsquid
      @Beretsquid 3 года назад +9

      “Noh!”

    • @briantcideu8619
      @briantcideu8619 3 года назад +10

      "do you know who ate all the donuts?"

    • @capscaps04
      @capscaps04 3 года назад +1

      @daniel strong HAMMER TIME!

  • @Jarekthegamingdragon
    @Jarekthegamingdragon 5 лет назад +194

    Fear would be amazing. Fear's AI still makes every new shooter feel disappointing combat wise even today.

    • @8Paul7
      @8Paul7 5 лет назад +34

      Yeah HL1 and Fear have the best enemy combat AI ever.

    • @99sproth
      @99sproth  5 лет назад +33

      The new Wolfenstein games have got close for me, but they unbalanced their combat in the latest instalment and it falls just short of the mark.

    • @WaveOfDestiny
      @WaveOfDestiny 5 лет назад +14

      Halo CE is still ahead to most games

    • @Concord003
      @Concord003 5 лет назад +13

      I agree! Enemy squad behaviour in F.E.A.R. was delightful to watch and would sometimes spook and kill me me with surprise attacks from flanks.

    • @donaldthompson4044
      @donaldthompson4044 4 года назад +5

      Last of Us Part 2 has decent enemy AI.

  • @EveBatStudios
    @EveBatStudios 2 года назад +29

    This video was part of a playlist covering something like 20 years of AI development in tons of different games and approaches to AI design I found roughly 3 years ago and I still love this content so much. :) HL1 was literally the only game I owned for the longest time. When I was approaching the problem of designing and coding my own squad mechanics and goal-oriented planning in ue4, I needed examples that captured that headspace and this did that perfectly. Good luck with your game dev adventures friends. Stay positive and stay creative. 💓

    • @hayond656
      @hayond656 6 месяцев назад

      Can you share the playlist? It sounds interesting

  • @PaulSoth
    @PaulSoth 5 лет назад +54

    Of course, you still had moments when Barneys would try to rush into point-blank range on large monsters or a grunt will fall back right into a grenade they dropped a moment before.

    • @erkokal8892
      @erkokal8892 5 лет назад +12

      It was perfect at the time, but it clearly had it's flaws and only a really nostalgia glassed fan will deny that

    • @capscaps04
      @capscaps04 4 года назад +6

      Well, barneys and grunts had different ai behaviour.
      After all, Barneys are suppoused to be just security guards ad grunts are suppoused to be profesional militaries.

    • @Zack_Wester
      @Zack_Wester 3 года назад +3

      the drop grenade thing was because the Grunt AI retreat code that held the drop grenade and retreat maneuver had a problem whit that it didn´t register there own grenade correctly for some reason. exept of it correctly succeed whit the retreat command and the player pursued them.
      if ether the player retreated when the marine drooped the grenade (because the player spotted it and stepped back. or hurt the grunt enough whiles he was drooping or retreating the task failed and the spawned grenade was not registers).

  • @AshValen
    @AshValen 5 лет назад +67

    I enjoyed this greatly. Would love if this became a regular series.

  • @fujineetomori
    @fujineetomori 5 лет назад +40

    Combine AI: one plus one is one

    • @gamesergeanthd
      @gamesergeanthd 4 года назад +1

      lol

    • @ded4700
      @ded4700 4 года назад +4

      Combine AI:Cover are for smart bois,let me show you the idi9t way!

    • @dkskcjfjswwwwwws413
      @dkskcjfjswwwwwws413 3 года назад +7

      no, combine ai is more like: one plus one is t- (death)
      theyre too weak to feel smart.

    • @TheDravenBair
      @TheDravenBair 3 года назад

      Yeah...

    • @wadayatalkinbeet
      @wadayatalkinbeet 3 года назад +3

      One plus one is two, and two add two is four. Movement moves, affirmative, I am hot

  • @genuinesaucy
    @genuinesaucy 3 года назад +24

    Wow, I knew certain Xen creatures would attack each other on sight, but I thought that was just a gimmick behavior of the alien fauna; I didn't know that every combat-capable NPC checks their targets against a literal "fuck this guy" algorithm. That's pretty detailed for a system that probably 90% of players never even noticed.

    • @hecunt3633
      @hecunt3633 3 года назад +4

      FREEMAN

    • @The_Butt_Cracker
      @The_Butt_Cracker 2 года назад

      They do a good job of varying the relationship hierarchies of different enemy types, too. For instance, bullsquids are unique in hating each other and will infight when they have the chance.

  • @noobythings
    @noobythings 4 года назад +5

    6:06 they flinched

  • @erkokal8892
    @erkokal8892 5 лет назад +103

    We had many FEAR's ai breakdowns, but nobody really gave attention to Half-Life 2's ai, because everyone claims that it's dumber than original, but in fact they are a straight upgrade from HL1
    The problem is that most players can't understand what they're saying, additionally they deal low damage and move slowly

    • @Devilforce988
      @Devilforce988 5 лет назад +15

      thankfully the half life mmod makes them more dangerous and have a bit of an update to their AI

    • @WildRage_
      @WildRage_ 4 года назад +23

      The slow movement and lower weapon damage doesnt have to do with worser ai. Also hl2s ai is better in multiple ways. Look up combine soldier squad ai. Genius as hell.

    • @capscaps04
      @capscaps04 4 года назад +2

      @Wild rage except that you ca use a brick to cover in your sight a combine. If you hide a combine from your sight perspective, the combine will stop shooting you. Despite you are just hiding behind a small brick.

    • @WildRage_
      @WildRage_ 4 года назад +4

      Capsy Dash source spaghetti my dude.

    • @HumanGrunt
      @HumanGrunt 4 года назад +23

      @@capscaps04 that only happens once with an NPC on a mounted gun, you try that in Nova prospekt, you'll get flanked and killed

  • @LowLevelLemmy
    @LowLevelLemmy 7 месяцев назад +1

    I've come back to this video sooo many times over the years. Ik this is 5 years old but I'd love more vids like this

  • @PantMal
    @PantMal 5 лет назад +12

    6:40 Wow. So many years of playing Half Life and this is the first time I see bullsquid in-fighting.

    • @dracmeister
      @dracmeister 3 года назад +3

      It's not so much more in-fighting but Bullsquids tend to attack any other NPC even other Bullsquids that invade their designated "habitat"/area.

  • @theradio.9135
    @theradio.9135 2 года назад +1

    I love how to the beat drops when he opens fire onto the marine-

  • @Ranalcus
    @Ranalcus 5 лет назад +18

    Thank you, please make more vids like this one!

  • @DangerSideburns
    @DangerSideburns Год назад +1

    I'm working on my own enemy AI for a game I'm developing and it's so much work just to get basic AI working. It's really beautiful how intricate yet still kind of simple the Half Life AI is.

  • @TheDiymovies
    @TheDiymovies 5 лет назад +6

    This is excellent. I love hearing the code broken down to this level.

  • @rickybryceland
    @rickybryceland 3 года назад +2

    They give roachs ai to be startled at light when they were in darkness but HECU guys can eat their own grenades

  • @HunterTinsley
    @HunterTinsley 5 лет назад +5

    FEAR is the classic, but you might also want to take a look at Far Cry 2's AI. It's interesting, and kind of complex. Lots of AI interaction.

  • @LordHengun
    @LordHengun 5 лет назад +8

    I'd love to see more videos like this!

  • @MrSomeguyV2
    @MrSomeguyV2 5 лет назад +32

    FEAR is a good choice, but do Half-Life 2 first. It'd be interesting to see how it compares to it's predecessor.

  • @sunsetwolf7188
    @sunsetwolf7188 3 года назад

    I tend to comment before I'm fully through watching the video, so I don't forget what I wanted to mention; i wanted to say the full captions on this video are entirely appreciated :) most creators don't include them, and it makes the video so much easier to understand! Thank you for including them!

  • @ravenweikel6423
    @ravenweikel6423 4 года назад +1

    Dr.Coomer from HL:VR:AI has speak at number 1 priority

  • @THExRISER
    @THExRISER 4 года назад +3

    Please make this a series!
    May I recommend Soldier Of Fortune? Specifically the second game,I've played it for a long time and the AI actually does some pretty interesting things when switching between different states,as in,a civilian,or an enemy who just got disarmed would act differently than someone who's armed (but also differently from each other),and many other examples...

  • @UAVXP
    @UAVXP 5 лет назад +37

    Half-Life 2 AI video would be very cool :)

    • @TheOutLokk
      @TheOutLokk 5 лет назад +3

      not really, it's notoriously stupid

    • @erkokal8892
      @erkokal8892 5 лет назад +13

      @@TheOutLokk it's actually really good

    • @a.q.2330
      @a.q.2330 5 лет назад +1

      @OOM-9 HL2 AI sucks

    • @johnathan5252
      @johnathan5252 5 лет назад +4

      In terms of AI the hunters from episode 2 and the acid-lions also from episode 2 are the only ones that show real intelligence. The combine soldiers AI actually have pretty big flaws especially when compared to the HECU AI.

    • @Scorch0017
      @Scorch0017 5 лет назад +5

      ​@@johnathan5252 , Combine soldiers AI is beter and somewhat more interesting to fight against, but they are hindered by game scripts and map design. There is couple videos on youtube about AI behavior in HL2, where authors don't suffer from duck syndrom or terminal fanboyism. As for HL1, when you encounter a squad of HECU grunts, half of them would run around in search for cover, while soaking dozens of bullets with their backs. Yeah, it was cool to look at in late nineties, but fighting those hitscan bullet sponges was never fun to begin wtih, in HL2 the firefights are more intense and believable, and you can quickly down humanoid enemies with the headshots.

  • @matthewmiles15
    @matthewmiles15 3 года назад

    Precious video. Rarely are those insightful and deep videos about HL, like this one.

  • @Hazztech
    @Hazztech Год назад

    Catching the civilian between the hecu and the player, which is interesting. The hecu acts like he doesn't want to shoot the scientist, and you don't want to either- so the shooting briefly stops and allows both sides to move! Very interesting...

  • @tempest8882
    @tempest8882 3 года назад +4

    Shedul

  • @syllvia1
    @syllvia1 4 года назад

    Thanks very much for the vid, i got hired to work on some AI and half life is a great inspiration but fuckme if i'm rusty at c++, so this spelled it out in a way is super conducive to actually replicating. Much appreciated!

  •  3 года назад +1

    love this video!!! thanks a lot a lot a lot, just subbed :)

  • @CliffuckingBooth
    @CliffuckingBooth 11 месяцев назад +1

    Happy Half-Life 25th Anniversary ;)

  • @TheBigOne0305
    @TheBigOne0305 5 лет назад +1

    Excelent video, would love to see more. Especially on HL(2), but also similar videos on other games.

  • @flashfour2042
    @flashfour2042 4 года назад +1

    Yet another interesting details to know, thank you! I was wondering though when the AI of Half-Life 2 will show up?

  • @ty-xq7bl
    @ty-xq7bl 3 года назад

    ty so much for making this, im trying to replicate half life AI myself and this was very infromative

  • @robotacid
    @robotacid 5 лет назад +2

    I will add my vote for Fear. The document that explains GOAP is a bit hard to follow, even when you've written A*. A video walking through some scenarios instead of describing them would be of help.

  • @VickiVampiressYT
    @VickiVampiressYT 5 лет назад +1

    Oh I love this. Very curious what you have to say about Half Life 2!

  • @vemanjadhav
    @vemanjadhav 4 года назад

    Well explained. This video of yours needs more views!

  • @DavidXNewton
    @DavidXNewton 5 лет назад

    Great explanation of the internals, delivered very soothingly :)

  • @vizthex
    @vizthex 11 месяцев назад

    well it's been 4 years, but a video on Half-Life 2 and one on F.E.A.R. would be great.

  • @psycl0n3
    @psycl0n3 5 лет назад +2

    This was great, thanks ! And would love one on hl2

    • @a.q.2330
      @a.q.2330 5 лет назад +1

      HL2 ai sucks

    • @randomcatdude
      @randomcatdude 5 лет назад +6

      @@a.q.2330 It really doesn't. Infact it's an upgraded and improved version of HL1's AI.
      The problem is that the level design, combined with the slow walking speed and often low health of HL2 NPCs, results in them often not getting the chance to show off their AI in its full potential.

  • @dfghj241
    @dfghj241 2 года назад

    its insane, its basically a behavior tree before behavior trees became a thing.

  • @IceTheFanDude
    @IceTheFanDude 3 года назад +1

    This AI is still impressive ( I think that the AI is better than some games today)

    • @AFT_05G
      @AFT_05G 3 года назад

      Cyberpunk lol

  • @thealandude9146
    @thealandude9146 5 лет назад +1

    I wish you can do more about the Half Life series, like one for Half Life 2 or something

  • @charlesandhisworld
    @charlesandhisworld 3 года назад

    Please do more videos like this!

  • @lebogarcon
    @lebogarcon Год назад

    i hate the thought of hearing smell or smelling sound

    • @vast634
      @vast634 Год назад

      I also dont like farts

  • @90Eight.6
    @90Eight.6 9 месяцев назад

    i just played throough all of one, and never once encountered the m16

  • @akeiai
    @akeiai 5 лет назад +1

    YO WOT? THOSE SOLDIERS LOVE GRENADES

  • @lynnwilliam
    @lynnwilliam Год назад

    Recompile the code with 0 waits between tasks and remove the sounds. This would be cool and make them super harder to beat.

  • @floatingpointerror55
    @floatingpointerror55 5 лет назад +3

    I don't like nerd talk, but C++ is a superset of C not a subset

  • @Hazztech
    @Hazztech Год назад

    I want to make a reverse super hot kind of game, one based on keeping pace and violence up. You would plan your route out ahead, then execute it as fast as you can. Maybe based on like, the ira insurgency....

  • @MarZandvliet
    @MarZandvliet 5 лет назад +1

    Wonderful!

  • @mashedpotatogin236
    @mashedpotatogin236 2 года назад

    I played the half life alpha a while back and managed to kill the grunts. Subsequent tries led to them showing very intense ai like bobbing and weaving such that I can't get a clear shot into them it was impossible.

  • @saisameer8771
    @saisameer8771 4 года назад

    A video analysing fear and half life 2's ai would be great.

  • @grimscribe6454
    @grimscribe6454 4 года назад

    I could listen to dr bashir do this all day

  • @MuddyMuzzy
    @MuddyMuzzy 3 года назад

    so noones talking about if the player stares at the floor the opposing force shoot above you (this does work for gernades/any explosive and the aliens)

  • @ericmotta1
    @ericmotta1 2 года назад +1

    Great video but... HD pack, for real bro?

  • @Lition98
    @Lition98 5 лет назад +1

    This is explained in a nice perspective for non programmers how they were developed back then. Can you do the same with the black ops in half life ?

  • @matsydoodles
    @matsydoodles 5 лет назад

    My vote would be F.E.A.R. , would hate to think how many hours I sunk into that game!

  • @Spunney
    @Spunney Год назад

    I think this video really could have used with some demonstrations instead of unrelated gameplay footage in the background

  • @stevesan
    @stevesan 5 лет назад

    nice breakdown!

  • @Pecisk
    @Pecisk 5 лет назад

    Excellent! Thanks a lot!

  • @thehappycockatiel9568
    @thehappycockatiel9568 3 года назад

    Ah yes, Half-Life and its soliders. The most accurate shooting AI in history of gaming.

  • @CR42Yh17m4N
    @CR42Yh17m4N 5 лет назад

    Really a great video :)

  • @SteffyCush
    @SteffyCush 3 года назад

    really good vid

  • @und3rM0
    @und3rM0 4 года назад

    This information should be implemented too the marines

  • @oballma6957
    @oballma6957 Год назад

    We call them dumb in easy difficult
    We call them smart in hard difficult

  • @xaros1466
    @xaros1466 5 лет назад +3

    Do Half Life 2 AI

  • @BlueLightningRelease
    @BlueLightningRelease 5 лет назад

    This one was great, you should do a Fear one!

  • @aaadj2744
    @aaadj2744 3 года назад +2

    Too bad, Valve still haven't update the AI NPC to make them been able to jumping and climbing a ladder like they do programmed the AI in CS. If they updated the AI, I would like to comeback to this game and see how far and possible they could follow us through the entire level-to-level in the game when I ask them to follow me

    • @EnclaveSOC-102
      @EnclaveSOC-102 3 года назад +3

      That's what Mmod is for, Combine Soldiers can jump and shoot a lot better now.

  • @TedThomasTT
    @TedThomasTT 5 лет назад

    Nice video.

  • @mememaster2.092
    @mememaster2.092 2 года назад +1

    Bro he uses HD models

  • @p0wdrous
    @p0wdrous 3 года назад +2

    shedyoull

  • @blank6184
    @blank6184 4 года назад +1

    Shedjule

  • @egor33333333
    @egor33333333 5 лет назад

    Great video, thanks! Have you played Far Cry 2? What's your impression on its AI?

  • @FekOmsamsundinee950
    @FekOmsamsundinee950 Год назад

    This is like hgrunt has better mathematic to lauch grenade than you.

  • @elmundodeFreeman
    @elmundodeFreeman 5 лет назад +1

    Say schedule again please.

  • @TheBoltrower
    @TheBoltrower 5 лет назад +3

    Half life 1 is the best game ever created.The AI of the game is one of the best of all time-only F.e.a.r beats this magnificent AI.The detail,the story,the mods,the variety of weapons and enemies were never seen back then and they were very revolutionary and still are better than any other game that I've ever played-again F.e.a.r comes close and it is my second favourite next to Half life 1.But the same thing cannot be said about Half life 2.It improves some things:having an awesome engine-the Source engine,having one of the best stories and characters-Alyx being the most awesome and most sexy female character I've ever seen,awesome music and amazing graphics even to this day.But the faults sometimes ruin the entire game for me-dumber AI,less enemy and weapon variety,awful vehicle and squad sections and sometimes terrible level design.Half life 2 is a great game,but better than the masterpiece called Half life 1 is just funny.

    • @RexOrbis
      @RexOrbis 5 лет назад

      Or you know, HL2 beat its ai.

    • @TheBoltrower
      @TheBoltrower 5 лет назад

      @@RexOrbis How so?

    • @WaveOfDestiny
      @WaveOfDestiny 5 лет назад

      Half life may have had a great impact.
      Halo 1 not only had basically almost the same impact, but the combat as much more depth and the ai is far better in higher difficulties especially in correlation to level design, hp system and movement.
      While in half life you basically peek the corner so you can kill the targets one by one taking less damage possible, in halo every room makes you use a different strategy and makes you actively push, even the flood. And it is still the most fun combat you'll ever see in a campaign if you dare to become a skilled player and play on heroic or legendary difficulty.

  • @3333218
    @3333218 3 года назад

    Please tell me you've done one on Half Life 2!!!

  • @donaldthompson4044
    @donaldthompson4044 4 года назад

    Can you do one on the Last of Us Part II?

  • @turbone6028
    @turbone6028 3 года назад +2

    Damn! Cyberpunk should look up to this game! 😂😂

  • @Iheartdgd
    @Iheartdgd 5 лет назад +4

    I can’t stand to listen to you say ‘shedule’ anymore, but good work nonetheless.

  • @ollyclass
    @ollyclass 3 года назад

    This is why I like half life 1 more than 2 yeah the story is kind of better in 2 and the puzzles/physics is cool but the gameplay is so much better.

  • @timur5241
    @timur5241 4 года назад

    Things that I hate about half-life's combat
    1. You're faster than your enemies
    2. You and your enemies are bullet sponges

    • @TylertheCC1010fan
      @TylertheCC1010fan 3 года назад

      For the H.E.C.U it makes sense due to their P.C.V.

    • @timur5241
      @timur5241 3 года назад

      @@TylertheCC1010fan I'm about half-life series in general, not exactly hl1

    • @aaadj2744
      @aaadj2744 3 года назад

      Yeah, they should make their strength been balanced between the player and the AI, just like Alien vs Predator 1999(for fastest Alien attack and randomly spawn and appeared everywhere) and CS(for AI HECU & Security Guard so they can also moving around and climb a ladder) combine. That would be lit as hell to play XD

  • @rudolph2937
    @rudolph2937 5 лет назад +1

    This video gets a 0/10, too much HD pack

    • @halfhawk718
      @halfhawk718 4 года назад

      We all know the HD Pack sucks (even I hate it too), but you shouldn't bitch around like that.

    • @randomcatdude
      @randomcatdude 4 года назад +1

      @@halfhawk718 I think they were just making a joke.

    • @halfhawk718
      @halfhawk718 4 года назад

      @@randomcatdude I bet.