View Single Post
eraserhead
Veteran Member
Join Date: Nov 2009
Old 11-29-2010 , 18:45   Re: [TF2] Wearables for everyone!
Reply With Quote #1546

Which hats are you testing with?

Quote:
Originally Posted by Damizean View Post
Well, I've integrated a small dependencies system to manage the download of the wearable items. Let's say you have your custom model, located at:
Code:
/models/custom/hats/hat.mdl
After reading the model location from the list, the plugin will automatically try to find if a dependencies list file is available for this model, being this dependencies file being named the same as the model, but adding .dep at the end
Code:
/models/custom/hats/hat.mdl.dep
The dependencies file is just a bunch of lines with the files required for that model to correctly work, example extracted from one of my custom hats:
Code:
materials/models/rss-custom/hats/samus/samus-blue.vtf
materials/models/rss-custom/hats/samus/samus.vtf
materials/models/rss-custom/hats/samus/samus-blue.vmt
materials/models/rss-custom/hats/samus/samus.vmt
models/rss-custom/hats/samus/samus.mdl
models/rss-custom/hats/samus/samus.dx80.vtx
models/rss-custom/hats/samus/samus.dx90.vtx
models/rss-custom/hats/samus/samus.sw.vtx
models/rss-custom/hats/samus/samus.vvd
models/rss-custom/hats/samus/samus.phy
Depending on the extension of each file listed, it'll automatically determine the type and preload it correctly. I'm going to attach the Samus helmet so you can see how it's set up.

Do you mean equip automatically with a certain hat the people with the flags? It's doable, I'll make sure to add that for next version.
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead