Would it be possible to get a mod that writes to a log what players opened/closed doors and ladder hatches along with the time that it was done?
I've had a few incidents on my servers where bases have got raided and people have got to loot rooms with the hatches still intact.
One side say the hatches were open, other says it was closed.
From the standard logs/boxlooter logs you can't accurately tell who's telling the truth when neither have video recordings of their game sessions.
Rust Logging of doors/hatches opened/closed
Discussion in 'Plugin Requests' started by Mr.Witcher, May 1, 2016.
-
It can be done with OnDoorOpened function.
If player is not owner this door, then add player in logs.
But, I don't know how make logs readable and usable for admins.
Because doors so many and we only can see their ID and position. -
Position would be fine as our server is modded and gives us the position on screen.
Not sure how to check the ID though -
I dont understand this part. -
Below was the situation
From the raiders side,
They blew through the walls to get inside the base with explosives (walls have splash damage which supports this)
They then said that the ladder hatches were left open by a member of the base owner's group
Due to them been in an open state, they then simply went up to the loot room via the open hatches
They then said that the hatches were closed by one of the base owners long after the raid had occurred (the standard logs do show one of the base owner players being online several times a few hours after the raid)
From the base owners side,
They say the hatches were always closed so that during the raid, the raiders shouldn't have been able to get to the loot without blowing through the hatches. They think the raiders had either noclip or used something similar to the masterkey plugin where they can open any doors/hatchets and got in that way. They said that the player that came online after the raid didn't close the hatches and that they were not previously open.
So long story short, raiders say the hatches were left open, base owners say they were closed and the raiders cheated to get to the loot
With the above request, it would be possible to see what state the hatches were in at the time of the raid and whether or not the base owner's player closed the hatch after the raid and are just being salty about it -
Okay, I think, that I understand you
Logs can be like
Code:DOORS { ID: xx { position: xyz; lastplayerclose: id; lastplayeropened: id; authorized: id, id, ... id }
-
-
For what we need time, if we will be know who authorized?
-
From the scenario I gave above, the raid happened at 2AM, the base owner's player came on around 9AM whereas the rest of the base owner's clan came on at 5PM. If the door was opened/closed around 9AM, then we could prove that the raiders were telling the truth. -
Will you be making this @serezhadelaet ? If you don't I might pick it up.
-
But if you need some help, I will help as I can