AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [TF2] Equipment manager 1.1.8 (05/22/10) (https://forums.alliedmods.net/showthread.php?t=98651)

scopesp 07-27-2009 17:06

Re: [TF2] Wearables for everyone!
 
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" ;)

retsam 07-27-2009 17:08

Re: [TF2] Wearables for everyone!
 
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;
}


Damizean 07-27-2009 17:52

Re: [TF2] Wearables for everyone!
 
Thank you, I'll implement the admin flags code into the plugin :)

Zuko 07-27-2009 18:12

Re: [TF2] Wearables for everyone!
 
thanks man!

someone have custom hats?

LuFa 07-27-2009 19:28

Re: [TF2] Wearables for everyone!
 
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 :(

Sexual Harassment Panda 07-27-2009 19:58

Re: [TF2] Wearables for everyone!
 
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.

Damizean 07-27-2009 20:34

Re: [TF2] Wearables for everyone!
 
1 Attachment(s)
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.

Sexual Harassment Panda 07-27-2009 20:38

Re: [TF2] Wearables for everyone!
 
Quote:

Originally Posted by Damizean (Post 883448)
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?

Damizean 07-27-2009 20:47

Re: [TF2] Wearables for everyone!
 
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.

Sexual Harassment Panda 07-27-2009 20:50

Re: [TF2] Wearables for everyone!
 
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


All times are GMT -4. The time now is 13:59.

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