How To Add Enemy NPCs in Source 2's Hammer

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • Here I cover how to add different enemy NPCs, and how to change the combine soldier type, as well as how to add enemy navigation.
    I plan to do another video on the more advanced aspects of zombie and combine encounters. Other suggestions are still welcome though!
    This tutorial involves the Enemy NPCs, npc_combine_s, the Navigation Tool, and Nav mesh seeding
    Made using the Half Life Alyx Workshop Tools version of Hammer for Source 2

ความคิดเห็น • 38

  • @antonsk8536
    @antonsk8536 4 ปีที่แล้ว +7

    could you make a tutorial on the puzzles where you have to connect all those wires with your multi-tool to open a door???

    • @Hosomi
      @Hosomi  4 ปีที่แล้ว +2

      I've been planning to figure those out. They're probably not too hard, so I'll have a look at how to do them soon

  • @ryc2236
    @ryc2236 4 ปีที่แล้ว +1

    Thanks for this!

  • @da.milkman
    @da.milkman 4 ปีที่แล้ว +5

    Could you do a tutorial on functioning ladders next?

    • @thesensur6214
      @thesensur6214 4 ปีที่แล้ว +1

      Yes!
      Iv’e been trying to do this for 3 days now

    • @oopsidaysy8546
      @oopsidaysy8546 4 ปีที่แล้ว +1

      Check out the AlyxMods website, there's a downloadable prefab on there containing a variety of different ladders

    • @Hosomi
      @Hosomi  4 ปีที่แล้ว +4

      I spent some time trying to sort out ladders myself, but I couldn't get them to work reliably either. There are prefabs tho, so that circumvents the issue

    • @da.milkman
      @da.milkman 4 ปีที่แล้ว

      Hosomi Thank you!

    • @nicholashall3347
      @nicholashall3347 4 ปีที่แล้ว +2

      @@Hosomi I got stuck on this as well but I managed to get it working. Follow the Valve documentation but when you add the prop_handpose entity. Play around with the extent values in object properties. You will see a line coming out of the handpose entity. Align this with the rail. (if you've placed the handpose entity on the right side of a vertical ladder, the extent line should point left running over the rail until the point where the other hand would be). Then copy this and align for each rail on the ladder. In the trigger_traversal_modifier properties. Change the Top and Bottom values to match the size of the ladder. The info_teleport_magnet you create at the end, copy that and place it on the other side of the ladder. Now the teleport indicator will function both ways.

  • @willhart2188
    @willhart2188 4 ปีที่แล้ว +1

    Awesome!

  • @Die-Coughman
    @Die-Coughman 4 ปีที่แล้ว +2

    Could you make a tutorial on how to trigger scripted sequences?

  • @Matthew.1994
    @Matthew.1994 3 ปีที่แล้ว

    how can i let the enemy drop a specific keycard that i need for a door? i allready have a working keycard and the door with the keycard scanner but now need a way to attach the keycard to the enemy so the enemy drops it when hes killed

  • @royalnobody6771
    @royalnobody6771 4 ปีที่แล้ว +1

    Could you please do a tutorial on multi-tool puzzles and loading segments? :)

    • @Hosomi
      @Hosomi  4 ปีที่แล้ว

      I plan to soon, but I'm having trouble making them work myself. Once I've got them working I'll make a video on it

  • @MissFazzington
    @MissFazzington 2 ปีที่แล้ว +1

    Sadly s&box already removed all of the HL:A assets and i can't spawn NPCs even tho I do have source 2

    • @Jageo
      @Jageo ปีที่แล้ว

      Is there any way to do it currently?

    • @MissFazzington
      @MissFazzington ปีที่แล้ว +1

      @@Jageo unless you have HL:A bought in steam, no, S&box doesn't have NPCs

  • @mihoskrijgsman3106
    @mihoskrijgsman3106 4 ปีที่แล้ว +1

    Hey awesome vid. I was wondering if you know how to trigger multiple events based on timing. I saw this one video of a guy that made a door burst open followed by combine Walking in

    • @Hosomi
      @Hosomi  4 ปีที่แล้ว +1

      Yeah, you can set a delay on outputs, so they only fire after some time has passed

  • @souIburger
    @souIburger 3 ปีที่แล้ว

    hey, late comment so i’m not sure if you’ll respond but, how do you test the maps in the flatscreen mode? is it something native to the workshop tools or is it with a mod?

    • @Hosomi
      @Hosomi  3 ปีที่แล้ว

      When launching the tools, you can turn on/off VR Mode

    • @souIburger
      @souIburger 3 ปีที่แล้ว

      @@Hosomi huh, i didn't know that's what that did (i've only recently started using the tools), thanks

  • @kraig800i
    @kraig800i 4 ปีที่แล้ว

    Does the combine have a non combatant mode. . . . like if you just want them to stand in a doorway and push the player back from entering another part of the map ? ? ?

    • @Hosomi
      @Hosomi  4 ปีที่แล้ว +1

      You can use an "ai_relationship" to make them non hostile, and use a trigger to make them play the push animation

  • @StationXGaming0
    @StationXGaming0 3 ปีที่แล้ว

    Is it possible to set enemies health? I'm trying to create tougher zombies since they are sorta push overs in the main game. ( Even on hard mode. )

    • @Hosomi
      @Hosomi  3 ปีที่แล้ว +1

      Yes. All NPCs have a setHealth input
      Or addHealth, I can't remember. There are some console commands that show NPC's base health as well

    • @StationXGaming0
      @StationXGaming0 3 ปีที่แล้ว

      @@Hosomi Thank you for the quick reply. Yeah I found out you can change zombie health via outputs. Very handy system Valve made for configuring logic like that.

  • @expooll
    @expooll 4 ปีที่แล้ว

    How to add exit from level into the map?

  • @darinz1
    @darinz1 4 ปีที่แล้ว

    How would you block and NPC from moving in a certain area?

    • @Hosomi
      @Hosomi  4 ปีที่แล้ว

      I'll likely cover that in the next enemy NPC video once I've figured it out, as nav_clip and npc_clip didn't seem to work when I tested them today.

  • @wimbuytaert6999
    @wimbuytaert6999 4 ปีที่แล้ว

    Pleas help mee i made 2 levels around 150 hours after building for a long time the shadows from everything is just gone. Just like that. When i fast compile there back. When i fully compill ther gone help meeeeeee

    • @Hosomi
      @Hosomi  4 ปีที่แล้ว

      Fast compile doesn't calculate indirect lighting, which creates harsh shadows. If you feel the shadows are too well lit when you run full lighting, decrease the brightness of your lights and decrease the amount of indirect lighting.

  • @redi4ka951
    @redi4ka951 4 ปีที่แล้ว

    Is it some kind of new hammer coming with source 2? How can I access it?

    • @souIburger
      @souIburger 3 ปีที่แล้ว

      very late comment so you’ve probably found this out already but this is a version of hammer specific to half-life alyx. access it by right clicking on hla in your library and click properties, then dlc. after that install the workshop tools and you should be good to go.

    • @redi4ka951
      @redi4ka951 3 ปีที่แล้ว

      @@souIburger anyway, thanks for answer

  • @tkmaida
    @tkmaida 4 ปีที่แล้ว

    How do you run your map in flatscreen mode?

    • @Hosomi
      @Hosomi  4 ปีที่แล้ว

      When lauching the tools, at the addon menu, theres a checkbox that says Enable VR.

    • @tkmaida
      @tkmaida 4 ปีที่แล้ว

      @@Hosomi Tysm dude