Single player P-Body

Avatar
That Greek Guy
124 Posts
Posted Sep 18, 2012
Simple question. How can i make it so the player model in my SP hammer map is P-Body instead of Chell.
Thanks.
Advertisement
Registered users don’t see ads! Register now!
Avatar
Another Bad Pun
516 Posts
Posted Sep 18, 2012
Replied 2 minutes later
BAM
Avatar
ChickenMobile
2,460 Posts
Posted Sep 19, 2012
Replied 4 hours later
tl;dr
- Place a prop dynamic of the pbody player model in your map.- Create a point_clientcommand and a logic_auto- In the logic_auto: OnMapSpawn -> point_clientcommand -> Command -> setmodel player/eggbot/eggbot -> 0.05
Avatar
That Greek Guy
124 Posts
Posted Sep 19, 2012
Replied 17 hours later

ChickenMobile wrote:
tl;dr
- Place a prop dynamic of the pbody player model in your map.
- Create a point_clientcommand and a logic_auto
- In the logic_auto: OnMapSpawn -> point_clientcommand -> Command -> setmodel player/eggbot/eggbot -> 0.05

Wow thats easy and simple.
Thanks :wink:

Advertisement
Registered users don’t see ads! Register now!
Avatar
greykarel
225 Posts
Posted Sep 20, 2012
Replied 23 hours later

That Greek Guy wrote:
ChickenMobile wrote:

tl;dr
- Place a prop dynamic of the pbody player model in your map.
- Create a point_clientcommand and a logic_auto
- In the logic_auto: OnMapSpawn -> point_clientcommand -> Command -> setmodel player/eggbot/eggbot -> 0.05

Wow thats easy and simple.
Thanks :wink:

Yes, it works. But on reload game with savepoint or quicksave after having died or if you just want to get back in your playthrough it may get changed back to Chell.
So in step 3 I suggest to do the following:
a) create new logic_auto if you already have one in your map
b) in logic_auto's properties go to flag tab and uncheck remove on fire
c) and set two outputs
OnMapSpawn -> point_clientcommand -> Command -> setmodel player/eggbot/eggbot -> 0.05 _ fire once YES
OnLoadGame -> point_clientcommand -> Command -> setmodel player/eggbot/eggbot -> 0.05 _ fire once NO

This way all works allright.

Also it can be used if you want to have Chell instead of Bendy in the Workshop. Skip step 1 and instead setmodel player/eggbot/eggbot use setmodel player/chell/player