Author Topic: How to do custom player models/skins  (Read 5855 times)

0 Members and 1 Guest are viewing this topic.

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
How to do custom player models/skins
« on: May 07, 2007, 01:31:57 PM »
I read in your donations post about having custom models pushed to players so they can see it.  I have recently found a skin that i would like to use for admin's only, but it replaced the combine elite model.  This is an area i do not have much knowledge in, and i was wondering if you could enlighten me on how to restrict access to that model, and how to make people download the changed model.

Thanks for your help.
« Last Edit: May 07, 2007, 02:55:12 PM by Avien »

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: How to do custom player models/skins
« Reply #1 on: May 14, 2007, 07:24:48 PM »
If you want, upload the file and I'll hex it for you.

(Make it a separate model, instead of replacing the combine).
As for the other parts, you'll have to see if some one else can help.


Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: How to do custom player models/skins
« Reply #2 on: May 15, 2007, 01:18:22 PM »
Well i downloaded the skin from garrysmod.org.  It comes with files and replaces the elite model, but i wanted a way to restrict this model to admin's only, this can be done through UTeam, but my other concern is how to force people to download this model.  I havent looked into the new ULX force command though.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: How to do custom player models/skins
« Reply #3 on: May 15, 2007, 01:43:53 PM »
The way I would go about it is:

  • Get model hexed (People will be angry if you force them to replace their default combine model with yours)
  • Use ULX to force model download
  • Write script to prevent players from using the modified model
  • Write script to apply model to admins


Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: How to do custom player models/skins
« Reply #4 on: May 15, 2007, 02:08:35 PM »
Here is the model i am trying to use.

http://www.garrysmod.org/downloads/?a=view&id=6515

Offline WildWill

  • Global Moderator
  • Full Member
  • ****
  • Posts: 100
  • Karma: 15
    • Beast_Building_Server
Re: How to do custom player models/skins
« Reply #5 on: May 15, 2007, 02:28:31 PM »
GD is right on the money there IMO, You can't have people download a model the replaces the one they have, it needs to be hexed. As for the rest of the stuff that you want Uteams can take care of all that by forcing the models on the admins, and just force a model on the other groups aswell. All the standard players on my server have male1.mdl for their model, the admins and operators get to pick whatever model.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: How to do custom player models/skins
« Reply #6 on: May 15, 2007, 02:50:13 PM »
Was a bit tricky to hex, because the game uses the same model for all the combine soldiers, but I got it to work out.



Thar you go.


Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: How to do custom player models/skins
« Reply #7 on: May 17, 2007, 01:46:02 PM »
GD is right on the money there IMO, You can't have people download a model the replaces the one they have, it needs to be hexed. As for the rest of the stuff that you want Uteams can take care of all that by forcing the models on the admins, and just force a model on the other groups aswell. All the standard players on my server have male1.mdl for their model, the admins and operators get to pick whatever model.

Does it actually make them only be male1, or they are defaulted to male1, until they releaize they can change it.

Golden, where should i put this model, and do i need to add anything to force the download?

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: How to do custom player models/skins
« Reply #8 on: May 17, 2007, 01:49:52 PM »
Use some ulx thing to force it. the file is in addon format, so just stick it in there.



Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: How to do custom player models/skins
« Reply #9 on: May 17, 2007, 02:24:36 PM »
Ok i added these lines to my server.cfg file:

"ulx addForcedDownload" "models/Combine_admince.mdl"
"ulx addForcedDownload" "materials\models\Combine_admince.vmt"
"ulx addForcedDownload" "materials\models\Combine_admince.vtf"


I have one last question, using Uteam, how do i make this model be the default?

BTW: which model did you hex?  I dont see the combine elite with the admin on the back....
« Last Edit: May 17, 2007, 02:41:05 PM by Avien »

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: How to do custom player models/skins
« Reply #10 on: May 17, 2007, 06:04:30 PM »
Once you have it in your addons folder, open the spawn menu, click the 'browse models' button and find the admince model in the models list.

As for uteams, I have no clue.


Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: How to do custom player models/skins
« Reply #11 on: May 17, 2007, 06:06:52 PM »
I looked in the spawn menu and saw 2 looking combine pictures.  I am wondering if you hexed the camo combine, not the combine elite with the admin on the back.