Offline Suicide

Hello, i have problem my players in offline use auto Suicide (This is after update).

What could be the problem?

AutoKill repeat after 30 minutes, and only kill vip players. (AntiOfflineSuicide, its my plugin for disable kill and logging)
16:59 [Info] [AntiOfflineSuicide]
17:30 [Info] [AntiOfflineSuicide]
18:00 [Info] [AntiOfflineSuicide]
18:30 [Info] [AntiOfflineSuicide]
19:00 [Info] [AntiOfflineSuicide]
19:30 [Info] [AntiOfflineSuicide]
and ect...



Merged post

Maybe Is it possible to track where the team is coming from?

Plugin or server settings?
Any ideas? :)

I had a player who was having this happen to them. We had set up our town as a "safe zone" as a result the game was killing her when she logged out in town. Are the players who are getting killed when offline in this manner in a safe zone by chance?

Thanks for help.

No( This cave.
image



Merged post

InSafeZone: False

Merged post

Dear Wulf, is it possible to trace the source of the command? (Plugin, Dll library?)
I checked all my plugins, and did not find the source ran command Suicide for Admin, Vip....

Merged post

Here is I used
object OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)
        {
			BasePlayer player = entity.ToPlayer();
            if (player == null || info == null || info.damageTypes == null || entity == null || info.damageTypes.GetMajorityDamageType() != Rust.DamageType.Suicide) return null;
			if (!IsOnline(player.userID)) {
				Puts("KILL "+player.userID+" - "+player.displayName+" - InSafeZone: "+player.InSafeZone().ToString());
				return true;
			}
			
            return null;
        }

private void OnServerCommand(ConsoleSystem.Arg arg)
        {
            string command = arg.cmd.Name;
            string fullCommand = arg.cmd.FullName;

            Puts(command+" - "+fullCommand);
        }

private void OnEntityKill(BaseNetworkable entity)
		{
			BasePlayer player = entity as BasePlayer;
			if (player == null || player.IsNpc) return;
			Puts(player.ToString());
		}



Merged post

+https://umod.org/plugins/logger

Same issue after coming back 6 months later.

Some players stay living, most of them, specifically in a desert base or water base (Water base plugin) are dying about 30 minutes after logging out via suicide. (Had enough of life)

Always inside a base safely. 
GFs char died literally in front of me while I was crafting.

Cannot for the life of me figure out wtf is going on.

When a player logs out in a safe zone like bandit camp or the scientist compound, the game schedules their death, with a timer equal to NPCAutoTurret.sleeperhostiledelay, default 30 minutes.  Check out BasePlayer.StartSleeping(). Might be related to that.

I have the same issue now on my server... player keeps suicide themself while offline... i cant see any plugin doing it, how can I stop this?

IfqKZiIZcbwdSHO.jpg YuriUrlov

I have the same issue now on my server... player keeps suicide themself while offline... i cant see any plugin doing it, how can I stop this?

First try to find the cause of it, something like a logging plugin, which logs player deaths and cause of the dead, that could help you.. And then take action based on the cause.

I suspect this is a bug in vanilla Rust.
I encountered this bug myself some wipes ago, always dead on login when I logged out in one specific base near a monument. Could never reproduce it later.