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!

FACTION.isCombineFaction = true; Not Working.

Discussion in 'Discussion' started by Scar, Sep 1, 2014.

  1. So, I'm trying to create a simple faction, I have all the things ready for it, but no matter what I try, you aren't able to open doors.

    A copy paste of our faction and Class file [respectively]:
    Code:
    local FACTION = Clockwork.faction:New("Scientist");
    
    FACTION.isCombineFaction = true; -- Is this faction a combine faction? Combine factions can open Nexus doors and use Combine locks. Optional, default is false.
    FACTION.whitelist = true; -- If you need a whitelist to use this faction, use true. Otherwise use false.
    FACTION.models = {
    	female = {"models/humans/group17/female_01.mdl","models/humans/group17/female_02.mdl","models/humans/group17/female_03.mdl","models/humans/group17/female_04.mdl","models/humans/group17/female_06.mdl","models/humans/group17/female_07.mdl"},
    	male = {"models/humans/apsci01/male_01.mdl","models/humans/apsci01/male_02.mdl","models/humans/apsci01/male_03.mdl","models/humans/apsci01/male_04.mdl","models/humans/apsci01/male_05.mdl","models/humans/apsci01/male_06.mdl","models/humans/apsci01/male_07.mdl","models/humans/apsci01/male_08.mdl","models/humans/apsci01/male_09.mdl"}
    };
    
    FACTION_SCIENTIST = FACTION:Register();
    Code:
    local CLASS = Clockwork.class:New("Unviersial Union Scientist"); -- What the player will be classified as in the scoreboard.
    	CLASS.color = Color(50, 100, 150, 255); -- RGBA color for chat
    	CLASS.wages = 100; -- Paycheck
    	CLASS.factions = {FACTION_SCIENTIST}; -- What faction uses this class? Make sure to match it with the faction you created above
    	CLASS.isDefault = true; -- When a player makes a character with your faction, this is the class they are given automatically.
    	CLASS.wagesName = "Benefactor Grants"; -- The upper-right hand corner text for "You have received n tokens (Supplies)".
    	CLASS.description = "A Universal Union scientist work for the greater good!"; -- The scoreboard description
    	CLASS.defaultPhysDesc = "A scuffed, not-so-white labcoat is donned on this intellectually gifted scientist"; -- The default physical description (If the player didn't set one)
    CLASS_SCIENTIST = CLASS:Register();
     
  2. vexus

    vexus ej rockwell's worst nightmare Staff Member Manager Legend Clockwork Customer

    In your code:

    Code:
    local CLASS = Clockwork.class:New("Unviersial Union Scientist"); -- What the player will be classified as in the scoreboard.
    Universal is misspelled. Jus' sayin.
     
  3. FFS, I'll change it when I get a fix.
     
  4. vexus

    vexus ej rockwell's worst nightmare Staff Member Manager Legend Clockwork Customer

    Other than that, I'm not the greatest at Lua so I can't help you. Maybe I'll get my friend [member=5656]Vortix[/member] on the thread and check your code for syntax errors and such.
     
  5. _HappyGoLucky

    _HappyGoLucky Clockwork Customer

    Not sure but I think you need to check Theron schema files for it as I think it is faction == mod or faction == ota then have access to that. I am not sure if that's it on my iPod
     
  6. Sixxicles

    Sixxicles Guest

    I'll make a plugin for it.
     
  7. _HappyGoLucky

    _HappyGoLucky Clockwork Customer

    Have you gotten files from sh_schema that make it say

    Code:
    -- A function to get if a faction is Combine.
    function Schema:IsCombineFaction(faction)
    	return (faction == FACTION_*FACTIONHERE*);
    end;
    Do it in a plugin! Or everyone will flip out like ERMERGERD EDUTED FREMWERK!
     
  8. Sophia

    Sophia Guest

  9. Sixxicles

    Sixxicles Guest

    thanks for doing my job for me
    I guess
     
  10. Sophia

    Sophia Guest

    I was actually fixing it up before, but got sidetracked and was doing something else. Then I saw it on my desktop and was like "Oh..." Lol
     
  11. Thank you, here's a gif for your troubles:
    [​IMG]
     
  12. So... I was testing the science faction and... Well, they can't open up biolocks.
    [​IMG]
     
  13. Sophia

    Sophia Guest

    Nope, biolocks work on a seperate thing. I could try and add it if you want?
     
  14. Yeah, We (well, you mostly) should make this completely working so we can let the whole world have it. [​IMG]
     
  15. vexus

    vexus ej rockwell's worst nightmare Staff Member Manager Legend Clockwork Customer

    so many fucking gifs
     
  16. Yup
    [​IMG]
     

Previous Readers (Total: 0)