General > Developers Corner
Force download items and have them work...
Chiller252:
Hey, I'm a noob to gmod severs and a couple nights ago i started my first one ever. I host it from my own computer with perfect connection :D (my friend from California gets 50 ping from me in Colorado). ALL I want, is to get 4 Player models to download to all clients when they join. I do NOT want a dumb Fast Download Domain. But if I have to I guess I could... I am trying to use Downloads.txt in ULX and i have been told that it is working, downloading the models to all clients. But i have been told i need code to make them work...
I have NO clue what this code is. I need help there.
JamminR:
Until someone with more time can provide you with whatever code is necessary to have it added to the Gmod gui automatically, there is a console command called "setmodel" you may wish to look for more on Google.
I forget it's exact use, and my 20 second search of Google which led me to the source dev wiki led it's link to a 'no wiki content, please create' page.
I remember using the command years ago for some extra models we had on the Ulysses gmod server, and after using setmodel, we had to respawn.
I don't remember if it allowed non-admins or non-svcheat server clients to use the command.
While looking for code examples, I did see some indications that models that were intended as ragdolls will most likely not work as players.
That, and some older player models meant for older gmod versions may not work in the new Gmod.
Seems Garry enhanced player models specifically, leaving NPC/ragdoll models compatible with TF2.
Your mileage may vary, but make sure the original models you downloaded were indeed meant to be used as playermodels, and not just some model to be used in a scene.
Chiller252:
ARE YOU SERIOUS (not you don't worry) I have been looking for a solution for this over the course of one whole year... I have asked on 4 different forum websites and searched all the internet. ONLY to come to the conclusion that "setmodel" is the solution... wtf internet.
Chiller252:
no wait this doesn't work wither
Stickly Man!:
http://facepunch.com/showthread.php?t=1158199 Second post should have the correct code, you just need to change it to point to whichever .mdl files it needs to be. Be warned, I'm not entirely sure if this has changed since GM13, though.
Navigation
[0] Message Index
[#] Next page
Go to full version