[Mod] Drowning [drowning]

User avatar
Casimir
Member
 
Posts: 1150
Joined: Fri Aug 03, 2012 16:59

by Casimir » Mon Sep 17, 2012 20:04

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: 1150
Joined: Fri Aug 03, 2012 16:59
 

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

by Feorth » Wed Sep 19, 2012 16:16

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

User avatar
Casimir
Member
 
Posts: 1150
Joined: Fri Aug 03, 2012 16:59

by Casimir » Thu Sep 20, 2012 21:36

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

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

User avatar
Casimir
Member
 
Posts: 1150
Joined: Fri Aug 03, 2012 16:59

by Casimir » Wed Dec 26, 2012 00:43

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 » Wed Dec 26, 2012 01:06

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

by 0gb.us » Wed Dec 26, 2012 01:43

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 » Wed Dec 26, 2012 10:37

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: 1150
Joined: Fri Aug 03, 2012 16:59

by Casimir » Fri Dec 28, 2012 20:09

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 » Tue Mar 12, 2013 23:12

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

User avatar
Casimir
Member
 
Posts: 1150
Joined: Fri Aug 03, 2012 16:59

by Casimir » Wed Mar 13, 2013 19:55

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

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

by qznc » Thu May 16, 2013 21:49

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

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

by kaeza » Thu May 16, 2013 21:55

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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36
Location: Earth

by 12Me21 » Fri May 17, 2013 00:54

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.
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
Casimir
Member
 
Posts: 1150
Joined: Fri Aug 03, 2012 16:59

by Casimir » Fri May 17, 2013 14:31

/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/drowning/archive/master.zip
Last edited by Casimir on Fri May 17, 2013 22:12, edited 1 time in total.
 

Previous

Return to Old Mods



Who is online

Users browsing this forum: No registered users and 1 guest