SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

Unconscious (Revive)

PBy propaneko

New system which adds an unconscious behavior. Preferable added to multiplayer servers.

Unconscious (Revive)

Description

<span style="color: #e74c3c;"><span style="color: #27ae60;">You should use Downed mod at this point :3

THANK YOU FOR 50K downloads &lt;3</span></span>

&nbsp;

<span style="color: #f1c40f;">Since 1.21 this mod disables the vanilla revive behavior and replaces it with mine "Unconscious" behavior, enjoy :3</span>

Description


Mod that adds a new "<span style="color: #9b59b6;">unconscious</span>" 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!

&nbsp;

If player is passed out you can hit him again to have a choice beetween <span style="color: #e74c3c;">Finishing</span> 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.

&nbsp;

If you want to <span style="color: #2fcc71;">Revive</span> player you need to hold (Shift + Right Click) on him, you move too much and you will cancel the action. All medical items work now, modded might need a compatibility patch, the unconscious player is healed by the amount specified by the used healing item. (For now, poultice, bandages, smelling salts)

&nbsp;

added <span style="color: #3598db;">PickUp</span> mechanic (its very very rough right now but it works), similar to Revive hold (ctrl + Right mouse) with&nbsp;Capture Rope 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 with free hand, while moving the unconscious person you get big debuff to move speed.

&nbsp;

added <span style="color: #f1c40f;">SelfRevive</span> 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.


<span style="background-color: #f1c40f;">Since version 1.8.1 of this mod Entities will lose focus when player is Unconscious</span>

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 values, can be changed in config)&nbsp;

Commands


&nbsp;

Commands
/unconscious make &lt;player&gt; - make player unconscious
/unconscious revive &lt;player&gt; - picks up the player
/unconscious config - to list all config values, then do something like /unconscious config duration 60&nbsp;to change duration of being unconscious to 60 seconds

&nbsp;

use /autosavenow after setting up new config value

Configuration


&nbsp;

Configuration file

{
&nbsp; // 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
&nbsp; "EnabledDamageTypes": [
&nbsp;&nbsp;&nbsp; "Gravity",
&nbsp;&nbsp;&nbsp; "Fire",
&nbsp;&nbsp;&nbsp; "BluntAttack",
&nbsp;&nbsp;&nbsp; "SlashingAttack",
&nbsp;&nbsp;&nbsp; "PiercingAttack",
&nbsp;&nbsp;&nbsp; "Suffocation",
&nbsp;&nbsp;&nbsp; "Poison",
&nbsp;&nbsp;&nbsp; "Hunger",
&nbsp;&nbsp;&nbsp; "Crushing",
&nbsp;&nbsp;&nbsp; "Frost",
&nbsp;&nbsp;&nbsp; "Electricity",
&nbsp;&nbsp;&nbsp; "Heat",
&nbsp;&nbsp;&nbsp; "Injury"
&nbsp; ],
&nbsp; "GracePeriod": 10000,

&nbsp; "UnconsciousDuration": 300, // in seconds
&nbsp; "FinishingTimer": 10, // in seconds
&nbsp; "SuicideTimer": 0, // in seconds&nbsp;&nbsp;
&nbsp; "ChanceOfSelfRevival": 0.0, // 1 = 100%, 0.5 = 50%, 0.15 = 15% etc...
&nbsp; "EnableCarryMechanic": true,
&nbsp; "EnableSuicideButton": true,
&nbsp; "DropWeaponOnUnconscious": true,
&nbsp; "UnconsciousCmdPrivilege": "ban",
&nbsp; "ReviveCmdPrivilege": "ban"
}

&nbsp;

Ideas &amp; 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


Read the full description on Vintage Story ModDB

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.