AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.3 : September 16, 2021 | (https://forums.alliedmods.net/showthread.php?t=333815)

cravenge 08-07-2021 10:53

[L4D/L4D2] "go_away_from_keyboard" Unlock | 0.3 : September 16, 2021 |
 
2 Attachment(s)
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.


Tonblader 08-07-2021 13:10

Re: [L4D2] "go_away_from_keyboard" Unlock | 0.1 : August 7, 2021 |
 
[L4D2] Speedrunner Tools it already has this function or something similar.

sm_cvar st_idle_anytime 1

cravenge 08-07-2021 13:39

Re: [L4D2] "go_away_from_keyboard" Unlock | 0.1 : August 7, 2021 |
 
Quote:

Originally Posted by Tonblader (Post 2754713)
[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.

cravenge 08-07-2021 16:13

Re: [L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
 
Updated! Please redownload and remove any traces of the old version.
Code:

+ Now patches the auto idle detection as well.
+ Full L4D support.


ZBzibing 08-07-2021 23:03

Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
 
L4D1
console:spectate

cravenge 08-07-2021 23:52

Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
 
Quote:

Originally Posted by ZBzibing (Post 2754744)
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.

AI0702 08-08-2021 08:22

Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
 
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.

Dragokas 08-08-2021 10:18

Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
 
Cool feature!

cravenge 08-08-2021 17:21

Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
 
Quote:

Originally Posted by AI0702 (Post 2754765)
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.

cravenge 08-09-2021 20:28

Re: [L4D/L4D2] "go_away_from_keyboard" Unlock | 0.2 : August 8, 2021 |
 
Quote:

Originally Posted by AI0702 (Post 2754765)
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.


All times are GMT -4. The time now is 10:33.

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