[Tutorial] Adding Models to your map

Go down

[Tutorial] Adding Models to your map

Post by Koyumu on Wed Jul 22, 2009 10:46 am

Adding a model into maps

So you want to add models into your map. It's pretty easy just putting one in. First you need or should get the Half-Life model viewer. Then look through your models in your ctrike/models folder. Find the one you want and write the name of it down if you can't remember it. So lets take a humvee.
And let's say we want to add this model in our map. We would make sure this model was in our cstrike/model folder. Then click on the point entity tool.It's the 4th one down or you can hit shift+e (Image 1).
Then on the right hand side of WC(VHE)there will be an entity list. Scroll thru them and pick the cycler_sprite entity. Point your mouse in the 3d textured window about where you would want to place it.Left click and it's in. Most times it will have to be adjusted in the wireframe views, so the model is on the ground and not floating in the air or buried in the ground.No way to tell until you compile the map and see how it comes out. Most times though you can just put the cycler_sprite square halfway into the ground and it comes out good.
Then in the properties window of the cycler_sprite scroll down to the sprite line And your going to type in models/nameofmodel.mdl in this case with humvee model if the name of it was humvee I would type in models/humvee.mdl . And that's about all there is to adding a model to a map.

Clipping the model

You are better off building a little cube of a map for this,since you will be compilng a few times. For a basic quick map,just
drag out a decent size cube.Hollow it out.Should kind of look like (Picture 1). You can texture it anyway you want.
As you can see you'll need the 3 things in there.(light_environment, info_player_start, cycler_sprite).
Now you can quickly compile this so you can see how the model sits in the map.
As you can see in (Picture 2) the model is half way in the ground.So what you have to do is
grab the cycler_sprite and move it up some. So after I moved it and re-compiled 3 times I got it to line up to the ground.(Picture 3)

Now the fun part begins.You'll have to make a brush about the same size you think the model is. I am using a metal texture. Then make it a func_wall and give it the properties of render mode texture and fx amount of around 150. And what you will get is a block that you can see the model and the block. Now you are going to have to start shaping the brush and more than likely add more brushes until you get the shape of the model. I used a total of 7 brushes to basically outline the model. You can use more or less. This will make it so you can climb on it and making it a func_wall will make it so you can't shoot thru it. Then when you got it all clipped out the way you want it. Take all the brushes and change the fx amount to 0(Picture 4). This will make the func_walls invisible in the game.

So be creative and start mapping!

(c) JayHax0r 2009

Number of posts : 1400
Registration date : 2009-02-18


Back to top Go down

Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum