Mods / Unconscious
Author: propaneko
Side: Both
Created: Nov 17th 2024 at 5:32 PM
Last modified: 14 hours ago
Downloads: 4095
Follow Unfollow 80
Latest file for v1.20.1:
Unconscious_1.8.3.zip
1-click install
ON UPDATE, REMOVE OLD CONFIG FILE OR UPDATE IT ACCORDINGLY TO THE CONFIGURATION BELOW
Description
Mod that adds a new "unconscious" behavior for the player that is about to die. After getting into critically low hp that would kill you, now you will go into the state of being knocked out for 5* minutes. You can wait to bleed out.. finish yourself.. or be on a mercy of another player... but also! Someone can come in a shining armor and can pick you up if he decide to do so!
If player is passed out you can hit him again to have a choice beetween Finishing him or leaving him be (and bleeding out), before doing so you need to wait for 3* seconds. Any attack registered on the player that want to finish the victim will close the options screen.
If you want to Revive player you need to hold (Shift + Right Click) on him, you move too much and you will cancel the action. Player that are picked up starts with 15%* of the max hp. Added an option where you are required to hold a temporal gear, disabled by default.
added PickUp mechanic (its very very rough right now but it works), similar to Revive hold (ctrl + Right mouse) until you get message that you picked player, he will move after you till he wakes up, you receive damage, you got unconscious. Or you cancel the carrying action by again clicking single time (ctrl + Right mouse) on the player you carry, while moving the unconscious person you get big debuff to move speed.
added SelfRevive option, default chance is set to 0%, after the timer ends you can add a chance that the plyer will "lick their wounds themself", and stand up on their own.
Since version 1.8.1 of this mod Entities will lose focus when player is Unconscious
If you want to add your translation, ask about feature or report a bug feel free to use the Official Vintage Story Discord's Mod Page for support, I will be able to answer there quicker.
Mod also is created for and used on our RP server. Edenval RP.
*(default can be changed in config)
Commands
/revive <player> - picks up the player
Configuration
{
// remove from the list the one that you dont want to apply unconscious status (player will just die) if the list is empty everything will kill player
"EnabledDamageTypes": [
"Gravity",
"Fire",
"BluntAttack",
"SlashingAttack",
"PiercingAttack",
"Suffocation",
"Poison",
"Hunger",
"Crushing",
"Frost",
"Electricity",
"Heat",
"Injury"
],
"GracePeriod": 10000, "UnconsciousDuration": 300, // in seconds
"FinishingTimer": 10, // in seconds
"SuicideTimer": 0, // in seconds
"RevivePerTickDuration": 0.2, // this is value per tick, the lower it is the slower the revive is
"PickupPerTickDuration": 0.75, // this is value per tick, the lower it is the slower the pickup action is
"MaxHealthPercentAfterRevive": 0.15, // 1 = 100%, 0.5 = 50%, 0.15 = 15% etc...
"ChanceOfSelfRevival": 0.0, // 1 = 100%, 0.5 = 50%, 0.15 = 15% etc...
"EnableCarryMechanic": true,
"EnableSuicideButton": true,
"DropWeaponOnUnconscious": true,
"RequireTemporalGearForRevive": false,
"UnconsciousCmdPrivilege": "ban",
"ReviveCmdPrivilege": "ban"
}
Ideas & Bugs
- when player is in uncoscious state and starts moving his character will start animation of "walking" but he will still be down.
My other mods
Unconscious - New system which adds an unconscious behavior. Preferable added to multiplayer servers.
Notice Board - Notice board where you can post and read player notices. Focused on RP aspect.
Compatibility
- Compatible with BloodyStory - after reviving bleeding will be resumed after the GracePeriod specified value (default is 10sec) - Bloody Story
Contribution & Thanks
- ProfCupcake thank you for providing combatibility patch for your mod Bloody Story
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v1.8.3 | 144 | 14 hours ago | Show | Unconscious_1.8.3.zip | Install now | |
v1.8.2 | 539 | Jan 11th at 10:59 PM | Show | Unconscious_1.8.2.zip | Install now | |
v1.8.1 | 338 | Jan 3rd at 1:11 AM | Show | Unconscious_1.8.1.zip | Install now | |
v1.7.3 | 310 | Dec 25th 2024 at 12:11 PM | Show | Unconscious_1.7.3.zip | Install now | |
v1.7.2 | 19 | Dec 25th 2024 at 11:39 AM | Show | Unconscious_1.7.2.zip | Install now | |
v1.7.1 | 16 | Dec 25th 2024 at 11:27 AM | Show | Unconscious_1.7.1.zip | Install now | |
v1.7.0 | 1281 | Nov 28th 2024 at 9:30 AM | Show | Unconscious_1.7.0.zip | Install now | |
v1.6.0 | 258 | Nov 25th 2024 at 8:52 PM | Show | Unconscious_1.6.0.zip | Install now | |
v1.5.4 | 76 | Nov 25th 2024 at 8:54 AM | Show | Unconscious_1.5.4.zip | Install now | |
v1.5.2 | 43 | Nov 24th 2024 at 9:39 PM | Show | Unconscious_1.5.2.zip | Install now | |
v1.5.1 | 100 | Nov 24th 2024 at 2:06 PM | Show | Unconscious_1.5.1.zip | Install now | |
v1.4.1 | 179 | Nov 23rd 2024 at 1:39 PM | Show | Unconscious_1.4.1.zip | Install now | |
v1.4.0 | 171 | Nov 22nd 2024 at 4:26 PM | Show | Unconscious_1.4.0.zip | Install now | |
v1.3.0 | 128 | Nov 20th 2024 at 10:59 PM | Show | Unconscious_1.3.0.zip | Install now | |
v1.2.1 | 173 | Nov 19th 2024 at 6:30 PM | Show | Unconscious_1.2.1.zip | Install now | |
v1.2.0 | 35 | Nov 19th 2024 at 6:24 PM | Show | Unconscious_1.2.0.zip | Install now | |
v1.0.1 | 62 | Nov 19th 2024 at 12:18 PM | Show | Unconscious_1.0.1.zip | Install now | |
v1.0.0 | 122 | Nov 18th 2024 at 4:35 PM | Show | Unconscious_1.0.0.zip | Install now | |
v0.1.0 | 101 | Nov 17th 2024 at 5:41 PM | Show | Unconscious_0.1.0.zip | Install now |
From all things, it was TAB key focus disable mod that caused this
Damglador tested on both my machines with Windows and Linux (arch based) both are working fine on 1.20.1 and Unconscious 1.8.2 . Hard to tell what's the issue.
On stable 1.20.1, v1.8.2 of the mod just doesn't work for me. It throws
On Arch Linux. The same happens with Kemono for me and my friend on Windows, so I'm not sure what's the issue
ProfCupcake thank you for looking into that, if you have any ideas how we could make our mods better compatible just let me know somewhere.
I have updated Bloody Story to be compatible, albeit in a very basic way: all processing of bleeding should be paused while the player is unconscious.
Windle rhino1998
Can confirm rhino1998's comment, been testing bloody story and unconscious together with only those mods active and I'm not getting into the unconscious state when i bleed out.
I think this is incompatible w/ Bloody Story. After dying due to bleeding out, I die again in the unconscious state. If the bleed is sufficiently slow I am revivable for a few seconds.
nnarx player that are unconscious and will logout, after they login back they will still be again in unconscious state. For now I dont plan to do anything more on this topic.
Thalius Xelonie I've added a harmony patch that will make Entities stop attacking player when he's down. Since 1.8.1 version.
MimiKitty for now I've added a simplified version of what you asked for with temporal gear, you can enable it in config as its disabled by default.. Letting using other items might be tricky, as all consumable item will be just used by your character, not sure how to prevent that yet.
It would be interesting to have an option so server owners can set an item needed to revive a player, such as a temporal gear and such. bonus points if we can add a multiplier to how many are needed for the amount of times they died!
i think we got it fig out, it was the detailed animal mod and corpse mod not being compatible with eachoither, seams to be correctec as detailed animals updated and nop issues at the moment. Thanks
bringitonwimps if you could ping me on discord, and send me your modlist I might take a look, cause Im pretty sure it must be another incompatibility.
thanks for response, been messing arounnd and i thinkl you are correct it isnt this mod, timing of when we added it made us wonder. however we do styill have an issue with about 50% of time upon "almost death" when your mod kicks in we get a client crash. not sure why or what is actually causeing it because it doesnt even throw up a crash report on the client. so its puzzling. found out another mod however was incompatible withh corpse mod so now we are doing testing to see if isuue is resolved.
thanks again, love this little mod and what it does.
bringitonwimps kinda weird, cause I didn't changed anything related to the death itself, my mod only prevents the "death", so anything that happens after you actually die is not affected by my mod. Just tested what you said with both unconscious and playercorpse, never crashed even once.
so we had to currently remove th9is mod, about half the time client crashes on death, if they crash on death 80% or better no body gets created in playercorpse. idk if its a conflict between those 2 mods or what is causing it. but im letting you know
May I suggest making it so that hostile mobs quit aggroing on you altogether once you are unconcious? This would solve a number of issues that arise with the mod- Gaming Level Up/X Skills features as well as enemies focusing on the down player rather than switching gears and focusing on other players in the area, just to name two.
Fantastic mod, btw. Adds a feature long desired on our community server!
wondering if you can have a fix for combat logging after getting downed? like just killing the player when they logout while downed.
Psyborg thats intended to happend, it drops on the ground. You can disable it with config.
i would love this mod to have compability with level up, because if you are unconscious, enemies can still hit you and you keep leveling up.
This mod makes you lose the item from your hotbar you were holding upon death.
Just tested it rn with the 1.20-pre version, everything seems to work just fine. If you have some issues, please provide some context or mod you are using.
F0rged as I mentioned in the mod description which you should read, the mod is not working properly on 1.20 and I will not fix it until the stable release is out.
The mod is not functioning correctly on version 1.20; all level 4+ mobs one-shot, even with armor.
Screwy I've just added a config option where you can specify what damage type can cause going into the state of unconscious, hopefully it's enough. By default now every type of damage is applied, but you need to create/update config with it.
propaneko thanks for fixing those bugs so quick, that's amazing!
Maybe I've got another one for you:
I don't know if it is intended, but last time I got knocked down and was revived by a friend, I still lost half of my nutrients as if I had died.
Also, I understand that falling from the top of a mountain would safely kill you instantly.
But can you give a config option for an amount of bearable fall damage, so that players go unconcious first when just falling from medium height?
Edit: Aaand burning players...
Maybe we could well use a config option to override the flame death, as this is a common thing when using xSkills while having fun with snowballs.
Other than that, great work so far!
I did some code clear up and put up some more guards, let me know if it's still crashing. Screwy
It's kinda hard for me to replicate that, never got crash while doing the steps you mentioned. Screwy
propaneko thanks for the quick bug fix. I'm going on testing anytime I can, because such great mods need support.
And during my testing I found another small issue so far.
If "ChanceOfSelfRevival" is set to 1.0, everytime I self revive while holding any movement key, the game crashes.
I just found that out because I wanted to escape the drifter that just knocked me over.
Maybe this is also what caused some crashes on my server, which are sometimes occurring when players revive each other.
1.5.2 added ru & uk translations
Screwy pushed a new update, should be fixed
Screwy You're absolutely right, I think I'm patching the wrong method for getting hit. Will fix that soon! Thank you for providing issues and some context it helps a lot with debugging!
propaneko I don't think it is intended that every nightmare drifter can onehit any player with less than 20 HP, regardless of their armor?
Hope you can find out what causes it. It is definitely this mod. I have tested it without any other mods installed.
Nightmare drifters kill me every time they even bearly scratch my skin. Even if I wear full steel plate.
Edit: I think I know what could have gone wrong.
Is it by any chance possible that your mod is calculating something like
if ("player.currentHealth" - "takenDamage" < 0) then ("player.unconscious" = "true")
but without the armor value in its calculation?
Sorry. I don't know the correct code for this, but what seems obvious is that a sawblade locust knocks down any player below 16 HP in one hit,
while a nightmare knocks down at 20 HP. The double headed will safely throw you over at 24 HP and lower.
Armor is completely ignored while checking the unconscious status. Only recieved max damage counts.
Yup, works perfectly fine now =)
Thank you for responding so quick. We have all been waiting for exactly this mod!
Another big patch with new features and fixes, described on the page, enjoy :3
Screwy I've added a small bugfix, let me know if it works now. And how you test if the mod is working?
Im gonna look into that, it's hard for me to replicate the issue without any context, and errors x3
@propaneko huge thanks for this really awesome mod! I run a multiplayer server with a pretty tough survival modset and this would be a perfect match.
But unfortunately I think I have the same issue as MrPuppeteer and I wonder if there is anything I could do to make it work.
I've tested the mod locally in single player. But on my server it won't work, even if I use the exact same modset.
Is it because I host the server from a docker container? Or because the world was generated in 1.18?
Yup, everything that can damage you will got you into state of unconscious. And no, after someone will pick you up, and you got damaged again, you will again go down into unconscious state. I was trying to keep it simple for now. Inflectus
I'm guessing this works even if you get knocked out by animals? Also, is there a period after getting revived where getting knocked unconscious would instantly kill you instead?
Hmm that's weird it should work on preexisting saves and servers. It depends HOW old is the save but everything created on 1.19.8 should work. We added this mod to our server that is 3 months old and everythins seems to be working fine. MrPuppeteer
There is only one thing I have run into so far. It seems to not work with old saves or preexisting servers. Even after putting the mod on the server and a restart. It seems to not work. @propaneko
This mod is freaking awesome! Love the concept!
This is what I have been hoping for a while! Thanks for putting in the time!