Repository navigation
Unable for a player to die if not killed by another player #145
Description
Activity
Is anybody working on this issue, if not could I give this a try?
Hey @ahv15 👋 Nope not aware of anybody working on this, feel free!
hey @Cervator was hoping to work on some other issue in the mean time, I was actually not able to see any sort of a kill counter or a death counter after I had started the game , am I supposed to enable anything else in singleplayer so that I can see some sort of a kill or death counter
My screen is something like this :Looks like you got an initial answer on Discord (wise choice to check there!), to add to that a little: the death counter is what you see if you get to where the game ends (after 5 points). I tend to just use
hspeedin the game console then dash back and forth a few times.With this issue resolved the player should be able to die normally and respawn, and for each time that happens their death counter visible on the game over screen should be one higher :-)
Ohhk, I was wondering whether I would have to trudge across the map several times just to see the death counter once. Will make use of this handy hack then.
Reacted by Rasmus PraestholmYep I can usually do it in 20 seconds or so. There's also a variable holding the number of rounds to win a game, you can drop that from 5 to 1 to make it even faster :-)
Reacted by Harshit@ahv15 hi 👋 thanks for working on the issue! tips to end the game quicker:
- go to
LAUtils.javaand changeGOAL_SCOREvariable from5to1, so you need to score 1 point to end the game (already mentioned by Cervator, I just added how to do it) - open the developer tab and gain the enemy team's by writting
giveandredflagorblackflag(it will give you 16 flags each time, but you have to do that for each point or place the rest of the flags - before you score - to the ground, and just grab them from there
Edit:
Also! When you get killed in-game, you re-appear on top of your team's platform!- go to
Actually having a K/D count appear within the game might be quite a nice addition 🤔 It really did slip my mind when working on the elements. Indeed it comes to a surprise when you see that there was a counter for that at the end of the game.
Reacted by Harshit@stefaniamak Thanks for the tips, actually few of the issues in this module seem to be related to the game over screen, hopefully if I gain a better understanding of how everything works I should be able to fix 2-3 issues in one go.
Just wanted to ask if the player gets killed does he normally get teleported back to the base? I got the number of deaths to be updated but the player doesnt seem to get teleported.
So is this a problem with the teleportation or does teleportation normally not happen?
@stefaniamak Everything else works fine, as all the items are being dropped and the health is being restored and the death counter is also being updated but the teleportation part does not work.
@ahv15 yes in multiplayer you get teleported to the base right away! It actually happens instantly (without a warning/notification like "you died!"), which is kind of odd tbh
So does the teleportation part work only in multiplayer or is it supposed to work out even in singleplayer as I had tested it out in singleplayer?
Maybe thats why i wasnt being teleported.
I will give the multiple builds thing a try.
I believe it is supposed to work on single-player too, as you can die alone at multy-player too 👍
Reacted by HarshitThe doubt arised as I saw no problem with the rest of the code , will try checking it out then.
Reacted by Stefania MakrygiannakiNice to see such activity on this 😊 @ahv15 @stefaniamak where are we with this issue right now?
@skaldarnar I haven't been able to do much for the past few weeks as my laptop is being repaired, but I am hoping to take a look at this and a few other things once it comes back.
Reacted by Tobias Nett and Stefania MakrygiannakiReacted by Tobias Nett and Stefania MakrygiannakiOh noes, hardware failures are always bad 😕 good luck with the repair!
Reacted by Harshit


Issue
When the player reaches 0 HP alone without being killed by another client (e.g. when they fall from the high ground), they do not die but continue playing normally.
Proposed solution for now
Have the player's
deathcounter increase, without increasing theirkillscounter.