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!

Other Mixed's Plugins Collection

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

  1. I'm interested. ;)
     
  2. ABRACADABRA!

    ABRACADABRA! Active Member

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

    Mixed removed Clockwork Customer Active Member

  4. ABRACADABRA!

    ABRACADABRA! Active Member

  5. Aspect

    Aspect Who I am depends on who you learn it from. Active Member

    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
  6. ABRACADABRA!

    ABRACADABRA! Active Member

    Are the consumables not consumable?
     
  7. Aspect

    Aspect Who I am depends on who you learn it from. Active Member

    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.
     
  8. ABRACADABRA!

    ABRACADABRA! Active Member

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

    Mixed removed Clockwork Customer Active Member

    I'll fix the More Food UU tonight.

    With different bonus stats for each item.
     
    • Like Like x 1
  10. ABRACADABRA!

    ABRACADABRA! Active Member

  11. Mixed

    Mixed removed Clockwork Customer Active Member

    • Good Coder Good Coder x 2
  12. Papabear3g

    Papabear3g Clockwork Customer Active Member

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

    Mixed removed Clockwork Customer Active Member

    I'll update this plugin soon.
     
  14. Aspect

    Aspect Who I am depends on who you learn it from. Active Member

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

    Papabear3g Clockwork Customer Active Member

    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
     
  16. Aspect

    Aspect Who I am depends on who you learn it from. Active Member

    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.
     
  17. Mixed

    Mixed removed Clockwork Customer Active Member

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

    Aspect Who I am depends on who you learn it from. Active Member

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

    Papabear3g Clockwork Customer Active Member

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

    Mixed removed Clockwork Customer Active Member

    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

Previous Readers (Total: 0)