Project Zomboid

Project Zomboid

Safe User Login
44 Comments
뭉디 28 Mar @ 5:39pm 
Does this work on character creation as well?
iDestin 24 Mar @ 5:33pm 
@Hakcenter all my user spawn in with a flashlight, also power is set to always on currently. If they need to use a flash light, based off your mod the moment they use it, it then should create a countdown but there are many actions people can do to bypass the counter from even starting. Ive removed the mod on this recent reset because sadly even if I tell people to use it right they won't. People are sadly just that interested in trying to get an unfair advantage.
hakcenter  [author] 24 Mar @ 2:09pm 
@iDestin what if a user needs a flashlight ? Too many if's not enough protection.
iDestin 24 Mar @ 10:19am 
@hakcenter yeah I understand, its just when a player does an action the counter doesn't start.
hakcenter  [author] 24 Mar @ 8:12am 
@iDestin of course, however zombies can push a player before they're in the game. Or they could be a passenger in a vehicle. I would just suggest warning players abusing the system. It was designed for maximum safety.
iDestin 23 Mar @ 9:54pm 
@Hakcenter is there a way to detect movement to start the counter properly?
hakcenter  [author] 10 Mar @ 2:59pm 
@iDestin that's just how it works. There's no way to mitigate maximum safety. The hilarious part is the mod tracks the zombies it modifies so it'll eventually lag them out.

Best just to trust your users not to abuse the mechanic.
iDestin 10 Mar @ 1:56pm 
@Hakcenter, there is a bypass to your mod, which allows players while in a vehicle or "rolling" or sitting to continue to stay safe, any way to fix?
iDestin 17 Feb @ 10:47am 
@Hakcenter fire mod by the way just wanted to say thanks for helping the noobs on my server with 5 seconds before they get ripped apart lol
hakcenter  [author] 17 Feb @ 8:59am 
Should be fixed now, interesting change that was made.
hellkat268 13 Feb @ 6:24pm 
ya having the same problem with the flashing and no timer
hakcenter  [author] 13 Feb @ 3:25pm 
Ya I started to notice I think that's in 42.2.0 let me take a look this weekend.
ZER0 12 Feb @ 11:07pm 
i think 42.3 broke this. when spawning it doesn't give countdown, and my guy just flashes with highlight forever
hakcenter  [author] 13 Jan @ 5:59pm 
That doesn't help if a player crashes into their car, a zombie moves the car. etc.

The idea behind this mod is maximum protection. The pay off is if people choose to drive while protected the zombie list just grows and it lags their system.
76561198380771298 13 Jan @ 11:00am 
You may add `player:isDriving()` to the check at function `OnPlayerUpdate`. Passengers not affected from vehicle movement but driver does.
hakcenter  [author] 13 Jan @ 6:35am 
Look back to my Nov 12th comment.
76561198380771298 13 Jan @ 6:29am 
Countdown doesn't start until player exits from vehicle if user logout in a vehicle and login inside the vehicle. Vehicle movement ignored.
hakcenter  [author] 29 Dec, 2024 @ 6:55pm 
Message me on the side, B42 does not do that in my game at all.
MagicArmyMan 29 Dec, 2024 @ 6:34pm 
https://youtu.be/Q0knlI3_G9o this should show what I mean. if steam removes the link then I don't know.
hakcenter  [author] 29 Dec, 2024 @ 4:23pm 
It shouldn't be flashing it should be the same outline when looking at items.
MagicArmyMan 29 Dec, 2024 @ 12:21pm 
while the protection is active there is a rapidly flashing outline around the character. I am concerned that this might cause problems with people with photo sensitivity. this has been tested with this being the only mod with debug mode on. as far as I can tell no errors are being thrown.
Jillitan 19 Dec, 2024 @ 2:38pm 
"Ever find yourself logging into a game only to find a zombie enjoying your body in bad way ?"
Jillitan 15 Dec, 2024 @ 6:09pm 
Hakcenter is the best
Kaldari 30 Nov, 2024 @ 12:07am 
This is a really useful mod, but a word of caution for anyone using 'Superb Survivors', nearby NPCs will trigger the timer when you load the save.
OttosTheName 27 Nov, 2024 @ 4:03am 
Yeah it's alright. This side effect mostly keeps people from abusing this mechanic. I don't mind it one bit, just thought it would be good to know especially for those with a less powerful pc.
hakcenter  [author] 12 Nov, 2024 @ 7:24am 
@OttosTheName That would be a major side effect of how I wrote the protection. The zombies react to the players unlike regular protection 'unbiteable'.

For each zombie that can see you and is facing you they become 'useless'. So the mod is tracking a lot of info if you travel.

Car protection is a major side effect from this mod but there is no reliable mechanic that helps those who take minutes to login. I could check if player in car, if coordinates moving but then if they are a passenger they are no longer protected.

It's a tough cookie. So I just trust my users not to abuse the mechanic.
OttosTheName 31 Oct, 2024 @ 7:22am 
Works great, thanks!

You can relogging in a car so the timer doesn't start to get infinite protection after logging on. But if you keep driving your FPS will get progressively lower untill you can't play properly.

Getting out of the car, moving/attacking to get the timer going fixes it though. Just a thing that's good to know.
Salieri 15 Oct, 2024 @ 9:56pm 
I mean is that the lag on my PC occurs 2-4 minutes after I first press a movement key upon logging in. I've tried other similar mods before, and their timers start as soon as I click to start the game, which has almost gotten me killed several times. Maybe I should wait a few minutes after logging in before I move, haha. Thanks for your reply.
hakcenter  [author] 15 Oct, 2024 @ 2:55pm 
@Salieri The timer doesn't start until you move your character and/or start aiming.
Salieri 13 Oct, 2024 @ 7:37am 
It seems like this is the mod I'm looking for. If I could extend or customize the timer, that would be great, because my pc is so weak that it takes 2 to 4 minutes from clicking to start until I can move smoothly after logging in.
hakcenter  [author] 5 Oct, 2024 @ 7:16pm 
I'm confused. Are people dying at the char select screen ?
Pandize 4 Oct, 2024 @ 2:06pm 
Seems like it's not. It only works when logging in to the server for us. Is it possible to update for that functionality?
hakcenter  [author] 4 Oct, 2024 @ 7:46am 
It should
Pandize 2 Oct, 2024 @ 5:33pm 
Does this work on character creation as well?
hakcenter  [author] 24 May, 2024 @ 10:05pm 
@Ichinin, I knew that going in but for the sake of what this mod is supposed to provide there isn't a good event to know when a player is 'ready', even at createUI is not ready.

So while I could check if the player is in a vehicle at login, that doesn't help if a user has latency getting into the game and the counter going down. So I kinda expect my users to play within the bounds of the spirit of what this trying to fix.

I can't check x, y, z coordinates either because we don't want zombies and/or other players pushing the player around before they're ready.

If you have any ideas that doesn't negate maximum player safety for the sake of a little 'abuse' I'm all ears.
Ichinin 23 May, 2024 @ 3:09am 
Bug: If you log in while being in a car, you can drive around in it for quite some time. Only after you exit the car does the counter begin. You should check if a player is in a vehicle or not like:

p = getplayer();
if p:isSeatedInVehicle() == true then
-- is in a vehicle
end
Ichinin 15 May, 2024 @ 10:36pm 
Works as intended. It's such a simple and tiny mod - but does SO much good.

Works in Build 41.78 and obviously - in Multiplayer. This REALLY should be in vanilla and not require a mod.
xPaint3r 10 May, 2024 @ 8:57pm 
Finally!! I was getting wasted left right and center before this Mod! Don't think about it just get everything this guy makes its legit G-R-E-A-T
hakcenter  [author] 4 May, 2024 @ 7:43am 
Yes, that was its intended design
MINImoni 3 May, 2024 @ 5:17am 
Helloo!! May I ask if this mod works on MP server? Thank you.
Jillitan 26 Apr, 2024 @ 11:22pm 
You should give the awards this mod is so good it deserves the steam points. Scratch that, not should, it's required. If you don't give the awards you're dead inside.
Jillitan 26 Apr, 2024 @ 11:20pm 
Ahh yes the best mod I've laid eyes upon. Very duh good. Would recommend 10/10
hakcenter  [author] 26 Apr, 2024 @ 6:45pm 
Grace period is nonadjustable, however it only begins the moment a player decides to move or attack.
SaberPiddles 26 Apr, 2024 @ 6:23pm 
Just had to ask even though it's not in the descripton, am I able to adjust the grace period time? A much needed mod btw, thanks!