Raised This Month: $106 Target: $400
 26% 

[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: Middle of Nowhere
Plugin ID:
7748
Plugin Version:
0.3
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Allows players to idle, both automatically and manually, regardless of the number of humans in the Survivor team
    Old 08-07-2021 , 11: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, 66 views)
    File Type: sp Get Plugin or Get Source (go_afk_unlock.sp - 92 views - 10.5 KB)
    __________________

    Last edited by cravenge; 09-18-2021 at 07:28. Reason: 0.3 Release
    cravenge is offline
    Tonblader
    Senior Member
    Join Date: Jul 2011
    Location: Peru
    Old 08-07-2021 , 14: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 online now
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Middle of Nowhere
    Old 08-07-2021 , 14: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 14:42.
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Middle of Nowhere
    Old 08-07-2021 , 17: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 07:42.
    cravenge is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 08-08-2021 , 00: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: Middle of Nowhere
    Old 08-08-2021 , 00: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 , 09: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
    Old 08-08-2021 , 11: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)
    [My plugins] [My tools] [GitHub] [Articles] [Donate]
    Dragokas is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Middle of Nowhere
    Old 08-08-2021 , 18: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 21:25.
    cravenge is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Middle of Nowhere
    Old 08-09-2021 , 21: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 19:16.


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