Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] [Zombies] MustBeAfk - Simple, Customizable AFK System

[Release] [Zombies] MustBeAfk - Simple, Customizable AFK System

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
afk
14 Posts 4 Posters 3.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MustBeLeaving Offline
    MustBeLeaving Offline
    MustBeLeaving
    wrote on last edited by
    #1

    MustBeAfk

    I was having trouble finding a good AFK system so I decided to make one that was nice and simple.


    When AFK

    Features

    • Very customizable
    • Users are able to specify a time to go AFK for
    • HUD element that appears when AFK
    • Commented Code
    • Chat-Based
    • Burp to indicate that you aren't afk anymore (for tabbed out players)
    • Infinite AFK time

    Downloads

    Note that this requires T6 GSC Utils.

    Source code
    Compiled

    Configuration DVars

    • mafk_name [str = "[^6MAfk^7]"] - Tag before messages from the system

    • mafk_prefix [str = ".afk"] - The command the system will use

    • mafk_burps [bool = 1] - Should the player burp when going afk and un-afk

    • mafk_hud [bool = 1] - Should the HUD be shown for afk players

    • mafk_user_times [bool = 0] - Should the user be able to specify a time to go afk for?

    • mafk_max_time [float = 15] - If user_times, what should the max time allowed be in minutes?

    • mafk_def_time [float = 15] - If user_times, what should the default time be if none is specified?

    • mafk_time [float = 15] - If not user_times, what should the afk time be? if 0 then time is infinite.

    • mafk_max_end [bool = 0] - End the game if everyone is either down or afk?

    • mafk_cooldown [float = 15] - How many minutes should you have to wait before using afk again.

    Images

    When Already AFK and trying to be AFK again

    Contributions

    If you have a suggestion of something to add, or you find a bug feel free to make an issue on the repo, you can also make a PR if you'd like :- )

    Keep in mind this is my first GSC project, if I'm committing any sins against god please let me know and I'll be sure to fix them, constructive criticism is welcome.

    1 Reply Last reply
    3
    • chasef7 Offline
      chasef7 Offline
      chasef7
      Banned
      wrote on last edited by
      #2

      Very cool man, should send a notice about the command so people know about it. Maybe every 5-7 minutes.

      MustBeLeaving 1 Reply Last reply
      0
      • chasef7 chasef7

        Very cool man, should send a notice about the command so people know about it. Maybe every 5-7 minutes.

        MustBeLeaving Offline
        MustBeLeaving Offline
        MustBeLeaving
        wrote on last edited by
        #3

        chasef7 The afk texts opacity slowly fades away over time, my hope was that that would show it well enough. I might though, wouldn't be too hard at all.

        1 Reply Last reply
        0
        • hindercanrun Offline
          hindercanrun Offline
          hindercanrun
          Contributor
          wrote on last edited by
          #4

          there’s a time limit before you get kicked correct?

          MustBeLeaving 1 Reply Last reply
          0
          • hindercanrun hindercanrun

            there’s a time limit before you get kicked correct?

            MustBeLeaving Offline
            MustBeLeaving Offline
            MustBeLeaving
            wrote on last edited by
            #5

            hindercanrun no, why would there be, the point is so you don't get kicked or killed while being afk

            hindercanrun 1 Reply Last reply
            0
            • MustBeLeaving MustBeLeaving

              hindercanrun no, why would there be, the point is so you don't get kicked or killed while being afk

              hindercanrun Offline
              hindercanrun Offline
              hindercanrun
              Contributor
              wrote on last edited by hindercanrun
              #6

              MustBeLeaving for popular servers, so people cant just sit in afk mode and take up the slots,

              except there are good reasons for no limit, high rounds, stuff like that

              MustBeLeaving 1 Reply Last reply
              0
              • hindercanrun hindercanrun

                MustBeLeaving for popular servers, so people cant just sit in afk mode and take up the slots,

                except there are good reasons for no limit, high rounds, stuff like that

                MustBeLeaving Offline
                MustBeLeaving Offline
                MustBeLeaving
                wrote on last edited by
                #7

                hindercanrun The idea is that you can go afk for a certain amount of time every x minutes, you can configure it to allow everyone on the server to go afk infinitely but you really shouldn't. One of the config options is to end the game if everyone is AFK or down, so you can stop infinite afk'ing.

                hindercanrun 1 Reply Last reply
                2
                • MustBeLeaving MustBeLeaving

                  hindercanrun The idea is that you can go afk for a certain amount of time every x minutes, you can configure it to allow everyone on the server to go afk infinitely but you really shouldn't. One of the config options is to end the game if everyone is AFK or down, so you can stop infinite afk'ing.

                  hindercanrun Offline
                  hindercanrun Offline
                  hindercanrun
                  Contributor
                  wrote on last edited by
                  #8

                  MustBeLeaving Ok.

                  1 Reply Last reply
                  0
                  • Resxt Offline
                    Resxt Offline
                    Resxt
                    Plutonium Staff
                    wrote on last edited by Resxt
                    #9

                    I don't see the point of having an afk script if you configure it to have a limited time? Just set yourself as afk and set it off when you're back on PC?

                    Other than that and other than the fact that multiple scripts already exist it's still a nice and useful release

                    MustBeLeaving 1 Reply Last reply
                    0
                    • hindercanrun Offline
                      hindercanrun Offline
                      hindercanrun
                      Contributor
                      wrote on last edited by
                      #10

                      it probably wouldn’t even be useful to add the limited time, since there aren’t many servers near me + not many people who play plutonium near me
                      so I’d only get around 5 players

                      1 Reply Last reply
                      0
                      • Resxt Resxt

                        I don't see the point of having an afk script if you configure it to have a limited time? Just set yourself as afk and set it off when you're back on PC?

                        Other than that and other than the fact that multiple scripts already exist it's still a nice and useful release

                        MustBeLeaving Offline
                        MustBeLeaving Offline
                        MustBeLeaving
                        wrote on last edited by MustBeLeaving
                        #11

                        Resxt You can do that! read the dvar configuration section for mafk_time 🙂

                        1 Reply Last reply
                        0
                        • Resxt Offline
                          Resxt Offline
                          Resxt
                          Plutonium Staff
                          wrote on last edited by
                          #12

                          I know, my point was just that having a specific afk time seems useless/counter intuitive to me but maybe some people find this useful and since it's there already all good. Just saying I'm "surprised" by this feature but I understand that this is mostly a server restriction thing

                          1 Reply Last reply
                          0
                          • chasef7 Offline
                            chasef7 Offline
                            chasef7
                            Banned
                            wrote on last edited by
                            #13

                            the "You are currently afk" hud seems to show for every player when someone goes afk.
                            I disabled it

                            MustBeLeaving 1 Reply Last reply
                            0
                            • chasef7 chasef7

                              the "You are currently afk" hud seems to show for every player when someone goes afk.
                              I disabled it

                              MustBeLeaving Offline
                              MustBeLeaving Offline
                              MustBeLeaving
                              wrote on last edited by
                              #14

                              chasef7 ah, i really boned that hard, ill fix it soon, sorry

                              1 Reply Last reply
                              1

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Unread 0
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Donate