View Single Post
Re: [CZ] Changing model directory "on the fly"?
Old
  (#39)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ] Changing model directory "on the fly"? - 12-07-2005

The way CS works is the "model" value on the client specifies a directory and model name in the "models/player" folder.
Unfortunately this means that you cannot just create a "mapname" subdirectory and redirect model paths to use it since the path gets messed up somehow.

So if you want to change a model you need to do this:
NOTE: This is only for player models! Normal ones are automatic!

- Create the "modchange_cfgs" directory in the mod root ( ie. "cstrike" )
- For each map you want to switch the models on create a new file called "mapname".txt
- Make a new directory in your models/player folder with a name you can remember ( ie. "cs_assault_onos" )
- Copy your replacement model into that folder and rename it to the folder name

The format of the config file is very simple, all it is is this - original_model=new_model.
Example:
Code:
 
leet=onos
gsg9=onos
That will change both the leet and gsg9 models from cs into the alien onos from NS.
All the replacement models in the config will be precached to make sure they download to all the clients.

Still working on it now, will have a screenshot soon.
  
Reply With Quote