SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
84 stars 18 forks source link

Keep experience on death. #4306

Closed northstar3703 closed 5 months ago

northstar3703 commented 5 months ago

I am wondering if there is a way for players to keep their experience on death. I have noticed that in my server when a player dies there experience is set to zero, or at least reduced in some capacity. I was wondering if there is a way around this, as my server utilizes UconomyXP (uconomy based off XP) and it is kind of an issue for players money to wipe every time they die.

to answer a few questions,

QERT2002 commented 5 months ago

image Set this in all modes: normal, easy, hard. If after that experience still loose you must check your plugins

GazziFX commented 5 months ago

It works in opposite way

newExp = oldExp * Lose_Skills_PvP

so you need to set it to 1

northstar3703 commented 5 months ago

its not the skills I am concerned about, those already stay, what im concerned about is players XP count. image

northstar3703 commented 5 months ago

image Set this in all modes: normal, easy, hard. If after that experience still loose you must check your plugins

also if you would have read the bottom part of my post, you would have seen that I already said that I had set loose_skills_pvp/pve to 0 (like i said before the problem is not the skills, its the experience.

DanielWillett commented 5 months ago

They use the same config value, like Gazzi said in the bottom of his post, it needs to be 1 not 0.

https://github.com/Unturned-Datamining/Unturned-Datamining/blob/linux-client-preview/Assembly-CSharp/SDG.Unturned/PlayerSkills.cs#L665

SDGNelson commented 5 months ago

Thanks GazziFX and DanielWillett, their answers are correct that you want this set to 1 not 0.

northstar3703 commented 5 months ago

Thanks GazziFX and DanielWillett, their answers are correct that you want this set to 1 not 0.

yea I had my developer explain it to me in a VC. thats confusing asf but thanks