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!

Any way to create new uniforms ?

Discussion in 'Discussion' started by PR3D4T0R, Jan 18, 2013.

  1. PR3D4T0R

    PR3D4T0R Smoking the Erb' like there's no tomorro

    Hey Guys/Girls.

    Been wondering lately if it was possible to edit or re-create some uniforms for/on HL2RP.
    I've had a mooch around the sh_resistance_uniform and sh_medic_uniform and from the looks of things they're in-editable, if there is a way to create a successful new uniform, could I possibly get a heads up on how to. I've had a lot of experience with LUA so don't go treating me like too much of a noob now ;)


    Yours dearly.
    -Ben
     
  2. Example

    Code:
    --[[
    	© 2012 CloudSixteen.com do not share, re-distribute or modify
    	without permission of its author ([email protected]).
    --]]
    
    local ITEM = Clockwork.item:New("clothes_base");
    ITEM.name = "Metropolice Uniform";
    ITEM.weight = 3;
    ITEM.business = false;
    ITEM.protection = 0.2;
    ITEM.replacement = "models/Police.mdl";
    ITEM.description = "A Metropolice uniform. It has a utility belt, boots, and helmet.";
    
    ITEM:Register();
     
  3. MKW9813

    MKW9813 The community REDCAT-Gaming has to put up with me.

    You could create a CP uniform by copying the script for the medic uniform or Resistance uniform, and remove ITEM.group and replace it with ITEM.replacement

    Like this:
    Code:
    local ITEM = Clockwork.item:New("clothes_base");
    ITEM.name = "Civil Protection Uniform";
    ITEM.replacement = "models/police.mdl";
    ITEM.weight = 3;
    ITEM.business = false;
    ITEM.protection = 0.2;
    ITEM.description = "A basic Civil Protection uniform.";
    
    ITEM:Register();
    
    (That might not be the CP model, as I am typing this out of memory.)
     
  4. PR3D4T0R

    PR3D4T0R Smoking the Erb' like there's no tomorro

    Yeah, to be fair I was completely on to everything else, it all made sense. But when it came down to the ITEM.group I was like "What !?" it made no sense to me.
    Anyway, cheers for the support guys, appreciated.
     

Previous Readers (Total: 0)