Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Plugin ID:
1044
Plugin Version:
1.1.8
Plugin Category:
All
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin allows players to equip custom wearable items (those being hats, armors, or anything the administrator sets in the server) to customize the visuals of the characters.
    Unapprover:
    Reason for Unapproving:
    http://forums.alliedmods.net/showthread.php?t=126577
    Old 07-27-2009 , 17:08   Re: [TF2] Wearables for everyone!
    Reply With Quote #1

    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 #2

    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 #3

    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 #4

    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 #5

    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 #6

    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, 487 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 #7

    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 #8

    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 #9

    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
    MrSaturn
    SourceMod Donor
    Join Date: Jan 2009
    Old 07-28-2009 , 03:01   Re: [TF2] Wearables for everyone!
    Reply With Quote #10

    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.
    Cant seem to get it to work at all. All I get are error models.

    I've uploaded the files both onto my gameserver and onto my webhost fast download server.
    I've edited the Translation file (tf2_wearables.items) and TF2_Wearables (in the data folder) to add samus helm.

    I've checked my clientside folder and they seem to be downloading fine. I dont know what could be going wrong.
    __________________
    MrSaturn is offline
    Reply



    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 18:17.


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