Raised This Month: $12 Target: $400
 3% 

[L4D/L4D2] "go_away_from_keyboard" Unlock | 0.3 : September 16, 2021 |


Post New Thread Reply   
 
Thread Tools Display Modes
Author
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Plugin ID:
7748
Plugin Version:
0.3
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    16 
    Plugin Description:
    Allows players to idle, both automatically and manually, regardless of the number of humans in the Survivor team
    Old 08-07-2021 , 10:53   [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.3 : September 16, 2021 |
    Reply With Quote #1

    Description:
    Patches a certain condition shared between the functions of the command and CTerrorPlayer::PreThink, making it possible for players to go AFK even when they're the only ones currently playing, either alone or with others that are already idle. Now, idling is possible in competitive game modes as well.

    This serves as a better method than calling CTerrorPlayer::GoAwayFromKeyboard manually in order to save others the hassle of attempting to fetch the localized Valve translations for whenever someone takes a break through hack-ish workarounds or printing their own chat message for others to take notice.

    ConVars:
    • go_afk_unlock_version
      → Version of the plugin.


    Installation:
    💡 Click "Get Plugin" below and put the compiled .smx file in the plugins folder or "Get Source" if you want to compile it yourself
    💡 (Optional) Download the .txt file and put it in the gamedata folder

    Changelog:
    Code:
    0.3 (9/16/21)
    + Made idling working in competitive game modes, e.g., Versus and Scavenge.
    
    0.2 (8/8/21)
    + Now patches the auto idle detection as well.
    + Full L4D support.
    
    0.1 (8/7/21)
    * First release.
    Attached Files
    File Type: txt go_afk_unlock.txt (1.8 KB, 938 views)
    File Type: sp Get Plugin or Get Source (go_afk_unlock.sp - 1336 views - 10.5 KB)

    Last edited by cravenge; 09-18-2021 at 06:28. Reason: 0.3 Release
    cravenge is offline
    Tonblader
    Senior Member
    Join Date: Jul 2011
    Location: Peru
    Old 08-07-2021 , 13:10   Re: [L4D2] "go_away_from_keyboard" Unlock | 0.1 : August 7, 2021 |
    Reply With Quote #2

    [L4D2] Speedrunner Tools it already has this function or something similar.

    sm_cvar st_idle_anytime 1
    Tonblader is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 08-07-2021 , 13:39   Re: [L4D2] "go_away_from_keyboard" Unlock | 0.1 : August 7, 2021 |
    Reply With Quote #3

    Quote:
    Originally Posted by Tonblader View Post
    [L4D2] Speedrunner Tools it already has this function or something similar.

    sm_cvar st_idle_anytime 1
    Quote:
    This serves as a better method than calling CTerrorPlayer::GoAwayFromKeyboard manually in order to save others the hassle of attempting to fetch the localized Valve translations for whenever someone takes a break through hack-ish workarounds or printing their own chat message for others to take notice.

    Last edited by cravenge; 08-07-2021 at 13:42.
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 08-07-2021 , 16:13   Re: [L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
    Reply With Quote #4

    Updated! Please redownload and remove any traces of the old version.
    Code:
    + Now patches the auto idle detection as well.
    + Full L4D support.

    Last edited by cravenge; 09-16-2021 at 06:42.
    cravenge is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 08-07-2021 , 23:03   Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
    Reply With Quote #5

    L4D1
    console:spectate
    ZBzibing is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 08-07-2021 , 23:52   Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
    Reply With Quote #6

    Quote:
    Originally Posted by ZBzibing View Post
    L4D1
    console:spectate
    L4D1 only has support for auto idle at the moment. I'm trying to see if I can apply the same method for the manual one.
    cravenge is offline
    AI0702
    Junior Member
    Join Date: Apr 2021
    Old 08-08-2021 , 08:22   Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
    Reply With Quote #7

    Can you somehow map this function to the Take a Break button, which is grayed out when you're the only human player? Also, to keep the idle state after map change.
    AI0702 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 08-08-2021 , 10:18   Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
    Reply With Quote #8

    Cool feature!
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 08-08-2021 , 17:21   Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
    Reply With Quote #9

    Quote:
    Originally Posted by AI0702 View Post
    Can you somehow map this function to the Take a Break button, which is grayed out when you're the only human player?
    Alternatively, you can bind the command to a button for easy access.

    Last edited by cravenge; 08-09-2021 at 20:25.
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 08-09-2021 , 20:28   Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
    Reply With Quote #10

    Quote:
    Originally Posted by AI0702 View Post
    Also, to keep the idle state after map change.
    I have tested numerous times and all idle states are saved across map transitions then restored 5 seconds later after loading in for each player per the game's usual behavior. You might have a plugin that's calling CTerrorPlayer::TakeoverBot (or "TakeoverBot" for short) manually every map change.
    cravenge is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 21:38.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode