Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Inserting Models

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Instructions

Inserting models is very simple. Yet, inserting them correctly is the difficult part. There are various types of models, each serving a specific purpose. Some models use physics, some models are static. This short tutorial should give you a better understanding on the process of inserting models. Let's start.

Step 1: Open Hammer. Create a new map or open an existing one.

Step 1
Enlarge
Step 1

Step 2: Create a new Entity from the ones on the list. Most likely you'll be using prop_physics or prop_static. I will explain the types later.

Step 2
Enlarge
Step 2

Step 3: Right-click the entity and click properties.

Step 3
Enlarge
Step 3

Step 4: Click on World Model and Browse to look through the library of models.

Step 4
Enlarge
Step 4

Step 5: Here in the Model Browser, you can choose from many models to add to your map. Choose any model.

Step 5
Enlarge
Step 5

Conclusion: After finding a model, click Open. Then click Apply in the Entity Properties window. Your model should now be showing. That's it! Now for the troubleshooting.

Troubleshooting

Q: My model is visible in Hammer; but after I compile it’s invisible in the game. It's still there, just not visible. What happened?

A: Look at the following screenshot.

Image:im_screenshot6.jpg

Notice the little sphere in the center of the entity. This little bugger helps determine how far away you have to be in order for the model to start appearing/disappearing. Notice in HL2 how some models disappear after a certain distance to save on video memory. This is a nice feature for large complex maps. For smaller multiplayer maps, the fade distance is not needed as much. By default, the entity should be set to NOT disappear. It should be set at fademaxdist. But just in case you may have clicked the sphere in the enter and moved it 1 unit larger, it won't appear at all because the fade distance is set to 1 or 2. In which case you would have to be directly next to the model to see it. To fix this, right-click the Entity and go into Properties. Look at the Start Fade Distance property. Set it to -1 if you would like it to not fade at all. Then set the End Fade Distance to 0. Now your model should be visible.

Q: What’s the difference between the different prop types?
A: Look at the entity guide for the best description on these different types.
Prop_dynamic
Prop_dynamic_ornament
Prop_dynamic_override
Prop_physics- Model affected by physics (Example: Barrel, Box)
Prop_physics_clientside
Prop_physics_multiplayer
Prop_physics_override
Prop_ragdoll- Model that moves at bones. (Example: Body, Mattress)
Prop_static- Model with no physics. (Example: Gate)


Q: Where should I put my model files I have made and want to use with Hammer?
A: Make sure you put all the files you compile with your .qc into your (steam install)\counter-strike source\cstrike\models\(name of your model) Then when you go looking for them in your World Model browser you'll find them in Models\(name of your model).

--Theblt 10:17, 25 Nov 2004 (EST)

Personal tools