Killing a player

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

Killing a player

by Wuzzy » Sat Jul 05, 2014 16:28

How do I reliably (!) kill a player?

I already tried this:
Code: Select all
player:set_hp(0)


But this only works if damage is enabled. If the damage is disabled, the player won’t die.
 

User avatar
Calinou
Moderator
 
Posts: 3155
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: Killing a player

by Calinou » Sat Jul 05, 2014 16:59

I don't think it's even possible to kill a player if damage is disabled, that's the point.

You can only kick them or teleport them to the spawn point.
 

prestidigitator
Member
 
Posts: 640
Joined: Thu Feb 21, 2013 23:54
 

wilkgr76
Member
 
Posts: 831
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: Killing a player

by wilkgr76 » Wed Dec 02, 2015 01:23

Perhaps setup another trigger for the death formspec (and the falling over), such as a command?
N/A
 

User avatar
azekill_DIABLO
Member
 
Posts: 7472
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
DS-minetest
Member
 
Posts: 1088
Joined: Thu Jun 19, 2014 19:49
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.
GitHub: DS-Minetest
In-game: DS

Re: Killing a player

by DS-minetest » Mon Mar 28, 2016 14:40

azekill_DIABLO wrote:maybe teleport him into lava?

the player could teleport to home or spawn before he dies and if damage is disabled...
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
azekill_DIABLO
Member
 
Posts: 7472
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

wilkgr76
Member
 
Posts: 831
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76

Re: Killing a player

by wilkgr76 » Tue Mar 29, 2016 05:11

azekill_DIABLO wrote:or create a block like the MEZE mod, which kill anyone which tuchs it.

With damage disabled, it's not possible...

EDIT: Or make them leave (see my sig)
Last edited by wilkgr76 on Tue Mar 29, 2016 23:51, edited 1 time in total.
N/A
 

User avatar
azekill_DIABLO
Member
 
Posts: 7472
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: Killing a player

by azekill_DIABLO » Tue Mar 29, 2016 15:47

:[

i think the meze mod checks if you have damage [on] or [off]

maybe when deleting this it would work....

will try this!
 

User avatar
AiTechEye
Member
 
Posts: 676
Joined: Fri May 29, 2015 21:14
Location: Sweden
GitHub: AiTechEye

Re: Killing a player

by AiTechEye » Tue Mar 29, 2016 18:27

You have to hack the minetest core to do it :-)

Because it is disabled inside the damage system, so nothing can add or set damage on the players.
 

User avatar
DS-minetest
Member
 
Posts: 1088
Joined: Thu Jun 19, 2014 19:49
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.
GitHub: DS-Minetest
In-game: DS

Re: Killing a player

by DS-minetest » Tue Mar 29, 2016 22:26

You could delete the player object.
Its like a kick.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

sofar
Developer
 
Posts: 1999
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Killing a player

by sofar » Tue Mar 29, 2016 22:37

disable player physics, disallow movement and put player in a location where they can't do anything? (e.g. y=-32766) that wouldn't make them dead, but they wouldn't be able to do much.

I'd argue it's a bug that there isn't a method directly to do this.
 


Return to WIP Mods



Who is online

Users browsing this forum: Exabot [Bot] and 3 guests