robots not chell
walropodes wrote:
If you don't have a cube spawned in your map, you need to do this or Portal 2 will crash:
```
ent_create_portal_weighted_cube
> Then go:
> ```
setmodel props/metal_box
It's important to not have the .mdl at the end of the model name, or the models/ at the beginning, or the game will crash.
That so made my day. xD
And well then could you do this same thing with a black mesa soldier?
walropodes wrote:
Do you have a Black Mesa soldier 3D model that works in Portal # 1? If so you probably can.
I use portal 1. And No. But I do have an Alyx.
I dunno if the "setmodel" command is in Portal 1 is it? If not, you'll need to use the "modelindex" way that chickenmobile posted earlier
Edit: Cube and turret and stuff works tho.
walropodes wrote:
Also if you wanna do the model changing in vscripts you can use GetPlayer().SetModel("models/props/metal_box.mdl");
Good, since GetModelIndex isn't available.
taralqua wrote:
Thanks very much for this post...very helpful to the project I've been working on!
forget about modelindex and put your model of choice in the level and change it at the start. very easy.
the only caveat is that the sounds of chell are not removed (ex: when walking you hear the footsteps for both).
you can easily resolve that by overwriting the related sound files ( I suggest to wait for mod support however).

