[Mod] Realistic Suffocation [1.0.0] [real_suffocation]

Post Reply
User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

[Mod] Realistic Suffocation [1.0.0] [real_suffocation]

by Wuzzy » Post

The player will lose breath inside solid blocks and suffers high damage when the breath is gone.

That's basically what the mod does.
If for some reason your head ended up inside a solid full cube block like sand, gravel, dirt, stone, etc. you start to lose breath. If you run out of breath while still inside, you lose 10 HP (or 5 “hearts”) per 2 seconds, so it is very deadly. On the other hand, losing breath is always rather slow in Minetest, so you have plenty of time to escape.

Specifically, suffocation will be added to all blocks which:
  • Are solid
  • Are full-sized standard cubes
  • Don't already have their own forms of damage
  • Are not excluded from suffcation by mods
This means being “stuck” in things like stairs, slabs, glass panes, etc. is safe as it is usually easy to get out.

Download: real_suffocation_1.0.0.zip

GIt project page: http://repo.or.cz/minetest_real_suffocation.git
Version: 1.0.0
Works in Minetest 0.4.16 or later
Dependencies: None!
License of everything: WTFPL
Attachments
real_suffocation_1.0.0.zip
(2.89 KiB) Downloaded 453 times
Last edited by Wuzzy on Fri Dec 01, 2017 09:45, edited 3 times in total.

User avatar
octacian
Member
Posts: 597
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian
Location: Canada

Re: [Mod] Real Suffocation [1.0.0] [real_suffocation]

by octacian » Post

Awesome! This is exactly what I was going to do. Now I don't have to!
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Mod] Real Suffocation [1.0.0] [real_suffocation]

by Byakuren » Post

When I read the title i thought it would interface with a USB gas mask
Every time a mod API is left undocumented, a koala dies.

User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [Mod] Real Suffocation [1.0.0] [real_suffocation]

by TumeniNodes » Post

I thought there might be a pillow involved...
This is gonna be a bummer for people who spawn inside blocks :D
A Wonderful World

User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Realistic Suffocation [1.0.0] [real_suffocation]

by Wuzzy » Post

I changed the name to “Realistic Suffocation”. Short name stays, of course.

I chose “Real Suffocation” because this mod works for real, as opposed to a much older mod which didn't work well and only added buggy suffocation for sand, gravel and desert sand.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 25 guests