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. Darklord

    Darklord Clockwork Customer Active Member

    OMG IM TRYING TO ADD GASZONES FOR 12 HOURS WITHOUT SLEEPING I JUST MISSED THIS

    "Note: this plugin does require the Zones plugin to work!"
     
    • Good Coder Good Coder x 2
  2. Darklord

    Darklord Clockwork Customer Active Member

    uhmm could u make a filter for the CP too i wanted to make one and i did but even though CP could wear it they still take damage from the gaszone xD
     
  3. Code:
    local ITEM = Clockwork.item:New("filter_base");
    ITEM.name = "Charcoal Filter";
    ITEM.uniqueID = "charcoal_filter";
    ITEM.model = "models/teebeutel/metro/objects/gasmask_filter.mdl";
    ITEM.cost = 70;
    ITEM.weight = 0.5;
    ITEM.business = true;
    ITEM.maxFilterQuality = 1800;
    ITEM.useText = "Screw On";
    ITEM.access = "Mv";
    ITEM.description = "A filter you can screw onto a gasmask.";
    ITEM.refillItem = "charcoal";
    
    Clockwork.item:Register(ITEM);
    
    And just give CP's an armored clothes suit to make it work.
     
    • Like Like x 1
  4. Darklord

    Darklord Clockwork Customer Active Member

    Well thats an idea too but i wanted to make them like OTA's one, no need an armor or anything... copyed the ota's filter and i changed the faction to mpf xD (didnt worked)
     
  5. Ah, that feature I removed somewhere because it was being a pain in the ass to deal with and turned nice code into ugly spaghetti code. And as LP/NC both have maskless off-duty uniforms CP's had a suit as on-duty uniform anyway so it wasn't being used either.
     
    • Like Like x 1
  6. Cinder

    Cinder psychopathic furry with anxiety Clockwork Customer Active Member

    How would I apply this to instead give the player a PAC3 outfit gas mask? So they keep their model, just gain a gas mask.
     
    • Funny Funny x 1
  7. Got to make the item an attachment, not sure if that works with items on the clothes_base though.
     
    • Like Like x 1
  8. Darklord

    Darklord Clockwork Customer Active Member

    Code:
    FACTION.noGas = true;
    Is not working for this updated plugin what can i use now?
     
  9. Requiescat

    Requiescat Clockwork Customer

    For some reason I can't unequip filters. I'm running the newest CW version. I have equipable items from the plugin center.
     
  10. Try using the one in the google drive. I'm not sure if I updated it in the meantime or not.
     
  11. karl-police

    karl-police Hotrod turret Clockwork Customer Active Member

    Can you fix the crafting pls?
    An error appears.... something with a table @Gr4Ss
     
  12. Claude

    Claude Clockwork Customer

    Are gaszones still working? They seem to be broken on my server... They don't do damage at all.

    I checked and read the code, and I saw no apparent issues, so I have no idea.
     
  13. The Doctor M.D.

    The Doctor M.D. Ay lil' mama lemme' whisper in ya' Clockwork Customer Active Member

    I have an issue where I am unable to find the command for the gas zones. I installed the Zones plugin in the CW folder and the Gaszones in the HL2rp folder.
     
    • Good Coder Good Coder x 1
  14. vova82004

    vova82004 Clockwork Customer

  15. vova82004

    vova82004 Clockwork Customer

    @Gr4Ss , can u re-make radiation zones plugin. Please?
     
    • Like Like x 1
  16. Řổşş

    Řổşş Clockwork Customer Active Member

    @Gr4Ss how to make anti-gas armor? Is there any tutorial?
     
  17. vova82004

    vova82004 Clockwork Customer

    ITEM.hasGasmask = true;
     
    • Good Coder Good Coder x 1
  18. Svensis

    Svensis Guest

    Code:
    local ITEM = Clockwork.item:New("armor_clothes_base");
    ITEM.name = "Gas mask Uniform";
    ITEM.uniqueID = "gasmask_uniform";
    ITEM.actualWeight = 6;
    ITEM.invSpace = 4;
    ITEM.protection = 0.15;
    ITEM.maxArmor = 100;
    ITEM.hasGasmask = true;
    ITEM.isAnonymous = true;
    ITEM.replacement = "models/ddok1994/1980_hazmat.mdl";
    ITEM.description = "An Olive Green uniform, with a functional rebreather, doesnt look like filters are needed.";
    ITEM.repairItem = "armor_scraps";
    ITEM.business = true;
    ITEM.access = "V";
    ITEM.cost = 1500;
    ITEM.batch = 3;
    
    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/ddok1994/1980_hazmat.mdl";
        else
            return "models/ddok1994/1980_hazmat.mdl";
        end;
    end;
    
    ITEM:Register();
     
    • Like Like x 1
    • Funny Funny x 1
    • Good Coder Good Coder x 1
  19. The Way Home

    The Way Home Active Member

    How would you create one of those, which needs a filter to be used?
     
  20. karl-police

    karl-police Hotrod turret Clockwork Customer Active Member

    All Gasmasks have a filter means "I think" there is no special check if is has a filter or not.
     

Current Readers (Users: 1, Guests: 0)

  1. Scotnay

Previous Readers (Total: 0)