[Mod] Drowning [drowning]

User avatar
Casimir
Member
Posts: 1206
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

New version.
- working in Multiplayer. You can now use it on your server.
- some bugs cleaned out.

http://ompldr.org/vZmozNg/drowning%2020120917.zip
(WTFPL)

By the way, there is no oxygentank and no bubbles, but I like that. After the first "hurt" you still have time to get to the surface, at least as much as you needed to dive down. And you learn very fast how long you can stay underwater. It feels very intuitive and you don't have your screen full of bars like in minecraft.
Last edited by Casimir on Mon Sep 17, 2012 20:20, edited 1 time in total.

User avatar
Casimir
Member
Posts: 1206
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

Bugfix: http://ompldr.org/vZmp5Zw/drowning%2020120919.zip
Now I believe it to be bugfree.

User avatar
Feorth
Member
Posts: 27
Joined: Sat Sep 08, 2012 00:06
Location: Brazil

by Feorth » Post

Works great !! Thank you very much for the update :D

User avatar
Casimir
Member
Posts: 1206
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

Yet another update.
- code cleaned
- saves the timer when you quit

http://ompldr.org/vZmtscw/drowning%2020120920.zip

User avatar
Casimir
Member
Posts: 1206
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

Update!
http://ompldr.org/vZ3R2eA/drowning%2020121226.zip

- made the code easier, more beautiful, smaller.
- due to that there are no more bugs (I know of).

p.s. It would be nice it there could be a hint in the first post pointing here.

Iqualfragile
Member
Posts: 160
Joined: Tue Sep 18, 2012 22:11

by Iqualfragile » Post

casimir: im asking mods to do so, but you can allways create a new topic for your modifications
Gr8 b8, m8. I rel8, str8 appreci8, and congratul8. I r8 this b8 an 8/8. Plz no h8, I'm str8 ir8. Cr8 more, can't w8. We should convers8, I won't ber8, my number is 8888888, ask for N8. No calls l8 or out of st8. If on a d8, ask K8 to loc8. Even with a full pl8, I always have time to communic8 so don't hesit8.

User avatar
0gb.us
Member
Posts: 841
Joined: Sun Sep 16, 2012 01:55
Location: 0gb.us:30000
Contact:

by 0gb.us » Post

Iqualfragile wrote:casimir: im asking mods to do so, but you can allways create a new topic for your modifications
True. I did that with inventory_plus. The moderators were nice, and moved the new topic for the old plugin to the right forum.

cheesecake

by cheesecake » Post

I slightly modified this mod as follows:
  • Added some documentation that hopefully enables more people to play around with the code.
  • Refactored the code into smaller functions with the same goals as above.
  • Added kind of a visual feedback for the amount of breath that remains until you get hurt. It comes as a tool in your inventory that misuses the progress bar used normally for a tool's degradation. This tool cannot be crafted, you have to give it to yourself. Its name is "drowning:breath_meter".
Get it here: http://ompldr.org/vZ3R6dA

Note that the tool surely has its flaws. One such flaw is that, though you may give yourself multiple copies of the tool, only one of them works. I figured updating more than one tool per player would have been a waste of time that the Minetest server could better be spending on other things.

User avatar
Casimir
Member
Posts: 1206
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

Thank you! The code is very nice to read now. Additional by cleaning up you fixed a bug I made in the last version. And it works very well.

acridstone
Member
Posts: 14
Joined: Sat Mar 02, 2013 06:53

by acridstone » Post

please make a github thing! it is very convenient for my local server.

User avatar
Casimir
Member
Posts: 1206
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

You know, it's open source, you can do it yourself ;)

qznc
Member
Posts: 55
Joined: Tue Jul 03, 2012 09:02

by qznc » Post

ompldr.org is down. Somebody has a copy of the latest zip?

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

by 12Me21 » Post

I'm not sure if anyone has said this or if it has been changed, but falling nodes should hurt you when they hit you, and not any more. You should not be able to suffocate in gravel or sand.
Shoutouts to Simpleflips

User avatar
Casimir
Member
Posts: 1206
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

/grant singleplayer wish
Server: -!- 3 wish have been granted. 1. Use git 2. Reupload 3. Add privilege
/grant singleplayer no_drown
Server: -!- Privileges of singleplayer: interact no_drown shout hug

github: https://github.com/CasimirKaPazi/drowning
download: https://github.com/CasimirKaPazi/drowni ... master.zip
Last edited by Casimir on Fri May 17, 2013 22:12, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest