1. Check out the Store if you're looking to Buy HL2RP or other schemas for your server. You can click Buy Schemas on the very top navigation bar to visit the store.
  2. Use the Plugin Center to easily subscribe to and auto-install Clockwork plugins to your server, or submit and share plugins you have developed.
  3. Having trouble setting up or developing with Clockwork? Check out the Wiki or post in the Support Forum for advice from fellow users.
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!

Gr4Ss' plugin thread v2

Discussion in 'Plugins' started by Gr4Ss, Apr 30, 2016.

  1. Řổşş

    Řổşş Staff Member Clockwork Customer Active Member

    thx m8!
     
    • Friendly Friendly x 1
  2. karl-police

    karl-police Hotrod turret Active Member

    OTA Filters are bugged, why? You can not even remove it.
     
  3. vova82004

    vova82004 Clockwork Customer

    Update Equipable Item Base (From Drive google )
     
  4. karl-police

    karl-police Hotrod turret Active Member

    but this one needs filter.

    Code:
    local ITEM = Clockwork.item:New("armor_clothes_base");
    ITEM.name = "Hazmat Uniform";
    ITEM.uniqueID = "hazmat_uniform";
    ITEM.actualWeight = 4.5;
    ITEM.invSpace = 4;
    ITEM.protection = 0.10;
    ITEM.maxArmor = 70;
    ITEM.hasRebreather = true;
    ITEM.replacement = "models/lambdamovement_coat.mdl";
    ITEM.description = "A lightweight uniform with a large helmet and a grey, camouflaged pattern. It has a rebreather attached to the helmet.";
    ITEM.repairItem = "armor_scraps";
    ITEM.repairAmount = 35;
    ITEM.business = false;
    ITEM.access = "m";
    ITEM.cost = 2000;
    
    ITEM:AddData("Rarity", 2);
    
    -- Called when a replacement is needed for a player.
    function ITEM:GetReplacement(player)
        if (player:GetGender() == GENDER_FEMALE) then
            return "models/humans/airex/airex_female.mdl";
        else
            return "models/humans/airex/airex_male.mdl";
        end;
    end;
    
    ITEM:Register();
    This one doesn't
     
  5. karl-police

    karl-police Hotrod turret Active Member

    that is one with the filter one without filter has no gasmask it has a rebreather which looks like:

    ITEM.hasRebreather = true;

    Code:
    local ITEM = Clockwork.item:New("armor_clothes_base");
    ITEM.name = "Hazmat Uniform";
    ITEM.uniqueID = "hazmat_uniform";
    ITEM.actualWeight = 4.5;
    ITEM.invSpace = 4;
    ITEM.protection = 0.10;
    ITEM.maxArmor = 70;
    ITEM.hasRebreather = true;
    ITEM.replacement = "models/lambdamovement_coat.mdl";
    ITEM.description = "A lightweight uniform with a large helmet and a grey, camouflaged pattern. It has a rebreather attached to the helmet.";
    ITEM.repairItem = "armor_scraps";
    ITEM.repairAmount = 35;
    ITEM.business = false;
    ITEM.access = "m";
    ITEM.cost = 2000;
    
    ITEM:AddData("Rarity", 2);
    
    -- Called when a replacement is needed for a player.
    function ITEM:GetReplacement(player)
        if (player:GetGender() == GENDER_FEMALE) then
            return "models/humans/airex/airex_female.mdl";
        else
            return "models/humans/airex/airex_male.mdl";
        end;
    end;
    
    ITEM:Register();
     
  6. The Dovahneer

    The Dovahneer i can change my title Active Member

    Do you have an updated version of that old radiation plugin you made by any chance?
     
  7. can u add accessory armor?? ex :

    local ITEM = Clockwork.item:New("accessory_base");

    ITEM.name = "배낭";
    ITEM.cost = 180;
    ITEM.batch = 1;
    ITEM.model = "models/weapons/w_suitcase_passenger.mdl";
    ITEM.weight = 1;
    ITEM.useText = "입기";
    ITEM.category = "의류";
    ITEM.business = true;
    ITEM.access = "i";
    ITEM.description = "배낭안에 물품을 집어넣으세요.";
    ITEM.uniqueID = "acsbackpack";
    ITEM.addInvSpace = 16;
    ITEM.useSound = "items/ammopickup.wav";
    ITEM.isAttachment = true;
    ITEM.attachmentBone = "ValveBiped.Bip01_Spine";
    ITEM.attachmentModel = "models/ninja/signalvariance/attach/act_backpack.mdl";
    ITEM.attachmentOffsetAngles = Angle(0, -90, 90);
    ITEM.attachmentOffsetVector = Vector(0, -4, -44);

    + plus ur armor

    and gasmask too
     
  8. Armor on accessories is a definite no. Protection would be the only thing possible there.

    Accessory gasmasks are possible I think with the new armor plugin. Just not something I am going to do as I'm busy with other projects and uni.
     

  9. thanks
     
  10. karl-police

    karl-police Hotrod turret Active Member

    did you used pac for the coordinations?
     
  11. yes
     
  12. karl-police

    karl-police Hotrod turret Active Member

    teach me :eek:

    No, I ask the maker of PAC3.

    But this is a very nice PRO TIP, my friends! If you want to make items like him, use PAC3.
     
  13. um.. sry for en
    um... sry for english

    first
    ur pac from cord vector ex : (2, 3, -1)

    change (-1, -3, 2)

    middle change - + and side just change both

    angle is idk just ~~











    shit english
     
  14. karl-police

    karl-police Hotrod turret Active Member

    what
     
  15. Whenever I add a gaszone it says to add point A and B once I add them nothing else happens, what am I doing wrong?
     
  16. karl-police

    karl-police Hotrod turret Active Member

    upload_2017-4-12_12-12-25.png
    Make sure its a cube.

    Oh wait I made it wrong
     
  17. karl-police

    karl-police Hotrod turret Active Member

    upload_2017-4-12_12-13-8.png

    there we go
     
    • Funny Funny x 2
    • Winner Winner x 2
  18. The Dovahneer

    The Dovahneer i can change my title Active Member

    Hey @Gr4Ss are you ever planning to port over your old radiation plugin? I've been using the old one but I'm having issues removing the zones. It gives you the text but doesn't remove the zone itself. The plugin otherwise works fine.
     
  19. Not really. Anyone around here is free to do it themselves. Radiation plugin is under a CC-BY-SA license, and you got the zones plugin to do the majority of the heavy lifting.
     
  20. The Dovahneer

    The Dovahneer i can change my title Active Member

    If a new version doesn't exist, mind helping me with the old one? I get this server console error when I try and remove the zones:
    Code:
    [Clockwork:Command]
    
    The 'RadiationZoneRemove' command has failed to run.
    
    gamemodes/cwhl2rp/plugins/radiationzones/plugin/commands/sh_radioationzoneremove.lua:17: attempt to index field 'radationZones' (a nil value)
    
    It ouputs to chat fine but it doesn't actually remove the zone itself.
    Just running the command doesn't do anything like that.
    @Gr4Ss