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

[TF2] Equipment manager 1.1.8 (05/22/10)


Post New Thread Reply   
 
Thread Tools Display Modes
scopesp
Senior Member
Join Date: Jan 2009
Location: Munich
Old 07-27-2009 , 17:06   Re: [TF2] Wearables for everyone!
Reply With Quote #11

nice nice ;)
thx


ahh hope fix comming soon for that resuply bug

anyways possible to download the skins from fpsbana and put it as hat ?

i got a error like this


Error Vertex File for 'player\items\heavy\football_helmet.mdl' checksum -1423448764 should be 467941287

------

sorry to ask so much maybe is possible to add a chat command for "!hats" ;)

Last edited by scopesp; 07-27-2009 at 19:18.
scopesp is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 07-27-2009 , 17:08   Re: [TF2] Wearables for everyone!
Reply With Quote #12

He means be able to specify flags. I already edited it that way for mine.


Code:
new Handle:Cvcharadminflag = INVALID_HANDLE;
new String:CharAdminFlag[32];

Cvcharadminflag = CreateConVar("sm_tf2_wearables_adminflag", "d", "Admin flag to use for immunity.  Must be a in char format.");
Code:
public OnConfigsExecuted()
{
    GetConVarString(Cvcharadminflag, CharAdminFlag, sizeof(CharAdminFlag));
   
}
Code:
public OnClientPostAdminCheck(client)
{
      
  if(IsValidAdmin(client, CharAdminFlag))
    {
      ThePlayerIsAdmin[client] = true;
  }    
    else
    {
     ThePlayerIsAdmin[client] = false;
  }    
}
Code:
stock bool:IsValidAdmin(client, const String:flags[])
{
    if (!IsClientConnected(client))
        return false;
    new ibFlags = ReadFlagString(flags);
    if ((GetUserFlagBits(client) & ibFlags) == ibFlags) {
        return true;
    }
    if (GetUserFlagBits(client) & ADMFLAG_ROOT) {
        return true;
    }
    return false;
}
retsam is offline
Damizean
SourceMod Donor
Join Date: Mar 2009
Old 07-27-2009 , 17:52   Re: [TF2] Wearables for everyone!
Reply With Quote #13

Thank you, I'll implement the admin flags code into the plugin
__________________
Dat annoying guy
Damizean is offline
Send a message via AIM to Damizean Send a message via MSN to Damizean
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 07-27-2009 , 18:12   Re: [TF2] Wearables for everyone!
Reply With Quote #14

thanks man!

someone have custom hats?
__________________

Last edited by Zuko; 07-27-2009 at 18:37.
Zuko is offline
Send a message via ICQ to Zuko
LuFa
Member
Join Date: Mar 2009
Old 07-27-2009 , 19:28   Re: [TF2] Wearables for everyone!
Reply With Quote #15

It works great, but I'm having trouble putting in custom hats. I'm not sure where to put the model and material files, and I'm also not sure how to make it so that clients'll download them
LuFa is offline
Sexual Harassment Panda
Veteran Member
Join Date: Dec 2008
Location: San Diego, CA
Old 07-27-2009 , 19:58   Re: [TF2] Wearables for everyone!
Reply With Quote #16

does this plugin force downloads if everything is configured right for the custom content?
Can you make it so people with certain flags automatically have certain things? this would allow all admins to always have a special armband or something to that effect. On top of that they would be able to select other things as well.
__________________

Last edited by Sexual Harassment Panda; 07-27-2009 at 20:05.
Sexual Harassment Panda is offline
Damizean
SourceMod Donor
Join Date: Mar 2009
Old 07-27-2009 , 20:34   Re: [TF2] Wearables for everyone!
Reply With Quote #17

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.

Quote:
Can you make it so people with certain flags automatically have certain things?
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.
Attached Files
File Type: zip samus.zip (233.0 KB, 484 views)
__________________
Dat annoying guy

Last edited by Damizean; 07-27-2009 at 21:02.
Damizean is offline
Send a message via AIM to Damizean Send a message via MSN to Damizean
Sexual Harassment Panda
Veteran Member
Join Date: Dec 2008
Location: San Diego, CA
Old 07-27-2009 , 20:38   Re: [TF2] Wearables for everyone!
Reply With Quote #18

Quote:
Originally Posted by Damizean View Post
Well, I've made a small dependances system for the wearable items.

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.
1) Do you have to edit the dependency system yourself or will it work if you just list it in your cfgs
2)Plugin currently removes ammo and health as well as resupply lockers
3)When modeling, how do you tell it where to put the wearable
4)Could you post up your custom content?
5)Yes, automatically equip admins with flag b let's say with a certain hat, or armband.
6)Could these admins have other hats as well as the armbands?
__________________

Last edited by Sexual Harassment Panda; 07-27-2009 at 20:45.
Sexual Harassment Panda is offline
Damizean
SourceMod Donor
Join Date: Mar 2009
Old 07-27-2009 , 20:47   Re: [TF2] Wearables for everyone!
Reply With Quote #19

Quote:
1) Do you have to edit the dependency system yourself?
You need to create the dependencies list by yourself, but if you're the modeller, it's just a matter of listing the files the model uses.
Quote:
2)Plugin currently removes ammo and health as well as resupply lockers
What? Sorry, didn't understand this. The plugin works fine with resupplies and stuff, I've tested it on some servers for days before getting this up.
Quote:
3)When modeling, how do you tell it where to put the wearable
You need to create a bone, name it with the same name you want for it to be attached, and skin the model with that bone. The easiest way is to decompile any of the classes model to get the complete skeleton, so you can easily place the models and assign them.
Quote:
4)Could you post up your custom content?
I did, I've uploaded a Samus helmet.
Quote:
6)Could these admins have other hats as well as the armbands?
Right now it's only one model for one client. I didn't want to mess much with the system because there's a limit on how many wearables you can have, and until it's not certain on how to access to hMyWearables, I didn't want to force a lot.

Anyway, in the same wearable model, you can attach various submodels to different bones. For example, in my Sonic mask, I also attached the shoes models to the foot bones
Quote:
7)Could you shorten the command to get wearables, such as !hats
Yeah, will do for next version. Probably for tomorrow.
__________________
Dat annoying guy
Damizean is offline
Send a message via AIM to Damizean Send a message via MSN to Damizean
Sexual Harassment Panda
Veteran Member
Join Date: Dec 2008
Location: San Diego, CA
Old 07-27-2009 , 20:50   Re: [TF2] Wearables for everyone!
Reply With Quote #20

sorry didn't see your upload for samus, but thank you for sonic. Also thank you for the info on the modeling, as I have a friend making some models for us. Also, it doesn't remove the cabinte, but the cabinets ability to give out ammo and such. It has removed all health and ammo drops for us though, I'll look through lots and errors and such to see if it's letting me know anything.

Edit: health and ammo pickups are fine, i must've done something wrong
__________________

Last edited by Sexual Harassment Panda; 07-27-2009 at 20:55.
Sexual Harassment Panda is offline
Reply


Thread Tools
Display Modes

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 06:10.


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