Mods / dummyPlayer - pvp anti-leave

Category: #Other #Tweak
Author: KenigVovan
Side: Both
Created: Feb 5th 2022 at 8:39 PM
Last modified: 1 day ago
Downloads: 7041
Follow Unfollow 11

Latest file for v1.20.0-pre:
dummyplayer_1.3.1.zip 1-click install


Mod adds behavior "pvp tag" - if you hit another player or you are attacked - next X seconds you are in a combat state.

If you leave during this state, clone entity will be spawned on the same place with your current health. This entity will have
items in it's enventory depending on setting (can be bags, hotbar etc, more info below). If entity is killed it drops everything it
has from source player entity. On next login of the player(whose clone entity was killed) is killed as well.

If entity wasn't killed, only player's health will be changed to clone's one if it changed.

There is time period after clone will be despawn - 30 sec by default.

 

Big thanks to jakecool19 for very useful example in "Lands of Chaos" mod (https://mods.vintagestory.at/show/mod/847)

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

KILL_AFTER_LOGIN - if true - player will be killed if his clone was killed and inventories which were selected by settings will be cleared for player

DROP_BAGS, DROP_HOTBAR, DROP_CLOTHS, DROP_ARMOR - if true, copy of inventory will be placed in the clone, if player logout during combat

SECONDS_PVP_TAG_TIMER - how long pvp state is active for player after he attacked or was attacked

TIME_TO_DISAPPEAR - how long clone will exist

By default: 

  1. DROP_HOTBAR and DROP_BAGS are true; DROP_CLOTHS and DROP_ARMOR are false;
  2. KILL_AFTER_LOGIN is true
  3. SECONDS_PVP_TAG_TIMER - 30 seconds
  4. TIME_TO_DISAPPEAR - 30 seconds

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.3.1 3 1 day ago Show dummyplayer_1.3.1.zip Install now
v1.3.0 3 1 day ago Show dummyplayer_1.3.0.zip Install now
v1.2.5 34 Oct 25th at 4:16 PM Show dummyplayer_1.2.5.zip Install now
v1.2.4 897 May 9th at 3:45 PM Show dummyplayer_1.2.4.zip Install now
v1.2.3 926 Nov 16th 2023 at 7:26 PM Show dummyplayer_1.2.3.zip Install now
v1.2.2 110 Nov 15th 2023 at 10:34 PM Show dummyplayer_1.2.2.zip Install now
v1.2.1 987 Aug 21st 2023 at 4:16 PM Show dummyplayer_1.2.1.zip Install now
v1.2.0 851 Apr 26th 2023 at 5:24 PM Show dummyplayer_v1.2.0.zip Install now
v1.1.1 652 Nov 13th 2022 at 1:50 PM Show dummyplayer_v1.1.1.zip Install now
v1.1.0 219 Jul 9th 2022 at 2:58 PM Show dummyplayer_v1.1.0.zip Install now
v1.0.4 1153 May 1st 2022 at 7:57 AM Show dummyplayer_v1.0.4.zip Install now
v1.0.3 227 Mar 27th 2022 at 11:37 AM Show dummyplayer_v1.0.3.zip Install now
v1.0.2 396 Mar 5th 2022 at 10:27 PM Show dummyplayer_v1.0.2.zip Install now
v1.0.1 255 Mar 4th 2022 at 3:41 PM Show dummyplayer_v1.0.1.zip Install now
v1.0.0 289 Feb 5th 2022 at 8:40 PM Show dummyplayer_v1.0.0.zip Install now

10 Comments (oldest first | newest first)

💬 KenigVovanAuthor, Oct 25th at 4:17 PM

Wahazar

Hey, I don't know if you still need compatibility with PlayerCorpse, but 1.2.5 version should work with it

💬 Wahazar, Aug 4th at 6:33 PM

KenigVovan this mod doesn't work with Player Corpse mod - if dummy player is killed, it drops items. I imagine it is not possible to fix without having have Player Corpse functionality integrated within this mod?

💬 Wahazar, Jul 25th at 8:48 AM

Is it possible to have version/config leaving dummy player always, regardles of PVP flag?

Also for infinity time, if TIME_TO_DISAPPEAR = -1

It would be very helpful for multiplayer servers to deal with thieves, griefers or just causal players borrowing things and quitting forever - if their dummy stays, their inventory also stays on server.

Also solid house with padlocks would be even more important for regular players, to be here on logout.

💬 KenigVovanAuthor, Jul 7th at 9:39 AM

Wahazar

The main unknown here is chunk loader's behavior when there is no players left on server/in near area, I'll take a look when I'll have time but after updates I planned for other mods.
[But otherwise to set drifters or other mobs agressive towards player's clone and add "delay" on logout without any PVP tag shouldn't be complicated.]

💬 Wahazar, Jul 5th at 8:10 AM

Is it possible to have option with dummy player (and chunk loader) regardless of PVP tag? I mean, to avoid PVE meta "drifter attacking? lets disconnect".

💬 Marlim, Jan 20th at 5:50 PM

Will the mod be updated to 1.19?

💬 KenigVovanAuthor, Aug 13th 2023 at 4:01 PM

Ryuu

No, it just catchs event "PlayerDisconnect" from api and spawn a clone and remove it after some time or if player is back online on "PlayerNowPlaying"

💬 Ryuu, Aug 8th 2023 at 7:35 PM

Great solution for people wanting to go pve on a pvp server or pve in a pvp zone on a pvpve server to avoid PVP. If ya don't like PVP, why join a PVP game/server, you know? I know a lot of other games that could learn from this mod tbh. Thanks, KenigVovan! 
A question though, does it detect players with unstable internet and allow sufficient time for the player to log back in before the clone is attackable?

💬 YourCreator, May 1st 2022 at 11:01 AM

Very useful, noice. (thieved silently )
image

💬 TeacupAngel, Feb 5th 2022 at 11:15 PM

In case anyone is curious - this seems to add PvP tag functionality, where you leave behind a "dummy player" with all your items if you log out within 30 seconds of being hurt or attacking someone.

(edit comment delete)