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!

SWEP's to Items?

Discussion in 'Discussion' started by sants1, Mar 26, 2013.

  1. sants1

    sants1 I'm an asshole. That's all.

    I want to add some RealCS weapons to a clockwork item. How do I do so?
    [EDIT] I also want to know how to make like, rebel uniforms.
     
  2. Make a folder in cwHL2RP\schema\entities\weapons

    Put the SWEP's shared.lua in that folder.

    Set the uniqueID in the item to the name of the folder you made.

    At least I think that's how it's done. It's been a while since a guy I knew showed me.
     
  3. sants1

    sants1 I'm an asshole. That's all.

    Do I have to make the shared.lua? Or where would it be located?
     
  4. In the SWEP.
     
  5. sants1

    sants1 I'm an asshole. That's all.

    .. What..? I asked where shared.lua would be o__O That also sorta ment where would all the CS weapons be.
     
  6. I don't know what to tell you.

    A SWEP should have a shared.lua

    I can't tell you where it is because I didn't make the SWEP, lol.
     
  7. connall

    connall Guest

  8. sants1

    sants1 I'm an asshole. That's all.

    Thank you, Connall, Now. How do I make a tactical rebel uniform?
     
  9. ITEM.replacement = "models/poo/model.mdl";
     
  10. sants1

    sants1 I'm an asshole. That's all.

    Sorry for being a code noob. Can you give me an example on what you would put? I understand that's where you put the model, but an you just give me an example?
     
  11. That is an example. If you know that's where you put the model then what's the problem here @[email protected]
     
  12. You need to make a clothing item. Name yours sh_rebel_tactical or something
    Code:
    local ITEM = Clockwork.item:New("clothes_base"); -- Derives from the clothes_base item in Clockwork.
    	ITEM.name = "Example"; -- What is the name of this item?
    	ITEM.cost = 100; -- How much does this item cost?
    	ITEM.model = "models/props_c17/suitcase_passenger_physics.mdl"; -- What is the model of this item?
    	ITEM.replacement = "models/path/to/model" -- Clothing model
    	ITEM.weight = 2; -- What is the weight of the item in KG.
    	ITEM.useText = "Wear";
    	ITEM.category = "Clothing";
    	ITEM.access = "T"; -- What flags are required to purchase this item (remove the line to not require flags).
    	ITEM.classes = {CLASS_EXAMPLE}; -- What classes can purchase this item (remove the line to not require a specific class).
    	ITEM.uniqueID = "example"; -- This needs to be unique (remove the line to have a unique ID generated).
    	ITEM.business = true; -- Is this item available for purchase at all?
    	ITEM.description = "A suitcase containing clothing."; -- A short description of the item.
    	ITEM.batch = 1; -- How many of the item will be delivered.
    ITEM:Register();
    Follow this format
     
  13. sants1

    sants1 I'm an asshole. That's all.

    Thanks a bunch.
     

Previous Readers (Total: 0)