Raised This Month: $12 Target: $400
 3% 

How to select default game models (ctm_gign.mdl, tm_phoenix.mdl, etc.)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Anjin
Senior Member
Join Date: Apr 2015
Old 06-25-2015 , 09:57   How to select default game models (ctm_gign.mdl, tm_phoenix.mdl, etc.)
Reply With Quote #1

Like the thread says...

Adding:
Code:
"model_path"            "models/player/ctm_gign.mdl"
and:
Code:
    "ctm_gign"
    {
        "name" "ctm_gign"
        "path" "models/player/"
        "team" "humans"
        "access" "public"
        "group" ""
    }
to playerclasses.txt and models.txt doesn't work, in fact, it crashes the server. Using "default" uses the default models, but you can't CHOOSE which ones (FBI, GIGN, SAS, etc.).

So how do I choose a specific default model that is in pak01_dir.vpk and not a custom one in models/player?

Last edited by Anjin; 06-25-2015 at 09:57.
Anjin is offline
Jargon
SourceMod Donor
Join Date: Jun 2012
Location: Sydney, Australia
Old 06-25-2015 , 10:53   Re: How to select default game models (ctm_gign.mdl, tm_phoenix.mdl, etc.)
Reply With Quote #2

If it's like the default zombie model, you'll need to extract it from the .vpk file and put it on your server only. Clients don't need to download it as the path will work for them out of the .vpk but sourcemod cannot read or precache files inside vpk archives.
Jargon is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-25-2015 , 11:23   Re: How to select default game models (ctm_gign.mdl, tm_phoenix.mdl, etc.)
Reply With Quote #3

Thanks, I'll give it a try. Edit: confirmed working, just too bad about the extra step of extracting and copying models, ah well.

SM_Skinchooser can read from .vpk files, I can select the default models from the .vpk without extracting them...

Last edited by Anjin; 06-25-2015 at 12:22.
Anjin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode