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!

Combine Female Assassin code

Discussion in 'Discussion' started by _HappyGoLucky, Apr 17, 2014.

  1. _HappyGoLucky

    _HappyGoLucky Clockwork Customer

    I got two files that say that they overide files as they are a plugin from the main schema file. Here are the files and code.

    cl_hooks
    Code:
    --[[
    	SCREW YOUR GREEN TEXT ALREADY!
    --]]
    
    --Scoreboard thingy...
    function Schema:GetPlayerScoreboardClass(player)
    	local customClass = player:GetSharedVar("customClass");
    	local faction = player:GetFaction();
    	
    	if (customClass != "") then
    		return customClass;
    	end;
    	
    	if (faction == FACTION_FEMA) then
    		return "Combine Female Assassin";
    	end;
    end;
    sh_schema
    Code:
    --[[
    	SCREW IT!
    --]]
    
    function Schema:IsCombineFaction(faction)
    	return (faction == FACTION_FEMA);
    end;

    Errors in the console!
    Code:
    [Clockwork] The femaleassassin plugin has no plugin.ini!
    [CloudAuthX] Loaded external Directory pages. See the Directory for more information.
    [Clockwork] The Schema hook 'IsCombineFaction' was overriden by a plugin, this is not good!
    [Clockwork] The Schema hook 'GetPlayerScoreboardClass' was overriden by a plugin, this is not good!
    
     
  2. Viomi

    Viomi Running ArchLinux

    Change Schema: to PLUGIN: in the function name.

    Add local PLUGIN = PLUGIN;

    To the top of your files.

    Oh, and I'll give you kisses if you've set up the animations for her <3
     
  3. Polis

    Polis Guest

    First code snippet: What are you even doing here? It should be PLUGIN: and not Schema:, and your code is un-needed as the scoreboard name is determined by what you named the faction.

    Second code snippet: No, don't do that. No.

    Third code snippet: You've made no plugin.ini, and you've been overriding schema hooks. Not good.

    Basically, if you want the faction to be a combine faction, in the faction file do
    Code:
    FACTION.isCombineFaction = true;
    This won't put a visor there or anything though.
     
  4. To add the visor you'll have to make a sv_hooks to overwrite the orignal ones and where it says "CP Name rct ect" you have to add what you'll call the Combine Assassin E.g CCA-UU.ASSIN-54095
     
  5. _HappyGoLucky

    _HappyGoLucky Clockwork Customer

    Thanks for the help and the femaleassassin has no plugin.ini isn't a problem, it does and I made sure its fine.
     
  6. Viomi

    Viomi Running ArchLinux

    And the easiest way to do this is with my plugin ;3
     

Previous Readers (Total: 0)