Project Zomboid

Project Zomboid

Not enough ratings
AwayFromZomboid - AFK detection & management!
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
97.644 KB
10 May, 2024 @ 10:14pm
10 May @ 10:42am
3 Change Notes ( view )

Subscribe to download
AwayFromZomboid - AFK detection & management!

Description
Away From Zomboid adds a highly configurable AFK system to your Project Zomboid server!


The system detects player activity when they use any controls, or click their mouse. This should have a minimal impact on performance, and still be close to perfect as far as detection goes. The timer is checked every in game minute, and hence might be off from configured values by a couple of seconds - this should not be noticeable unless you have extremely low timeout values. The mod also runs completely clientside.


Sandbox Settings:
- AFK timeout (in seconds)
- AFK kick timeout (in seconds)
- Whether users should be kicked after AFK + AFK kick timeout
- Whether users should become invisible to zombies when AFK
- Whether users should be informed of their AFK status
- What (if any) chat channel (global, say) to additionally send AFK status message to
- What messages to send to users when they become AFK, and stop being AFK
- Whether to ignore staff members (mods, admins, etc...) in the AFK system
- Whether to allow users to manually trigger AFK status by typing "/afk"
- A delay before becoming AFK after manually triggering it (in seconds) to prevent potential abuse of the system


This mod was custom made for the Lockdown RP server, which you can find here:

https://discord.gg/AyhJfGUGfU

Github repo: https://github.com/MaxWasUnavailable/AwayFromZomboid

Workshop ID: 3244053233
Mod ID: AwayFromZomboid
22 Comments
Holotime 20 Jul @ 3:50pm 
i need a mod that has the sleep animation, players on the server can use it just like sitting. while sleeping, they don't get bored, thirsty or hungry. but they are vulnerable to the rest normally. it allows a soft afk that stays in character... a replacement sleep form for multiplayer.
Max  [author] 25 May @ 8:07am 
You can also contact me on Discord. Our server link is in the description, my username is MaxWasUnavailable :)
Max  [author] 25 May @ 8:07am 
I'll run a test! Could you give me some more information on the server version, the modlist, etc...?

If you could open an issue ticket on my GitHub repository, that'd really help!
Hey just wanted to report players dont go invis for zombies when AFK, even with the option turned on. Any way to fix this? I really love the premise but the thing I really wanted it for doesnt work :(
Vorshim 10 May @ 11:28am 
thanks for the update <3
Vorshim 17 Jan @ 10:39am 
yes! no problem
;)
Max  [author] 17 Jan @ 7:12am 
Hi there @Vorshim

Could you make an issue on the GitHub repo? I don't have time this week, but it'll help remind me! :)
Vorshim 16 Jan @ 6:04am 
hi there again Max! <3 how are you? I hope you had a great holiday!
I wanted to let you know about an "issue" with your mod. Players using a controller are being flagged as AFK after the set time because the mod only considers keyboard inputs and not controller button presses. Do you think there's a way to include the controller as well? There must be some kind of event for it.
I think you can search something usefull in media\lua\shared\JoyPad\JoyPadSetup.lua <3 thanks!!
Vorshim 19 Oct, 2024 @ 11:39pm 
Thanks for the update Max!! ❤️
Max  [author] 24 Sep, 2024 @ 12:39pm 
Move to the new apartment will be done after this weekend. Then I'll review the PR!