[Mod] Drowning [drowning]
- Casimir
- Member
- Posts: 1206
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
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.
- 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.
- Casimir
- Member
- Posts: 1206
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
Bugfix: http://ompldr.org/vZmp5Zw/drowning%2020120919.zip
Now I believe it to be bugfree.
Now I believe it to be bugfree.
- Casimir
- Member
- Posts: 1206
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
Yet another update.
- code cleaned
- saves the timer when you quit
http://ompldr.org/vZmtscw/drowning%2020120920.zip
- code cleaned
- saves the timer when you quit
http://ompldr.org/vZmtscw/drowning%2020120920.zip
- Casimir
- Member
- Posts: 1206
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
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.
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.
-
- Member
- Posts: 160
- Joined: Tue Sep 18, 2012 22:11
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.
I slightly modified this mod as follows:
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.
- 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".
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.
- Casimir
- Member
- Posts: 1206
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
-
- Member
- Posts: 14
- Joined: Sat Mar 02, 2013 06:53
- Casimir
- Member
- Posts: 1206
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
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
Check out my stuff! | Donations greatly appreciated! PayPal
- Casimir
- Member
- Posts: 1206
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
/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
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.
Who is online
Users browsing this forum: No registered users and 1 guest