env_model


khazmodan
09-30-2003, 08:47 AM
Hi all, i don´t know if this is a good place to ask it, since i´m a noob on mapping.

hehehe

I´ve been playing around with WorldCraft and when i choose a model and put it on the map with env_model when i compile the map and run it i can pass through the model like there were nothing there.

Thanks.

FuzzDad
09-30-2003, 08:55 AM
A lot of models have their ground center point at the very bottom of the model...that's the point the model is "seen" by the engine. If that point (it's the red X on your hammer screens) is inside a brush...the model will not show up in-game. Try slightly moving the model up a bit...it can get tricky on slanted surfaces too.

Draft Dodger
09-30-2003, 09:24 AM
You need to do a thing called "clipping" the model. Models don't block your movement, but world brushes do, so you need to place brushes in the same place as the model to block the players movement. Make the brushes invisible by using the null texture (if you have Zoner's compile tools) or by setting their render mode to texture and their fx amount to 0. This way you will see the model in game, and the invisible brushes will make it so you can't walk through the model.

What FuzzDad is talking about is if your model isn't showing up at all in-game. My comments are if you see it and can walk through it.

khazmodan
09-30-2003, 09:37 AM
Thanks.

I´ll do that.

=]

FuzzDad
09-30-2003, 10:10 AM
Originally posted by Draft Dodger
What FuzzDad is talking about is if your model isn't showing up at all in-game. My comments are if you see it and can walk through it.

Doh...you'd think I actually read the darn post...damn I'm getting old....

Mythic_Kruger
09-30-2003, 10:18 AM
By Waldo: http://www.dayofdefeat.net/forums/showthread.php?s=&threadid=2198

TECHNOR
09-30-2003, 11:01 AM
[i] Make the brushes invisible by using the null texture (if you have Zoner's compile tools) or by setting their render mode to texture and their fx amount to 0. [/B]

To expand a little more on this, when clipping a model you should use textures on the hlbasics.wad I believe called cr_matleaf, cr_matmetal, cr_matsand, or cr_matwood (same rendering properties though). For example, if you need to clip a tree you will use cr_matwood for the trunk and cr_matleaf for leaf part of the tree. This way when somebody shoots to those section a proper sound and animation will show that you are actually shooting wood or leafs.

You can go to www.mardymouse.co.uk, they have a tutorial on clipping for the jeep model.

Regards,
TECHNOR

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.