1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Can't find where clothing limits are for Citizens..

Discussion in 'Discussion' started by Datzy, Mar 16, 2013.

  1. Datzy

    Datzy Guest

    I've been looking all across the cwHL2RP folder, and have looked at every file that I think had relevant results towards my searches on:

    player:GetFaction
    self("whitelist")

    I need to make it where all factions may use Clothing items, but it's a pain in the ass since I can't find the file. Any help?
     
  2. RJ

    RJ no pay Legend Clockwork Customer

    When you contacted me, I thought you needed a check for citizens. In this case, you'd have to edit sh_clothes_base and remove the citizen check. Remove the following from sh_clothes_base which should be the line found at 129 for the ITEM:OnUse function:
    Code:
    if (player:GetFaction() == FACTION_CITIZEN) then
    Be sure to remove the according "else" from the statement.

    This wouldn't be advised if you want it to be used for the factions that aren't using the HL2 male/female models as the sh_clothes_base is used for changing the model's group. If you want the item to change a player's model then use this instead:
    Code:
    ITEM.replacement = "ModelDirectory/ModelName.mdl";
    I believe it still has to use sh_clothes_base as the item base but I haven't tested it on Clockwork, I know this worked for OpenAura though.
     
  3. Razor

    Razor Guest

    Remove also the "end".
     
  4. Datzy

    Datzy Guest

    sh_clothes_base is a Framework file, not part of cwHL2RP.

    Also, I'm using ITEM.replacement, I just need to be able to have all factions use the item.

    On line 120 of sh_clothes_base
    Code:
    	if (self("whitelist") and !table.HasValue(self("whitelist"), player:GetFaction())) then
    it states that it requires a Faction, what I need is where in the cwHL2RP schema it states that only FACTION_CITIZEN can use the item.
     
  5. RJ

    RJ no pay Legend Clockwork Customer

    You're incorrect, there's also a sh_clothes_base for cwHL2RP.
     
  6. Datzy

    Datzy Guest

    EDIT: looks like I'm retarded. Sorry. I'll get on this.
     

Previous Readers (Total: 0)