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!

Searching for a plug in

Discussion in 'Discussion' started by Gyroscopic, Mar 10, 2014.

  1. I'm looking for a plug in.. I think or add on that can
    A) Possibly bodygroup Mpf High command uniforms onto another model
    or
    B) Turn items such as a DvL vest or Leet_mpf3 < ex model's uniform into a vest like the Metropolice uniform/Resistance vest
     
  2. diablo1675

    diablo1675 Guest

    I am not entirely sure as to what you're trying here.

    Are you trying to create clothing items for the CP's?

    And as far as I'm aware, CP models don't have different bodygroups, but I may be wrong.
     
  3. By vests do you mean uniforms? just do

    Code:
    ITEM.replacement = "model here";
    in your item
     
  4. Well As I've tested on older servers, They have a medic body group and a resistance bodygroup. If you give them the vests though. As for Sloth, how would you replicate say a DvL uniform into an item as an example so I can base it off that? Or... Leet_police3 I think is the model.
     
  5. Sir Trolled

    Sir Trolled Guest

    I think he's asking for a plugin that includes the vests and stuff but as separate models.
     
  6. Grestin

    Grestin Schema Coder.

    http://forums.cloudsixteen.com/index.php?topic=4719.0
    ^^(This is the different bodygroups rebel clothing you're talking about)^^

    And to make DvL clothing items? Base off my code:
    Code:
    local ITEM = Clockwork.item:New("clothes_base");
    	ITEM.cost = 0;
    	ITEM.batch = 1;
    	ITEM.name = "Division Leader Uniform";
    	ITEM.access = "V";
    	ITEM.business = true;
    	ITEM.replacement = "<put the leet_police3 model path here>";
    	ITEM.weight = 3;
    	ITEM.description = "Elite armor worn by division leaders.";
    Clockwork.item:Register(ITEM);
    However you MAY want to edit values such as the model path, name price and flags, etc., since I don't actually use HL2 but I quickly compiled this from my files.
     
  7. JonneBravo

    JonneBravo Guest

    you can make a plugin for it. you'll find the code needed in sv_hooks

    Code:
    -- Called when a player's default model is needed.
    function Schema:GetPlayerDefaultModel(player)
    	local faction = player:GetFaction();
    	
    	if (self:IsCombineFaction(faction)) then
    		if (self:IsPlayerCombineRank(player, "GHOST")) then
    			return "models/eliteghostcp.mdl";
    		elseif (self:IsPlayerCombineRank(player, "OfC")) then
    			return "models/policetrench.mdl";
    		elseif (self:IsPlayerCombineRank(player, "DvL")) then
    			return "models/eliteshockcp.mdl";
    		elseif (self:IsPlayerCombineRank(player, "SeC")) then
    			return "models/sect_police2.mdl";
    		end;
    	end;
    end;
     
  8. Where would Sv_hooks be located? Sorry to sound stupid.
     
  9. Sir Trolled

    Sir Trolled Guest

    For what, exactly?
     
  10. MrSky

    MrSky player:NotifyAll("hitler is best") Clockwork Customer

Previous Readers (Total: 0)