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!

[Clockwork] Oxygen v3

Discussion in 'Plugins' started by Crazy Catiwis, Jun 27, 2013.

  1. With this plugin, players have limited oxygen when they are underwater. It has an oxygen bar. When you aren't underwater the oxygen is recharged. If you are underwater and you haven't got oxygen, you are dead.

    Report bugs or improvements here.

    Thanks.





    Garry's Mod Clockwork Oxygen plugin
    [​IMG]

    [​IMG]

    The download includes the plugin and the content for it.

    [​IMG]
    (Press to download)
     
  2. Kezter

    Kezter Certified Old Fag

    Re: [Clockwork] Oxygen

    Is there any need for the oversize button?
     
  3. Re: [Clockwork] Oxygen

    Better?
     
  4. Kezter

    Kezter Certified Old Fag

    Re: [Clockwork] Oxygen

    Yesh! :3 But your plugin was a nice idea!
     
  5. Re: [Clockwork] Oxygen

    I'm thinking on doing something like an underwater equipment with oxygen bottles or similar. For stay more time underwater. All ideas are welcome.
     
  6. Faoeoa

    Faoeoa Bored as shit, will do simple devving.

    Re: [Clockwork] Oxygen

    A Scuba Suit would be nice, so I can base it off and fix up a few uniforms of mine once I get this plugin for my schema.
     
  7. Martinerrr

    Martinerrr Guest

    Re: [Clockwork] Oxygen

    If you're looking for suggestions, I have one for you.

    Perhaps having an optional ability (like the Radiation plugin) where you can define areas that would suffocate players. Like space, mountains, torture rooms or generally where the air is very thin.
     
  8. Re: [Clockwork] Oxygen

    Hmmm, Ok, but first I'm making the oxygen tank for have more oxygen.
     
  9. Re: [Clockwork] Oxygen

    Improved. Now it has a oxygen tank item, when you have that item in your inventory, you have a lot of oxygen. The download includes the content for the oxygen tank item.
     
  10. Added air compressors and HUD for the oxygen tank O2.
     
  11. This can easily be modified of course, but it would be nice if the default amount of time one can be under water was a bit longer and if the recharge time would be quicker. Anyhow, nice plugin man! :)
     
  12. kurozael

    kurozael Cloud Sixteen Director Staff Member Administrator Investor

    Brilliant!
     
  13. I set it short because the idea was to keep people from using water for mingue. (Using it to escape the CP's, etc).

    Then I made the oxy tank for other roles like the rebels or the cp's.

    Thanks you!
     
  14. Garrus

    Garrus I like dragons, yargh.

    What line do you edit to extend the amount of time you can stay under? I want to make it around 15-20 seconds.
     
  15. Plugin sv_hooks.lua

    You can do two things:

    1.- Change the 2 for other number. (The function starts every two seconds)

    Code:
    -- Called each tick.
    function PLUGIN:Tick()
    
    	if( !self.NextCheck or self.NextCheck < CurTime() )then
    		self.NextCheck = CurTime() + 2;
    2.- Change the number 25 at the line 37. (Each time the function starts (the default is 2 seconds) takes 25 points of oxygen, if you reduce that number you can be more time underwater)
    Code:
    v:SetCharacterData("oxygen", v:GetCharacterData("oxygen") - 25);
    I recommend the second option
     
  16. Garrus

    Garrus I like dragons, yargh.

    Oh alright, thanks.
     
  17. I'm having a glitch. When I do /chargiveitem "oxygen tank", I get it and it works fine, but if someone goes on another character, it shows up on their back without actually being in their inventory, and the oxygen meter doesn't show up.

    Also, is there a way to require it be equipped rather sitting in the inventory?
     
  18. Yeah, but for that it should be a SWEP rather than only an item.
     

Previous Readers (Total: 0)