THE GAME CUSTOMIZATION NETWORK: FPSB | RTSB | RPGB |
Help Wanted: UV Mapper @ Crux Battery (See All) | SUBSCRIBE
 
 

How To Add
A step-by-step guide on how to add models to your map.
Added by...




How To Add Models To Your Map

Contents
Recommended files for this tutorial
Summary
Location of the model files
Adding your chosen model to your map
How to make your newly-added model solid
End

Recommended files for this tutorial
  • Valve Hammer Editor 3.5.
  • Modified counter-strike.fgd file.
  • Tree model.
Click here to download the above files in one package

Summary
This tutorial will guide you through the simple process of adding models to your map.

Before we begin adding a model to your map, let's take a look at where those model (.mdl) files are located.

Location of the model files



(Valve\Steam\SteamApps\accountname\counter-strike\cstrike\models)

Adding your chosen model to your map
Now, for tutorial purposes, let's take a scene that just begs to include a model:


A tree model would look great as a central piece. To do this, we'll be adding a cycler_sprite entity to the map.



Click on the button or press Shift + E, and then click anywhere on one of the 2D windows. A small, green box will appear:




Now, press Enter. A default entity will be created, in this case, a light entity (the default entity may differ for you depending on your Hammer settings):


Next, click on the button or press Shift + S, and left click on the entity you've just created in any one of the four windows.



With the entity highlighted, right click on it in one of the 2D windows:




Clicking on Properties will bring up the Object Properties window. Here, we will change the entity into a cycler_sprite entity by clicking on the circled arrow, scrolling up the list, finding cycler_sprite, and left clicking on it:




Left click on Model / Sprite, then left click on the circled box with 3 dots in it:




Now, browse to your cstrike\models folder, choose the model you want to add (in this case, xen_tree2.mdl), left click on the .mdl file, and click on Open. Your Object Properties window should now look something like this:




Close the Object Properties window and see whether or not your model is where you want it (in this case, not at all):




To move the model, click on the button or press Shift + S, then left click and drag the model in the required 2D windows until it's in the desired place:


If this map were to be compiled now, the player would be able to walk straight through the tree, which isn't very realistic at all. If you'd like players to be able to walk through your models, ignore the next part of this tutorial.

How to make your newly-added model solid
The process of making your newly-added model solid, is quicky and easy. Simply click on the button or press Shift + B, and create a block covered in the NULL texture roughly the same size as the model:





Next, click on the button or press Shift + S, left click on the null-textured block in any of the windows, then press Ctrl + T to tie the block to an entity, which will also bring up the Object Properties window:


Taking what you've previously learnt about changing the class of an entity, change the class of the entity to func_wall if it's not already, then close the Object Properties window.



In the game, a player wouldn't be able to see this block, but they wouldn't be able to walk through it either.

Compile your map and marvel at your newly-added model!

End
I hope you've found this tutorial helpful. Please let me know whether there's any spelling mistakes, issues, or general improvements I'm able to make to it via your comments.

Thank you and happy mapping!


Back to contents
Key Authors
Tommy J N
Category: CS > Mapping
Tags: models, cycler, sprite, entity, mdl
Added 1 year ago - last modified 1 year ago
4,089 views (Stats)
Feedback
Page of 3   1 2 3 Next Page
4 months ago
TAPORZZ



Plzz make a prefb of this

Bananite
4 months ago
estevoo



Hey, what was the .FGD wich you used in this tutorial? (+ or - this.)

I don't speak english well!!!
4 months ago
AZWANTED



The file is deleted.
please reupload it.


Freelance, Indiependent Member
8 months ago
SandeProHiQu



It says file not found when I start the server.

Bananite
8 months ago
PataseV



Nice tutorial helped me alot


Fight fire with Water
9 months ago
LihikinCitk



Nice tutorial!!!
thanks you very much!!!


CS 1.6 Mapper
9 months ago
not liquid o.O



Ok i want to add a model but when i go to the properties under cycler_sprite, model does not show, only sprite does....do i have a bad or old version of hammer?

Bananite
10 months ago



When i compile the map it compiles good no errors but when i run cs and go to the map some seconds after it starts loading ti quit the game and says:

num found name for (model i used)


your not going to see me this fast......
12 months ago
Unit_3



I dont see the model at all. it remains as a purple box

Bananite
12 months ago
csgrabben



Doesnt seem to work so good anyway.... and when i try to write model/blabla.mdl it says it cant find it when i start the server, although it is there...


Mapper
23 records
Page of 3   1 2 3 Next Page
Add Feedback
You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
User Rating [+]
9.4/10
bScore
9.4/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
Well Written
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Added by...

OFFLINE
RIP, 3D Realms.
Ranked 2781st with 666 points.

[+] Donate

Drudge
666 points

Helper
9 exemplary posts

Graduate
Joined 6 May 2008

Ripe Member
Clearance Level 1
Vote for Submitter
You must login or register to access this module!
Like this Tutorial? Vote тommy for one or more monthly awards.
Related Tutorials