Mods / Unconscious
Author: propaneko
Side: Both
Created: Nov 17th at 5:32 PM
Last modified: Nov 28th at 9:30 AM
Downloads: 2057
Follow Unfollow 41
Latest file for v1.20.0-rc.1:
Unconscious_1.7.0.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 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.
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.
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"
],
"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,
"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.
Contribution & Thanks
- None for now
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v1.7.0 | 792 | Nov 28th at 9:30 AM | Show | Unconscious_1.7.0.zip | Install now | |
v1.6.0 | 184 | Nov 25th at 8:52 PM | Show | Unconscious_1.6.0.zip | Install now | |
v1.5.4 | 61 | Nov 25th at 8:54 AM | Show | Unconscious_1.5.4.zip | Install now | |
v1.5.2 | 31 | Nov 24th at 9:39 PM | Show | Unconscious_1.5.2.zip | Install now | |
v1.5.1 | 88 | Nov 24th at 2:06 PM | Show | Unconscious_1.5.1.zip | Install now | |
v1.4.1 | 170 | Nov 23rd at 1:39 PM | Show | Unconscious_1.4.1.zip | Install now | |
v1.4.0 | 159 | Nov 22nd at 4:26 PM | Show | Unconscious_1.4.0.zip | Install now | |
v1.3.0 | 120 | Nov 20th at 10:59 PM | Show | Unconscious_1.3.0.zip | Install now | |
v1.2.1 | 164 | Nov 19th at 6:30 PM | Show | Unconscious_1.2.1.zip | Install now | |
v1.2.0 | 28 | Nov 19th at 6:24 PM | Show | Unconscious_1.2.0.zip | Install now | |
v1.0.1 | 55 | Nov 19th at 12:18 PM | Show | Unconscious_1.0.1.zip | Install now | |
v1.0.0 | 113 | Nov 18th at 4:35 PM | Show | Unconscious_1.0.0.zip | Install now | |
v0.1.0 | 92 | Nov 17th at 5:41 PM | Show | Unconscious_0.1.0.zip | Install now |
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!