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!

Just what the hell :P

Discussion in 'Discussion' started by Bescharlie, Jun 5, 2013.

  1. Bescharlie

    Bescharlie Im on the right, sucha pretty little boy ;')

    --[[
    � 2013 CloudSixteen.com do not share, re-distribute or modify
    without permission of its author ([email protected]).
    --]]

    local ITEM = Clockwork.item:New("custom_weapon");
    ITEM.name = "Barret .50";
    ITEM.cost = 15000;
    ITEM.model = "models/weapons/w_gdcm82.mdl";
    ITEM.batch = 1;
    ITEM.weight = 4;
    ITEM.business = true;
    ITEM.category = "Military Grade"
    ITEM.weaponClass = "gdcw_m82";
    ITEM.description = "A Large firearm with an black tint.\nThis firearm utilises .50 ammunition.";
    ITEM.isAttachment = true;
    ITEM.attachmentBone = "ValveBiped.Bip01_Spine";
    ITEM.attachmentOffsetAngles = Angle(0, 0, 0);
    ITEM.attachmentOffsetVector = Vector(-3.96, 4.95, -2.97);
    ITEM:Register();




    That works justtttt fine! Brilliantly - even the weapon works with fast dl so no need for content pack to see it!


    but then this


    --[[
    ? 2013 CloudSixteen.com do not share, re-distribute or modify
    without permission of its author ([email protected]).
    --]]

    local ITEM = Clockwork.item:New("custom_weapon");
    ITEM.name = "m4a1";
    ITEM.cost = 8000;
    ITEM.Access = T
    ITEM.model = "models/weapons/w_m4a1iron.mdl";
    ITEM.weight = 3;
    ITEM.business = true;
    ITEM.category = "Military Grade"
    ITEM.weaponClass = "gdcw_m4a1iron";
    ITEM.description = "A new, Prewar , Shiny , Black M4a1 with an acog sight";
    ITEM.isAttachment = true;
    ITEM.attachmentBone = "ValveBiped.Bip01_Spine";
    ITEM.attachmentOffsetAngles = Angle(0, 0, 0);
    ITEM.attachmentOffsetVector = Vector(-3.96, 4.95, -2.97);
    ITEM:Register();



    Ohhhhhh no, that doesn't work. :p It refuses to show up, any ideas why??

    This one two doesn't work


    local ITEM = Clockwork.item:New("weapon_base");
    ITEM.cost = 7000;
    ITEM.name = "UZI";
    ITEM.model = "models/weapons/w_gdcuzi.mdl";
    ITEM.batch = 1;
    ITEM.weight = 1.5;
    ITEM.access = "T";
    ITEM.business = true;
    ITEM.category = "Military Grade"
    ITEM.weaponClass = "gdcw_fulluzi";
    ITEM.description = "A very rare sub machine gun designed not long before the world ended.";
    ITEM.isAttachment = true;
    ITEM.attachmentBone = "ValveBiped.Bip01_Spine";
    ITEM.weaponCopiesItem = true;
    ITEM.attachmentOffsetAngles = Angle(20, 70, 15);
    ITEM.attachmentOffsetVector = Vector(10, 0, -8);
    Clockwork.item:Register(ITEM);


    Really really, annoying :p
     
  2. Kezter

    Kezter Certified Old Fag

    Please reduced those awful Text sizes it makes it a lot more complicated to read.
     
  3. Bescharlie

    Bescharlie Im on the right, sucha pretty little boy ;')

    I apologise :p
     
  4. Kezter

    Kezter Certified Old Fag

    Also because i'm bit of a OCD freak its all ways nice to keep the Code in a code box. Now try these.

    Code:
    --[[
       ? 2013 CloudSixteen.com do not share, re-distribute or modify
       without permission of its author ([email protected]).
    --]]
    
    local ITEM = Clockwork.item:New("custom_weapon");
       ITEM.name = "m4a1";
       ITEM.cost = 8000;
       ITEM.model = "models/weapons/w_m4a1iron.mdl";
       ITEM.weight = 3;
       ITEM.business = true;
       ITEM.category = "Military Grade"
       ITEM.weaponClass = "gdcw_m4a1iron";
       ITEM.description = "A new, Prewar , Shiny , Black M4a1 with an acog sight";
       ITEM.isAttachment = true;
       ITEM.attachmentBone = "ValveBiped.Bip01_Spine";
       ITEM.attachmentOffsetAngles = Angle(0, 0, 0);
       ITEM.attachmentOffsetVector = Vector(-3.96, 4.95, -2.97);
    ITEM:Register();
    Code:
    local ITEM = Clockwork.item:New("weapon_base");
     ITEM.cost = 7000;
     ITEM.name = "UZI";
     ITEM.model = "models/weapons/w_gdcuzi.mdl";
     ITEM.batch = 1;
     ITEM.weight = 1.5;
     ITEM.business = true;
     ITEM.category = "Military Grade"
     ITEM.weaponClass = "gdcw_fulluzi";
     ITEM.description = "A very rare sub machine gun designed not long before the world ended.";
     ITEM.isAttachment = true;
     ITEM.attachmentBone = "ValveBiped.Bip01_Spine";
     ITEM.weaponCopiesItem = true;
     ITEM.attachmentOffsetAngles = Angle(20, 70, 15);
     ITEM.attachmentOffsetVector = Vector(10, 0, -8);
    Clockwork.item:Register(ITEM);
    
     
  5. Bescharlie

    Bescharlie Im on the right, sucha pretty little boy ;')

    So wait, would those work? or is that just the code put in some nice little boxes? :p
     
  6. Kezter

    Kezter Certified Old Fag

    Replace the existing code for the M4 and UZI with them
     
  7. Bescharlie

    Bescharlie Im on the right, sucha pretty little boy ;')

    Nicely done! What did i have wrong? if you can summarize it in a sentence or two?
     
  8. Kezter

    Kezter Certified Old Fag

    Well you made it so it needed the T flag which is normally for trading menus.
     
  9. Bescharlie

    Bescharlie Im on the right, sucha pretty little boy ;')

    Ahhhhhhh, okay - gotcha ;) Thanks alot.
     
  10. Kezter

    Kezter Certified Old Fag

    No problem :3 Happy to help!

    P.s Helped by a brony :3 xD
     
  11. Please stop going off topic, guys.
     

Previous Readers (Total: 0)