FranticDan Posted October 18, 2020 Share Posted October 18, 2020 Death should have a more serious penalty. I'm wondering if anyone knows how to keep all debuffs when dying, and if dying from infection to respawn back with 75% infection. Also spawning back with 50% food and water. I've been looking in the xml but it's a little mind boggling for me. Link to comment Share on other sites More sharing options...
stample Posted October 20, 2020 Share Posted October 20, 2020 Its going to be a pain, but should be possible, I think. Look in buffs.xml Keep debuffs: <buff name="buffStatusCheck01" hidden="true" remove_on_death="false"> You'll need to add that remove_on_death="false" to every debuff you want to not get cleared. Respawning with infection: Add to buffStatusCheck01, an onSelfRespawn check that adds infection level. It'll take some tweaking, I'm sure, to make it 75% but should be doable. Respawn with less food/heatlh: again, in buffs.xml <buff name="buffDeathFoodDrinkAdjust" hidden="true" remove_on_death="false"> Looks like they just set it to 25000 and let the cap push it down to whatever the player's max is. Doing a % is a hassle, I'd rec. just giving it a fixed value like 50 or 75 food. Link to comment Share on other sites More sharing options...
FranticDan Posted October 21, 2020 Author Share Posted October 21, 2020 Thank you very much! This works, I removed a buff in the entityclasses regarding the food and drink, respawning retains your food, though water still gets refilled (confusing!) but I'm ok with that since water is literally everywhere anyway. As for infection, I have it so if you die from it you respawn without any infection. Link to comment Share on other sites More sharing options...
stample Posted October 21, 2020 Share Posted October 21, 2020 I'd be careful with just letting it retain food. What if you die from hunger? Will you respawn already taking damage? Maybe put that buff back in and check the level. If below 30, bump it to 30. Something like that. Link to comment Share on other sites More sharing options...
FranticDan Posted October 21, 2020 Author Share Posted October 21, 2020 You die incredibly slowly from starvation, it's actually a joke. All that starving does is slow your mobility by 10%, stops healing factor from working and you take maybe 1 point of dmg per minute. (And a max stamina hit of course) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.