View Single Post
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-23-2013 , 01:57   Re: [TF2] Friendly Mode (v. 13.0521)
Reply With Quote #155

Uploading new version 13.0522. It is attached to this post, has been pushed to the server that Updater downloads from, and will soon replace the version in the first post in this thread. Changes include:
  • Fixed a CShowActivity2 bug where it said it enabled friendly instead of disabling it, when targeting a single player.

  • Changed Updater URL to http://ddhoward.bitbucket.org/friendly.txt

  • Added AFK checker! Code was borrowed and modified from the Forlix AFKManager. Rather than looking at eyeangles or player position, the manager actually detects changes in input from the player. New cvars are:
    • sm_friendly_afklimit with defult value of 300. This cvar sets how long, in seconds, a player can be continuously idle while Friendly. Set to 0 to disable. Any player who exceeds this limit will be immediately made non-Friendly, and then slain. Players who are affected by sm_friendly_lock are immune to the AFK checker. ADMINS ARE NOT IMMUNE. IF YOU WANT TO BE IMMUNE TO THE AFK CHECKER, YOU NEED TO APPLY SM_FRIENDLY_LOCK TO YOURSELF.
    • sm_friendly_afkinterval with defult value of 1.0. This cvar sets the time in seconds between AFK checks. This should be a very low value, between 0.1 and 5.0, and should only be increased to 5.0 if you notice that the AFK detector is causing lag.

Please let me know if you run into any issues. Please also consider installing Updater if you haven't already!
Attached Files
File Type: smx friendly.smx (48.0 KB, 101 views)
File Type: sp Get Plugin or Get Source (friendly.sp - 108 views - 108.0 KB)
File Type: cfg friendly.cfg (20.2 KB, 103 views)

Last edited by ddhoward; 05-31-2013 at 01:01.
ddhoward is offline