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!

HL2RP Faction pictures

Discussion in 'Development' started by Turret, Nov 23, 2018.

  1. Turret

    Turret Clockwork Customer

    This is a dumb question, but how do I change faction pictures?
    Also, how do I change pictures like dirty.png and scratch.png?
     
    • Good Coder Good Coder x 1
  2. Aspect

    Aspect =) Legend Clockwork Customer

    • Agree Agree x 2
  3. Turret

    Turret Clockwork Customer

    Well, I made the content pack, and it still doesn't work. If it's citizen.png in factions, it just makes the picture to be a default one, and if I change it to something like citizen1.png, it just doesn't work.
     
    • Good Coder Good Coder x 1
  4. Aspect

    Aspect =) Legend Clockwork Customer

    You need to tell the game what picture to use. Do that by checking the faction file.
     
    • Good Coder Good Coder x 1
  5. Turret

    Turret Clockwork Customer

    Checked it, I made it to use my picture, still doesn't show up.
     
    • Good Coder Good Coder x 1
  6. dead flag blues

    dead flag blues "...ours is a world of nuclear giants..." Clockwork Customer

    Did you use the appropriate size and format?
     
    • Agree Agree x 2
  7. Turret

    Turret Clockwork Customer

    Factions are 512x256, scratch.png and dirty.png are 512x512.
    They are .png.
     
    • Good Coder Good Coder x 1
  8. Sly

    Sly Some kinda Sly? Legend Clockwork Customer

    Can you post what your edits in the faction files look like?
     
    • Agree Agree x 1
  9. Turret

    Turret Clockwork Customer

    local FACTION = Clockwork.faction:New("Citizen");

    FACTION.useFullName = true;
    FACTION.material = "serverstuff/factions/citizennew.png";

    -- Called when a player is transferred to the faction.
    function FACTION:OnTransferred(player, faction, name)
    if (Schema:playerIsCombine(player)) then
    if (name) then
    local models = self.models[ string.lower( player:QueryCharacter("gender") ) ];

    if (models) then
    player:SetCharacterData("model", models[ math.random(#models) ], true);

    Clockwork.player:SetName(player, name, true);
    end;
    else
    return false, "You need to specify a name as the third argument!";
    end;
    end;
    end;

    FACTION_CITIZEN = FACTION:Register();


    Others have same paths, too.
     

Previous Readers (Total: 0)