Walking NPC's?
Quote from lord_blex on November 25, 2012, 11:19 pmhello
I'm completely new to map making, so obviously my first project is something difficult and complex. (Yeah, I don't see the logic behind it either..)
I spent a good day trying to figure out how to add an npc to my map, that can sort of interact with the player (nothing fancy, just walking around and waving). The waving part works just fine, but I can't get it to walk. If I use an actor it doesn't want to move, so I thought I use a dynamic prop, make it move along a track and add a walking animation. But there is no walking animation 0.o (I'm talking about P-Body.) I cycled through the list a couple of times, but couldn't find anything that's working..
Soo, can anyone give me a hand how to do this?
hello
I'm completely new to map making, so obviously my first project is something difficult and complex. (Yeah, I don't see the logic behind it either..)
I spent a good day trying to figure out how to add an npc to my map, that can sort of interact with the player (nothing fancy, just walking around and waving). The waving part works just fine, but I can't get it to walk. If I use an actor it doesn't want to move, so I thought I use a dynamic prop, make it move along a track and add a walking animation. But there is no walking animation 0.o (I'm talking about P-Body.) I cycled through the list a couple of times, but couldn't find anything that's working..
Soo, can anyone give me a hand how to do this?

Quote from ChickenMobile on November 26, 2012, 5:48 amThere definitely is a walking animation for P-Body otherwise the player wouldn't look like they walk.
portalGun_run is the animation you're after, however players models are on a completely different level altogether than static and other dynamic props. Probably the only way in order to make a 'bot' run is to make them an actual npc (generic_actor), but unfortunately I have had no success in trying to get bots walking through the default HL2 entities (ai goals etc.).In Portal 2 you never see a moving or walking npc so unfortunately Valve never included the support in the game for it. I bet there probably is some way to do so, but I believe it would take a lot of in-depth research or include hacky work-arounds.
There definitely is a walking animation for P-Body otherwise the player wouldn't look like they walk.
portalGun_run is the animation you're after, however players models are on a completely different level altogether than static and other dynamic props. Probably the only way in order to make a 'bot' run is to make them an actual npc (generic_actor), but unfortunately I have had no success in trying to get bots walking through the default HL2 entities (ai goals etc.).
In Portal 2 you never see a moving or walking npc so unfortunately Valve never included the support in the game for it. I bet there probably is some way to do so, but I believe it would take a lot of in-depth research or include hacky work-arounds.

Quote from josepezdj on November 26, 2012, 6:22 amHmmm... This thread has reminded me of a video I watched like 1 year ago. Please check.
I do think it can be achieved somehow as Chicken says by means of hacks and workarounds, since that video was for Portal (HL2), where G-Man was an actual NPC, right? Would it be possible to import the NPC entity into Portal2?
What's more interesting: would it be possible to fake a coop map only to take control of the 2nd player and do as it would be walking and such while the map indeed is a singleplayer one?
Hmmm... This thread has reminded me of a video I watched like 1 year ago. Please check.
I do think it can be achieved somehow as Chicken says by means of hacks and workarounds, since that video was for Portal (HL2), where G-Man was an actual NPC, right? Would it be possible to import the NPC entity into Portal2?
What's more interesting: would it be possible to fake a coop map only to take control of the 2nd player and do as it would be walking and such while the map indeed is a singleplayer one?
Quote from FelixGriffin on November 26, 2012, 8:30 amI think you can do it with a generic_actor, there was a video about that a while ago.
I think you can do it with a generic_actor, there was a video about that a while ago.
Quote from lord_blex on November 26, 2012, 10:23 amChickenMobile wrote:There definitely is a walking animation for P-Body otherwise the player wouldn't look like they walk.
portalGun_run is the animation you're after, however players models are on a completely different level altogether than static and other dynamic props. Probably the only way in order to make a 'bot' run is to make them an actual npc (generic_actor), but unfortunately I have had no success in trying to get bots walking through the default HL2 entities (ai goals etc.).In Portal 2 you never see a moving or walking npc so unfortunately Valve never included the support in the game for it. I bet there probably is some way to do so, but I believe it would take a lot of in-depth research or include hacky work-arounds.
I know that there is a walking animation. The strange thing is that it doesn't work on my prop (it's not even showing as walking in the model browser) while other animations work just fine. Btw I looked into the level where Wheatley destroys a test chamber and you can see P-Body for a second and they were using a prop dynamic as well, so it should be possible to animate it correctly.
Edit: nevermind, it's just a custom animation for that specific scene...josepezdj wrote:Hmmm... This thread has reminded me of a video I watched like 1 year ago. Please check.I do think it can be achieved somehow as Chicken says by means of hacks and workarounds, as that video was for Portal (HL2) where G-Man was an actual NPC, right? Would ot be possible to import the NPC entity into Portal2?
I saw this video with Portal 2 too, they were using a generic_actor, but when I tried to compile the map, it didn't move for me.. I think they were using something other than the Authoring Tools to make/port the map. Which is weird, because it means, that the game supports something that the sdk doesn't..
josepezdj wrote:What's more interesting: would it be possible to fake a coop map only to take control of the 2nd player and do as it would be walking and such while the map indeed is a singleplayer one?
portalGun_run is the animation you're after, however players models are on a completely different level altogether than static and other dynamic props. Probably the only way in order to make a 'bot' run is to make them an actual npc (generic_actor), but unfortunately I have had no success in trying to get bots walking through the default HL2 entities (ai goals etc.).
In Portal 2 you never see a moving or walking npc so unfortunately Valve never included the support in the game for it. I bet there probably is some way to do so, but I believe it would take a lot of in-depth research or include hacky work-arounds.
I know that there is a walking animation. The strange thing is that it doesn't work on my prop (it's not even showing as walking in the model browser) while other animations work just fine. Btw I looked into the level where Wheatley destroys a test chamber and you can see P-Body for a second and they were using a prop dynamic as well, so it should be possible to animate it correctly.
Edit: nevermind, it's just a custom animation for that specific scene...
I do think it can be achieved somehow as Chicken says by means of hacks and workarounds, as that video was for Portal (HL2) where G-Man was an actual NPC, right? Would ot be possible to import the NPC entity into Portal2?
I saw this video with Portal 2 too, they were using a generic_actor, but when I tried to compile the map, it didn't move for me.. I think they were using something other than the Authoring Tools to make/port the map. Which is weird, because it means, that the game supports something that the sdk doesn't..


Quote from ChickenMobile on November 27, 2012, 1:09 amTry looking at this thread.
post86467.htmlPerhaps you can get that example map to work.
Try looking at this thread.
post86467.html
Perhaps you can get that example map to work.
Quote from lord_blex on November 28, 2012, 2:37 pmChickenMobile wrote:Perhaps you can get that example map to work.No, I can't really make it do anything. :S Thanks though..
Do you have any idea why the walking animations don't work on my prop_dynamic? Is it somehow programmed that they can only work when an npc/player is actually walking?I guess I'll have to make a custom animation in Blender or something. Never done that..
No, I can't really make it do anything. :S Thanks though..
Do you have any idea why the walking animations don't work on my prop_dynamic? Is it somehow programmed that they can only work when an npc/player is actually walking?
I guess I'll have to make a custom animation in Blender or something. Never done that..
Quote from FelixGriffin on November 28, 2012, 5:13 pmAre you sure you have the right model?
Are you sure you have the right model?
Quote from lord_blex on November 28, 2012, 8:19 pmFelixGriffin wrote:Are you sure you have the right model?Yeah, I think so.
models/player/eggbot/eggbotOn a sort of related note: how can I import a model and/or animation into Blender? This doesn't seem to work...
Yeah, I think so.
models/player/eggbot/eggbot
On a sort of related note: how can I import a model and/or animation into Blender? This doesn't seem to work...
Quote from lord_blex on November 30, 2012, 8:40 pmCan I set the animation of a generic_actor? It doesn't seem to have a property like that..
Also: is there somewhere a good Portal2-Hammer guide with all the more advanced things (as well)? It's really hard to find out about things if you have to specifically look for everything. (Yes, I know about the dev wiki. It's great, but isn't the best for learning..)
Can I set the animation of a generic_actor? It doesn't seem to have a property like that..
Also: is there somewhere a good Portal2-Hammer guide with all the more advanced things (as well)? It's really hard to find out about things if you have to specifically look for everything. (Yes, I know about the dev wiki. It's great, but isn't the best for learning..)