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!

Other Mixed's Plugins Collection

Discussion in 'Plugins' started by Mixed, Apr 24, 2017.

  1. Michael Sandwich

    Michael Sandwich Get your free TVs!

    What workshop item is required for the UU food plugin?
     
  2. Mixed

    Mixed removed Clockwork Customer

  3. Michael Sandwich

    Michael Sandwich Get your free TVs!

  4. Aspect

    Aspect =) Legend Clockwork Customer

    Oh, didn't know this was here. I was planning on coding these food items in myself. Lol, just saved me a lot of time. Cheers.

    Edit: Are the items supposed to not be edible?
     
    Last edited: Dec 21, 2017
  5. Michael Sandwich

    Michael Sandwich Get your free TVs!

    Are the consumables not consumable?
     
  6. Aspect

    Aspect =) Legend Clockwork Customer

    Nope.
    Only one of them, the CP Ration, and the code was not even correct. Mixed spotted the issue and I corrected it in my files.
    I could add some code to allow players to actually consume them but it would be better if he does it.
     
  7. Michael Sandwich

    Michael Sandwich Get your free TVs!

    So the CP ration is the only thing that's broken. Anything else or?
     
  8. Mixed

    Mixed removed Clockwork Customer

    I'll fix the More Food UU tonight.

    With different bonus stats for each item.
     
    • Like Like x 1
  9. Michael Sandwich

    Michael Sandwich Get your free TVs!

  10. Mixed

    Mixed removed Clockwork Customer

    • Good Coder Good Coder x 2
  11. Papabear3g

    Papabear3g Clockwork Customer

    Is there an updated link that makes the foods consumable? Or should I try making them
     
  12. Mixed

    Mixed removed Clockwork Customer

    I'll update this plugin soon.
     
  13. Aspect

    Aspect =) Legend Clockwork Customer

    I started remaking them myself for my community. When I am done you can have them.
     
  14. Papabear3g

    Papabear3g Clockwork Customer

    I found a fix, you just had to replace those end lines of each items with
    -- Called when a player uses the item.
    function ITEM:OnUse(player, itemEntity)
    player:SetHealth( math.Clamp( player:Health() + 10, 0, player:GetMaxHealth() ) );

    player:BoostAttribute(self.name, ATB_ENDURANCE, 2, 120);
    player:BoostAttribute(self.name, ATB_ACCURACY, 1, 120);
    end;

    -- Called when a player drops the item.
    function ITEM:OnDrop(player, position) end;

    ITEM:Register();
    And obviously change the attribute numbers to what you want
     
    • Winner Winner x 1
  15. Aspect

    Aspect =) Legend Clockwork Customer

    Yeah I know, but the descriptions and names are all kinda weird or at least seem weird to me so I will remake it anyways.
    It'll support the Primary Needs V2 Plugin.
     
  16. Mixed

    Mixed removed Clockwork Customer

    The new version of More Food UU will provide Primary Needs V2 support.
     
  17. Aspect

    Aspect =) Legend Clockwork Customer

    Oh nice
    Well ima make my own anyways.
    Too far to turn back now.
     
  18. Papabear3g

    Papabear3g Clockwork Customer

    Hey, would you know where to find the Unique ID's for the citizen rations, loyalist rations, cp rations,etc?
     
  19. Mixed

    Mixed removed Clockwork Customer

    If there are no ITEM.uniqueID set, this is the Item name in lower case with _ for space.

    Like this:
    ITEM.name = "Ration Package";

    It's unique id will be: ration_package
     
    • Informative Informative x 1
    Last edited: Dec 30, 2017
  20. Papabear3g

    Papabear3g Clockwork Customer

    I tried adding this to the CWU faction lua file, although they still get the default rations
    FACTION.rationUniqueID = "rationing_pack_for_priority_citizen_loyalist";
     

Previous Readers (Total: 0)