Invulnerability for players

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

Invulnerability for players

by Wuzzy » Sun Aug 24, 2014 15:29

Hi!
Is it possible to make a certain player invulnerable, so that they do not take any damage anymore and can not die?

And how?

Edit:
I have already tried to set the armor group immortal=1 by this code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
player:set_armor_group({immortal=1})


The player is at least still vulnerable to fall damage, which is of course not a complete solution.
Last edited by Wuzzy on Sun Aug 24, 2014 17:06, edited 2 times in total.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: Invulnerability for players

by Calinou » Sun Aug 24, 2014 16:07

Giving 20 HP every second or so is a decent solution, as well as using the immortal group, but this doesn't guard against instantly-killing damage sources (like Map Tools' kill blocks).
 

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

Re: Invulnerability for players

by Wuzzy » Sun Aug 24, 2014 17:00

No, this is not a good solution. The player is just less vulnerable, not invulnerable. As you said, this has holes. It’s just a hack.

I noticed that the “immortal” group has a lot of holes, actually. The immortal group does not protect from fall damage, it does not protect from set_hp, it does not protect from drowning damage, it does not protect from damage_per_second nodes (i.e. lava). It seems the only thing it protects from is damage from punches.

What I might really want would be a switch to turn off all health manipulations for a certain player. Or something like that.
 

shaheerziya
Member
 
Posts: 51
Joined: Sat Dec 07, 2013 06:57

Re: Invulnerability for players

by shaheerziya » Mon Aug 25, 2014 15:24

What if a player kept healing itself and revive (instantly at the same place?)
 

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

Re: Invulnerability for players

by davidthecreator » Mon Aug 25, 2014 15:47

you can just disable damage before starting to play
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: Invulnerability for players

by Calinou » Mon Aug 25, 2014 17:12

shaheerziya wrote:What if a player kept healing itself and revive (instantly at the same place?)


It is not possible to close the death screen without client intervention.

davidthecreator wrote:you can just disable damage before starting to play


What Wuzzy wants is an individual damage setting, per-player.
 

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

Re: Invulnerability for players

by twoelk » Mon Aug 25, 2014 17:25

inb4 the rise of the "airsuit", an armor on par with the sword of that same material.
 

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

Re: Invulnerability for players

by Wuzzy » Tue Aug 26, 2014 17:41

Bummer. So it seams that Minetest does not allow for this right now. Well, I guess I have to go with the hack for now. :(
 

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

Re: Invulnerability for players

by davidthecreator » Tue Sep 02, 2014 02:51

download 3d armor mod and make it unbreakable and super defensefull i tested this out with diamond armor i shooted an golden arrow from a bow (throwing mod) up in the air and it done no damage when it faled on me but when i wast wearing diamond armour it dealth me 5 half hearts of damage armour also protects from mobs plus looks cool to just wear a full diamond set or even code it up to even stronger than it was
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: Invulnerability for players

by Minetestforfun » Tue Sep 02, 2014 11:28

@davidthecreator
Good idea ! lord of the test has already an unbreakable armor if you want try :)
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron