To make NPC do any kind of animation you use scripted_sequence entities, so play around with them a bit and see what you can come up with.
@gsp199515 жыл бұрын
You know what you could've also made in this tutorial? Making allies becoming your enemies, but you can't kill them, so just change the Reciprocal property to Yes and now you can kill them. But still, great tutorial for newbies. Keep it up.
@Silwerfish13 жыл бұрын
@NoSRESPAWN Nodes are what the NPCs use to navigate the level. The nodes have connections between them and that information is given to the NPCs so they can find their way from one place to another.
@Soulslayerzx14 жыл бұрын
Best source sdk tutorials in the world. Easy and simple, you should get paid for this.
@Silwerfish14 жыл бұрын
@idonthatethissite You can make the relationships as complicated as you want, you can tell a specific combine to like a specific rebel for example. You'll have to change the relationship for every NPC you want to change the relationship. So if you want several combines to like the player, it won't be enough to just make one of them like the player.
@Silwerfish15 жыл бұрын
You can use the same name for several NPCs or you can use wildcards (so if you have NPCs called "dude1", "dude2" and "dude3", set the name of affected NPC to "dude*" and all your dudes will be affected. Hope this helps.
@Silwerfish15 жыл бұрын
Thank you for the feedback! I have added an annotation showing there's the Reciprocal option too.
@Silwerfish14 жыл бұрын
@Strikerklm96 To do that you have to use Face Poser, my next tutorial will be on this so I'll probably have something for you in a week or so.
@Silwerfish15 жыл бұрын
Thank you! :D The original idea was to create more advaced tutorials, but now I create about what's most requested instead. So if you've got any requests, you know what to do! ;D
@Silwerfish14 жыл бұрын
@Soulslayerzx I'm glad you like my tutorials! :)
@Silwerfish14 жыл бұрын
@Jacc0s use the ai_goal_follow entity. To learn more about the entity go to developer,valvesoftware,com and search for it.
@Silwerfish14 жыл бұрын
@1point61803 You set the class name of the NPC instead of the actual name of it. A class name is for example npc_combine_s or npc_metropolice. If you don't want ALL NPCs of a certain type to be friendly, you can give the NPCs the same name or use wildcards (so one is named "combine_01", the other is named "combine_02". When you select what NPCs the ai_relationship should affect, you can just put in "combine_*" and it will affect all names that start with "combine_".).
@Silwerfish14 жыл бұрын
@wolfservant5 There is a trigger_multiple.
@FireFusionYT_02 жыл бұрын
When the oldest videos give you help on making a game: *poggers* Aside, this is a helpful video, thank you m8e!
@Silwerfish13 жыл бұрын
@SuperCrazyKillah I think point_template is a bit more demanding since it can be used on any entity or group of entities (probably not going to affect you unless you use a load of entities). If you want to make an NPC I suggest you stick to npc_template_maker since that's what it's for.
@Silwerfish13 жыл бұрын
@MyFriendsCallMeTwig Yes, the player is known as "!player" without the quotes. Don't know how it works in MP though. Glad you like the tutorials! :D
@Silwerfish14 жыл бұрын
@denniswarcrafter1 Just place an entity called npc_citizen, npc_zombie, npc_metropolice, npc_alyx, npc_combine_s, or whichever NPC you want in there and it will appear when you start the level.
@Silwerfish14 жыл бұрын
@turtleshells118 They're not programmed to do that quite simply. Thanks!
@RickRay915 жыл бұрын
Oh, thanks! I thought you only showed how he attacks you. Thanks, is there any video about how to make them navigate and like.. break a door?
@Silwerfish12 жыл бұрын
You can make npc_citizen npcs follow you, but I don't know of a way to make any other NPC follow you around. There might be an input on NPCs that can tell them to follow another NPC
@Silwerfish15 жыл бұрын
You should be able to use the same method that I use in this tutorial. I'm not 100% sure, but I'm almost certain that relationship changes apply to NPCs that haven't spawned when the relationship was applied. (You can specify what name you want the spawned NPC to have in the npc_maker)
@RickRay915 жыл бұрын
Ok, thanks, but how to make combine get ready near a door to breach the door with dynamite or so. Like Scruffy's Combine Door Breach V2 look for it,.
@Strikerklm9614 жыл бұрын
How can i make an npc say something and have his mouth move with it. because i know how to use ambient_generic
@CounterLife15 жыл бұрын
how to change the NPC Relationship for the NPC_maker???
@Xyz_xyz712 Жыл бұрын
Can anyone please tell me why mods won’t work on my map I made for Gmod but if I play any other map the mod works . Btw the mod is “ better hl2 NPC battles” on my map I made they sit still and some of the NPCs won’t even shoot but on any other map the mods works perfectly
@MyFriendsCallMeTwig13 жыл бұрын
hi, i really need help! could you put your name as the target so they wont attack you(and only you) is there a way to do that? (to make them just like you) cuz im making this for a multiplayer server and i want them to ignore me. BTW Awesome Tutorials!!!! :) they help me alot !!!
@Silwerfish15 жыл бұрын
No problem, I'm glad you enjoyed it!
@superdvdman14 жыл бұрын
Awsome TUT. Thanks man. DO NOT DELETE.
@Silwerfish14 жыл бұрын
@deaddiet To make an NPC walk you can use a scripted_sequence entity and set the NPC to walk to the destination in the properties of that entity. To learn a bit more about scripted_sequence entities, see my tutorial on NPC animations and/or search for it on developer,valvesoftware,com.
@sanek_3424 жыл бұрын
i made alyx hostile but, she doesen't take damage, how to fix that?
@idonthatethissite14 жыл бұрын
that easy? oh man the only thing I didn't know was !player thing... BTW if you have lots of enemyes you'll have to call them all the same or just use it to one and all combines will like you? and if you make him like a rebel for example, will he like you or attack you but not the rebel?
@Silwerfish15 жыл бұрын
You just click the name of the value in the properties dialog, and you should be presented with a drop down box or a text field or something on the right where you can change its value. I hope this was what you meant.
@cyclopticwonder511 жыл бұрын
please do a toutorial on dropships
@cptray-steam3 жыл бұрын
Didn't work, I tried !player, and !Player, and just leaving it blank. The combine still shot the player once I moved.
@superman5178612 жыл бұрын
what texture?
@Silwerfish15 жыл бұрын
I just get "404 - File or directory not found." (I did remove the two +).
@warkiniskandervolselli6 жыл бұрын
When i make a friendly NPC hostile, you cant do any damage to it, how exactly do i make it so he can take damage from the player?
@Silwerfish6 жыл бұрын
Do you have the "Reciprocal" setting on the ai_relationship set to "Yes"? The problem might be that the NPC is hostile towards the player, but the player is not hostile towards the NPC.
@warkiniskandervolselli6 жыл бұрын
Thanks!
@Silwerfish13 жыл бұрын
@NoSRESPAWN Well I cant explain it any better than that really.
@Silwerfish13 жыл бұрын
@NoSRESPAWN I've made a tutorial on this, it's called "NPC Navigation".
@Trashbinfin11 ай бұрын
how do i do this in J.A.C.K?
@Liamwitz15 жыл бұрын
What about multiple npc's?
@wolfservant514 жыл бұрын
why trigger once, is there a twice?
@Silwerfish13 жыл бұрын
@NoSRESPAWN Ok, you're welcome!
@Silwerfish13 жыл бұрын
@420GamingElite No idea, sorry.
@Silwerfish14 жыл бұрын
@o0ZporK0o Yeah that works.
@deaddiet14 жыл бұрын
@Silwerfish k , thx!
@Silwerfish15 жыл бұрын
Thanks! There is, but that's coding (I think it's C++) and not something I am familiar with.
@Piperz9996 жыл бұрын
Tack!!! :)
@Silwerfish13 жыл бұрын
@rdovydas007 5 years or something like that.
@Lhopx219 жыл бұрын
Do you know if it is possible to change the relationship of a Vortigaunt?
@Silwerfish9 жыл бұрын
I think so yeah, should work the same as for other NPCs I assume.
@Lhopx219 жыл бұрын
Silverfish (Lukas Orsvärn) Haha, thanks again. You've been a big help.
@Silwerfish9 жыл бұрын
You are welcome! :)
@Silwerfish12 жыл бұрын
What do you mean?
@Silwerfish15 жыл бұрын
Thank you!
@dovykiin13 жыл бұрын
How long have you worked with the Hammer ?
@cyclopticwonder511 жыл бұрын
and helicopters
@Silwerfish14 жыл бұрын
@warkey13 Thank you man! :)
@JawaProductions13 жыл бұрын
Nice, thank you.
@Silwerfish15 жыл бұрын
I'm sorry, I don't understand what you mean! :/
@Silwerfish15 жыл бұрын
Are you serious? Check the other tutorials I made man, I have tutorials on NPC navigation and NPC animation (how to make a combine kick in a door). Good luck!
@PebsBeans9 жыл бұрын
Sadly, if you try to make a friendly NPC hate you, it doesn't try to kill you/hurt you/whatever you. Cuz' i'm currently trying to make npc_kleiner hostile
@xweert7118 жыл бұрын
+StrongAdel No, npc_kleiner has no combat A.I. This does work with friendly NPC's.