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 Faction not working?

Discussion in 'Discussion' started by Pawn, Oct 20, 2014.

  1. Pawn

    Pawn Registered User

    Okay, I made a custom faction and I'm pretty sure I got everything right on it. But when I make the character, it does it normally until I have to pic the character model, it doesnt show it at all. And when I look down at my legs, its just errors.

    Here's my code:

    Code:
    local FACTION = Clockwork.faction:New("Conscripts")
    FACTION.whitelist = true;
    FACTION.useFullName = true;
    FACTION.models = {
    		male = {"models/wichacks/artnovest.mdl",
    				"models/wichacks/erdimnovest.mdl",
    				"models/wichacks/ericnovest.mdl",
    				"models/wichacks/joenovest.mdl",
    				"models/wichacks/joenovest.mdl",
    				"models/wichacks/mikenovest.mdl",
    				"models/wichacks/sandronovest.mdl",
    				"models/wichacks/tednovest.mdl",
    				"models/wichacks/vance.mdl"
    				},
    		female = {"models/models/army/female_01.mdl",
    				"models/models/army/female_02.mdl",
    				"models/models/army/female_03.mdl",
    				"models/models/army/female_04.mdl",
    				"models/models/army/female_06.mdl",
    				"models/models/army/female_07.mdl"
    				 };
    };
    
    --Called when a player's model should be assigned to 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_CONSCRIPT = FACTION:Register();
     
  2. Pawn

    Pawn Registered User

    I did copy and paste it from another one. I've done it in the past this exact way before but I lost that file. I've been looking through it for over an hour now and I can't figure it out!
     
  3. Funky

    Funky Clockwork Customer

    Code:
    local FACTION = Clockwork.faction:New("Conscripts")
    
    FACTION.whitelist = true;
    FACTION.material = ""
    FACTION.useFullName = true;
    FACTION.models = {
        female = {"models/models/army/female_01.mdl",
        "models/models/army/female_02.mdl",
        "models/models/army/female_03.mdl",
        "models/models/army/female_04.mdl",
        "models/models/army/female_06.mdl",
        "models/models/army/female_07.mdl"
        },
        male = {"models/wichacks/artnovest.mdl",
        "models/wichacks/erdimnovest.mdl",
        "models/wichacks/ericnovest.mdl",
        "models/wichacks/joenovest.mdl",
        "models/wichacks/joenovest.mdl",
        "models/wichacks/mikenovest.mdl",
        "models/wichacks/sandronovest.mdl",
        "models/wichacks/tednovest.mdl",
        "models/wichacks/vance.mdl"
        };
    };
    
    -- Called when a player is transferred to the faction.
    function FACTION:OnTransferred(player, faction, name)
    	if (faction.name != FACTION_CONSCRIPT) then
    		return false;
    	end;
    end;
    
    FACTION_CONSCRIPT = FACTION:Register();
    I've edited my working custom factions to fit yours. Tell me if it works.
     

Previous Readers (Total: 0)