AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix][25/09/2020] (https://forums.alliedmods.net/showthread.php?t=326742)

Lux 08-14-2020 17:03

[L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix][25/09/2020]
 
1 Attachment(s)
This is a replacement for [L4D(2)] 4+ Survivor AFK Fix (1.2) so remove it.
This afk fix includes no commands since it fixes the game function.

L4d1 is only a port and untested let me know.

Thanks Leonardo for helping me with the vgui keyvalue layout.

RepoLink


Installation:
1.Download the .zip file.
2.Merge with \addons\ folder.
3.Restart the server.

Mi.Cura 08-17-2020 09:15

Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
 
Hi Lux,

Some players stay in "spectator" mode and are unable to return.

L 08/16/2020 - 19:53:12: [SM] Blaming: survivor_afk_fix.smx
L 08/16/2020 - 19:53:12: [SM] Call stack trace:
L 08/16/2020 - 19:53:12: [SM] [0] DHookSetParam
L 08/16/2020 - 19:53:12: [SM] [1] Line 170, D:\Github\Left-4-fix\left 4 fix\survivors\survivor_afk_fix\scripting\surv ivor_afk_fix.sp::OnSetObserverTargetPre
L 08/16/2020 - 19:53:12: [SM] Exception reported: Invalid entity index passed for param value

SourceMod v1.10.0.6492 - ABM - dhooks-2.2.0-detours14a-sm110

cravenge 08-17-2020 10:28

Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
 
Took a quick look at the source and found these:
PHP Code:

if(g_bShouldFixAFK && g_iSurvivorBot 1

(From the source code at line 176) It should have been if(g_bShouldFixAFK && g_iSurvivorBot > 0) instead? And...
PHP Code:

type    "cbaseentity" 

(From the gamedata at line 38) Missing quotes, I guess?

Lux 08-17-2020 13:05

Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
 
Quote:

Originally Posted by Mi.Cura (Post 2714529)
...

Quote:

Originally Posted by cravenge (Post 2714533)
Took a quick look at the source and found these:
PHP Code:

if(g_bShouldFixAFK && g_iSurvivorBot 1

(From the source code at line 176) It should have been if(g_bShouldFixAFK && g_iSurvivorBot > 0) instead? And...
PHP Code:

type    "cbaseentity" 

(From the gamedata at line 38) Missing quotes, I guess?

Thanks ill have a look, see what I can change not sure how you caused error i tried :c

Lux 08-17-2020 21:56

Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
 
Quote:

Originally Posted by Mi.Cura (Post 2714529)
Hi Lux,

Some players stay in "spectator" mode and are unable to return.

L 08/16/2020 - 19:53:12: [SM] Blaming: survivor_afk_fix.smx
L 08/16/2020 - 19:53:12: [SM] Call stack trace:
L 08/16/2020 - 19:53:12: [SM] [0] DHookSetParam
L 08/16/2020 - 19:53:12: [SM] [1] Line 170, D:\Github\Left-4-fix\left 4 fix\survivors\survivor_afk_fix\scripting\surv ivor_afk_fix.sp::OnSetObserverTargetPre
L 08/16/2020 - 19:53:12: [SM] Exception reported: Invalid entity index passed for param value

SourceMod v1.10.0.6492 - ABM - dhooks-2.2.0-detours14a-sm110

Try this build see if it solves the problem
https://github.com/LuxLuma/Left-4-fi...vor_afk_fix.sp

Edit:
Use main post now can ignore that build.

Mi.Cura 08-18-2020 09:26

Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
 
Quote:

Originally Posted by Lux (Post 2714618)
Try this build see if it solves the problem
https://github.com/LuxLuma/Left-4-fi...vor_afk_fix.sp

Thank you Lux.. :)

Lux 08-19-2020 16:45

Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
 
Quote:

Originally Posted by Mi.Cura (Post 2714681)
Thank you Lux.. :)

No problem, I don't understand you thanking me for test build or did it fix the problem?

Mi.Cura 08-19-2020 16:54

Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix]
 
Quote:

Originally Posted by Lux (Post 2714852)
No problem, I don't understand you thanking me for test build or did it fix the problem?


Hi Lux, yes I thanked you for the repair. No more errors in the LOG.

Lux 08-19-2020 18:53

Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix][19/08/2020]
 
Thanks for testing Mi.Cura

Update 1.0.4
Thanks Leonardo for helping me with the vgui keyvalue layout.
Fixed error somepeople maybe having players being stuck in spec.

As a note this wont fix players being forced into spec if the server has no clientslots e.g. 32 survivors since no new clients can be created.

Alex101192 09-20-2020 18:45

Re: [L4D1 & L4D2]Survivor_AFK_Fix[Left 4 Fix][19/08/2020]
 
This plugin used on a 8 players coop server with superversus caused players to spawn with 100 hp even though there was free dead bots. At some point it even completely broke one of the bots which caused players to be on a tpose and not being able to move.

I reverted back to the old afk fix and none of this problems happened again.


All times are GMT -4. The time now is 01:49.

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