Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-09-24 15:19:47, last edited by AK712 (2015-09-24 15:20:36)

AK712
Member
Joined: 2015-02-16
Posts: 94

[Question]A For-Sure Way of Measuring Death

Hello everyone,

I've been having some real problems measuring death in my bots. I've tried using "tele", which seems to work maybe 70% of the time, along with x/y coordinates. But the problem is that users not moving don't "die" very often. It just doesn't register them at all. Is there a way to measure death that's 100% accurate, or do we need to ask the mods for a "die" trigger to be put in the game?


O4DmNuI.png

Offline

#2 2015-09-24 15:28:11, last edited by capasha (2015-09-24 19:07:49)

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Question]A For-Sure Way of Measuring Death

Have you tried to look at message "kill"?
EEPhysics have OnDie event. Have you tried that?

Offline

Wooted by: (3)

#3 2015-09-24 18:59:08

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Question]A For-Sure Way of Measuring Death

Agreed with Capasha: use the 'kill' event, and if you want the x/y of the respawn spot just combine it with the 'm' event (if 'tele' really doesn't work).

Offline

#4 2015-09-24 22:31:09

AK712
Member
Joined: 2015-02-16
Posts: 94

Re: [Question]A For-Sure Way of Measuring Death

"kill" only registers when I "/kill" someone, hence it doesn't work.


O4DmNuI.png

Offline

Wooted by: (2)

#5 2015-09-25 17:28:21

Processor
Member
Joined: 2015-02-15
Posts: 2,246

Re: [Question]A For-Sure Way of Measuring Death

The following conditions must be true:

- m.Type == "tele"
- resetcoins == false (m.GetBool(0) == false)
- players in message == 1 (m.Count == 4)

Things to note:
- /teleport uses the message type "teleport"
- /loadlevel /clear set resetcoins to true
- /respawnall causes the "tele" message to contain more than one player (unless there is only one player that isn't in god/mod/admin mode, in which case you can not reliably detect if someone died or not)


I have never thought of programming for reputation and honor. What I have in my heart must come out. That is the reason why I code.

Offline

Wooted by:

#6 2015-09-26 13:11:26

djrock_man
Member
Joined: 2015-07-04
Posts: 37

Re: [Question]A For-Sure Way of Measuring Death

just look at the death counter //forums.everybodyedits.com/img/smilies/big_smile


was91fishao.gif

reload the page for a new image, guys!! <3

Offline

Wooted by:

#7 2015-09-26 20:01:00

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Question]A For-Sure Way of Measuring Death

djrock_man wrote:

just look at the death counter //forums.everybodyedits.com/img/smilies/big_smile

How can a bot look at death counter of anybody in the room? ...


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Wooted by:

#8 2015-09-26 21:30:09

soulrunner
Member
Joined: 2015-03-10
Posts: 185

Re: [Question]A For-Sure Way of Measuring Death

All I can recommend is having a team changer just below the spawn so as soon as they spawn in, they hit that and when they enter the game/play field, they get teleported though a team change block.


l141.gif

Offline

soulrunner1443299409544245

Board footer

Powered by FluxBB

[ Started around 1732668763.1352 - Generated in 0.043 seconds, 13 queries executed - Memory usage: 1.44 MiB (Peak: 1.56 MiB) ]