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!

Custom Factions

Discussion in 'Discussion' started by mlgcatzzz098, Jul 11, 2013.

  1. Can someone post a link to a list of custom white-lists such as CWU and such?
    Thank you, it will help a lot.
     
  2. trurascalz

    trurascalz C16 Developer Legend

    Try This You really should learn to make them yourself, It involves copying and pasting then editing.
     
  3. sants1

    sants1 I'm an asshole. That's all.

    Code:
    local FACTION = {};
    
    FACTION.useFullName = true;
    FACTION.whitelist = true;
    FACTION.material = "newvegas/factions/bos";
    FACTION.models = {
    	female = {"models/power_armor/slow.mdl"},
    	male = {"models/power_armor/slow.mdl"}
    };
    
    -- Called when a player's model should be assigned for the faction.
    function FACTION:GetModel(player, character)
    	if (character.gender == GENDER_MALE) then
    		return self.models.male[1];
    	else
    		return self.models.female[1];
    	end;
    end;
    
    FACTION_BROTHERHOOD = Clockwork.faction:Register(FACTION, "Brotherhood of Steel");
    Use this as a format, just replace the things with what you want. And, heres the class. Oh, I forgot to mention. Make a file called, sh_whateveryouwant.lua in FACTIONS and put that code in it and modify what you want.. Now for this step, go to CLASSES and make a file called sh_whateveryouwant.lua Then replace this code with what you want.

    Code:
    --[[
    	? 2012 CloudSixteen.com do not share, re-distribute or modify
    	without permission of its author ([email protected]).
    --]]
    
    local CLASS = Clockwork.class:New();
    	CLASS.color = Color(200, 200, 50, 255);
    	CLASS.factions = {FACTION_BROTHERHOOD};
    	CLASS.isDefault = true;
    	CLASS.description = "A member of the heavily armed Brotherhood of Steel.";
    	CLASS.defaultPhysDesc = "Wearing a dark grey Power Armor set";
    CLASS_BROTHERHOOD = Clockwork.class:Register(CLASS, "Brotherhood of Steel");
     

Previous Readers (Total: 0)