Please or Register to create posts and topics.

Walking NPC's?

Page 1 of 2Next

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?

- Science isn't about why, it's about why not!

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.

?????????????????????????????TWP Releases | My Workshop

Hmmm... This thread has reminded me of a video I watched like 1 year ago. Please check.

k6JUUOH9O78

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? :lol:

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]

I think you can do it with a generic_actor, there was a video about that a while ago.

Falsi sumus crusto!
ChickenMobile 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? :lol:

That's exactly what I'm trying to do :P

- Science isn't about why, it's about why not!

Try looking at this thread.
post86467.html

Perhaps you can get that example map to work.

?????????????????????????????TWP Releases | My Workshop
ChickenMobile 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.. :P

- Science isn't about why, it's about why not!

Are you sure you have the right model?

Falsi sumus crusto!
FelixGriffin wrote:
Are you sure you have the right model?

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...

- Science isn't about why, it's about why not!

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..)

- Science isn't about why, it's about why not!
Page 1 of 2Next