Killing a player

User avatar
Wuzzy
Member
 
Posts: 2161
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:
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_hp(0)


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

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
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: 632
Joined: Thu Feb 21, 2013 23:54

Re: Killing a player

by prestidigitator » Sat Jul 05, 2014 19:41

Definte "kill", anyway. ;-)
 

User avatar
wilkgr76
Member
 
Posts: 680
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76
IRC: wilkgr
In-game: wilkgr

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?
I do not care.
 

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

Re: Killing a player

by azekill_DIABLO » Mon Mar 28, 2016 11:25

maybe teleport him into lava?
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
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: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: Killing a player

by azekill_DIABLO » Mon Mar 28, 2016 17:50

or create a block like the MEZE mod, which kill anyone which tuchs it.
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
wilkgr76
Member
 
Posts: 680
Joined: Wed Feb 18, 2015 02:44
GitHub: wilkgr76
IRC: wilkgr
In-game: wilkgr

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.
I do not care.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
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!
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

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.
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
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
Member
 
Posts: 781
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: No registered users and 42 guests

cron