THE GAME CUSTOMIZATION NETWORK: FPSB | RTSB | RPGB |
Subscribe to FPSBanana | SUBSCRIBE
 
 

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




Key Authors
Tommy J N
Category: CS > Mapping
Tags: models, cycler, sprite, entity, mdl
Added 1 year ago - last modified 1 year ago
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
Feedback
Page of 3   1 2 3 Next Page
8 months ago
TAPORZZ



Plzz make a prefb of this

Bananite
9 months ago
estevoo



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

I don't speak english!!!
9 months ago
AZWANTED



The file is deleted.
please reupload it.


DUDE where's my PIZZA
1 year ago
SandeProHiQu



It says file not found when I start the server.

Bananite
1 year ago
PataseV



Nice tutorial helped me alot


Fight fire with Water
1 year ago
LihikinCitk



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


CS 1.6 Mapper
1 year 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
1 year 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)


getting ready for xmas
1 year ago
Unit_3



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

Testicles...that is all
1 year 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
Please provide constructive feedback and adhere to FPSB's Posting Rules. The submitter also provided the following feedback instructions:
All comments welcome.
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
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
User Rating [+]
9.4/10
bScore
9.4/10
Stamps
This Tutorial in a nutshell...
You cannot stamp yet! Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login.
Well Written
Added by...

OFFLINE
...

Drudge
671 points

Helper
9 exemplary posts

Graduate
Joined 6 May 2008

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