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

NxLabs / Vintage Story

Dummy Player - Combat Logout Protection

KBy KenigVovan

Leave during combat and a clone of you stays behind to face the consequences

Dummy Player - Combat Logout Protection

Description

Dummy Player

PvP anti-leave mod for Vintage Story.

Prevents players from escaping PvP by disconnecting. When a PvP-tagged player logs out, a clone is spawned at their exact position — anyone who kills it wins the fight, even across a disconnect.

How It Works

  1. Two players fight — both receive a PvP tag that lasts a configurable number of seconds.
  2. If either tagged player disconnects, a clone is spawned at their exact position with their current health, skin, clothing and items.
  3. Other players can kill the clone as if fighting the real player. The clone uses armor, takes realistic damage, and drops the player's loot on death.
  4. When the disconnected player logs back in:
    • If the clone was killed — the player dies on login (credited to the killer) and their items are gone.
    • If the clone survived — the player's health is synced from the clone and their items are returned.

Features

<table style="width: 100%; border-collapse: collapse; margin: 12px 0;"> <tbody> <tr> <td style="width: 50%; vertical-align: top; padding: 14px 16px; background: #fff8e7; border-radius: 6px; border: 1px solid #e0cfa6;">
PvP Tag Timer
<span style="color: #2d2519;">Both attacker and defender are tagged on the first PvP hit. Tag duration is configurable. A HUD indicator shows your current PvP state.</span></td> <td style="width: 10px;">&nbsp;</td> <td style="width: 50%; vertical-align: top; padding: 14px 16px; background: #fff8e7; border-radius: 6px; border: 1px solid #e0cfa6;">
Lookalike Clone
<span style="color: #2d2519;">The clone inherits the player's exact skin, worn clothing and held items. It takes damage through proper armor calculations, just like a real player.</span></td> </tr> <tr> <td style="height: 10px;" colspan="3">&nbsp;</td> </tr> <tr> <td style="vertical-align: top; padding: 14px 16px; background: #fff8e7; border-radius: 6px; border: 1px solid #e0cfa6;">
Configurable Loot
<span style="color: #2d2519;">Choose exactly what the clone carries: hotbar, bags, armor, clothing &mdash; each toggled independently in the config.</span></td> <td>&nbsp;</td> <td style="vertical-align: top; padding: 14px 16px; background: #fff8e7; border-radius: 6px; border: 1px solid #e0cfa6;">
Auto-Despawn
<span style="color: #2d2519;">Clones disappear after a configurable timeout. Health at despawn is saved and restored when the player logs back in.</span></td> </tr> <tr> <td style="height: 10px;" colspan="3">&nbsp;</td> </tr> <tr> <td style="vertical-align: top; padding: 14px 16px; background: #fff8e7; border-radius: 6px; border: 1px solid #e0cfa6;">
Mob Tag <span style="font-weight: 400; font-style: italic; font-size: 0.9em;">(optional)</span>
<span style="color: #2d2519;">Enable mob combat tagging so players can't log out to dodge mob damage. Uses a separate configurable timer.</span></td> <td>&nbsp;</td> <td style="vertical-align: top; padding: 14px 16px; background: #fff8e7; border-radius: 6px; border: 1px solid #e0cfa6;">
Always-Clone Mode <span style="font-weight: 400; font-style: italic; font-size: 0.9em;">(optional)</span>
<span style="color: #2d2519;">Spawn a clone whenever any player disconnects, regardless of PvP state &mdash; useful for hardcore PvP servers.</span></td> </tr> </tbody> </table>

Configuration

Edit ModConfig/dummyplayer.json. Supports ConfigLib for in-game editing.

<table style="width: 100%; border-collapse: collapse; font-size: 14px; background: #fff8e7; border-radius: 6px; overflow: hidden; border: 1px solid #e0cfa6;"> <tbody> <tr style="background: #ede0c0;"> <th style="padding: 9px 12px; text-align: left; color: #5c3415;">Key</th> <th style="padding: 9px 12px; text-align: left; color: #5c3415;">Default</th> <th style="padding: 9px 12px; text-align: left; color: #5c3415;">What it does</th> </tr> <tr style="color: #2d2519;"> <td style="padding: 7px 12px;">SECONDS_PVP_TAG_TIMER</td> <td style="padding: 7px 12px;">30</td> <td style="padding: 7px 12px;">Duration of the PvP tag in seconds (10&ndash;3600).</td> </tr> <tr style="background: #f5e9c9; color: #2d2519;">

Download

No download link is available for this entry right now.

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.