I didn't know where to put this, since there is no real section for normal SDK coding (yadayada).
How do you create a Non-playable-character? Like the metrocop, combine soldier, rebels, and manhacks. I have looked all over Google & Youtube (and this forum) and have found nothing. Could anyone enlighten me, for I know certain members can tell me since mods like Tales of the Galapticon (sorry if I mispelled) reside on Facepunch. I am currently trying to make a small single-player campaign and a new NPC is critical.
Please help.
[QUOTE=YoMother;29429750][url]http://www.halfwit-2.com/?page=tutorials&category=11[/url][/QUOTE]
Awesome website, very informative. But after skimming it for a bit, there seems to be no NPC creation tutorial. Sorry.
[editline]25th April 2011[/editline]
I also love your avatar.
are you trying to make a new npc or simply place and already existing one in your map?
I mean have a custom NPC which YOU created with a model/texture/AI that YOU created. My question is [u]how[/u]?
[editline]25th April 2011[/editline]
[QUOTE=swampie;29429922]are you trying to make a new npc or simply place and already existing one in your map?[/QUOTE]
Make a new one.
[QUOTE=ForgottenKane;29429938]I mean have a custom NPC which YOU created with a model/texture/AI that YOU created. My question is [u]how[/u]?
[editline]25th April 2011[/editline]
Make a new one.[/QUOTE]
okay this is a tough one, i have no idea how to do it, but i know it is tough
good luck man
Click the entity tool on the left
[img]http://gyazo.com/e90926e65a7b4f6105a1b13cf2b0e021.png[/img]
On the right you got the entity bit there. Click where it says "info_player_start" and press "N" on your keyboard, it will go down to the npc section. Select what kind of npc you want.
[img]http://gyazo.com/e2e476d63bd15fa480d23bf5c1a61853.png[/img]
I picked npc_breen, so plop that down in your perspective view. I assume you already made a map
[img]http://gyazo.com/2c9d1d8db04f85fbca8a9b0ebee9946f.png[/img]
Alt + enter can let you edit the settings of the NPC. Combine soldiers have a setting in their properties to dictate their weapons.
[img]http://gyazo.com/09d2d2288834021daf5566cbab8b1ad0.png[/img]
If you want more detailed info like how to make them move around and such, take a look at YoMom's link. Halfwit-2 is fucking amazing.
[editline]25th April 2011[/editline]
goddamnit
Anyways you will have to do some scripting if you want a custom NPC. I don't know the basics of it, but you'll have to make a mod to set up a new NPC. If you have a GMod SNPC, that's [i]really[/i] different. The model will also have to have NPC animations (most do nowadays)
[QUOTE=A big fat ass;29429967]Click the entity tool on the left
[img_thumb]http://gyazo.com/e90926e65a7b4f6105a1b13cf2b0e021.png[/img_thumb]
On the right you got the entity bit there. Click where it says "info_player_start" and press "N" on your keyboard, it will go down to the npc section. Select what kind of npc you want.
[img_thumb]http://gyazo.com/e2e476d63bd15fa480d23bf5c1a61853.png[/img_thumb]
I picked npc_breen, so plop that down in your perspective view. I assume you already made a map
[img_thumb]http://gyazo.com/2c9d1d8db04f85fbca8a9b0ebee9946f.png[/img_thumb]
Alt + enter can let you edit the settings of the NPC. Combine soldiers have a setting in their properties to dictate their weapons.
[img_thumb]http://gyazo.com/09d2d2288834021daf5566cbab8b1ad0.png[/img_thumb]
If you want more detailed info like how to make them move around and such, take a look at YoMom's link. Halfwit-2 is fucking amazing.
[editline]25th April 2011[/editline]
goddamnit
Anyways you will have to do some scripting if you want a custom NPC. I don't know the basics of it, but you'll have to make a mod to set up a new NPC. If you have a GMod SNPC, that's [i]really[/i] different. The model will also have to have NPC animations (most do nowadays)[/QUOTE]
I already have a mod set-up with a string of maps etc.
I know how to code languages such as Java/C++/C#. I have a model sitting there ready, and it's getting quite dusty. Thanks for trying to help, but what I really need is someone like TH89 in this thread.
[editline]25th April 2011[/editline]
Ok, heres a simple(er) way of getting what I want since you all think it's so hard:
How do I change the (normal) zombies speed & texture? I just need to get the basics.
Please help?
(Forget what I posted before).
If you have your mod files, then modify them using what you know about C++/C#.
[QUOTE=ferdam;29430577](Forget what I posted before).
If you have your mod files, then modify them using what you know about C++/C#.[/QUOTE]
Theres a lot, I don't know which ones, nor do I know if I need to take something from HL2 files directly. Sorry to mention it, but you don't necessarily know what you're talking about.
[QUOTE=Daimao;29430792][url]http://developer.valvesoftware.com/wiki/Creating_an_NPC[/url][/QUOTE]
Thank you so much!
[QUOTE=ForgottenKane;29430789]Theres a lot, I don't know which ones, nor do I know if I need to take something from HL2 files directly. Sorry to mention it, but you don't necessarily know what you're talking about.[/QUOTE]
I got it. Sorry about that misunderstandment. Well, it seems Daimao answered you with what you need.
Sorry, you need to Log In to post a reply to this thread.