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

[L4D(2)] 4+ Survivor AFK Fix (1.2)


Post New Thread Reply   
 
Thread Tools Display Modes
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-16-2021 , 08:32   Re: [L4D(2)] 4+ Survivor AFK Fix (1.2)
Reply With Quote #51

Hmm, I don't know, have only used that on an L4D2 server, maybe you should try the main post version.

Btw, both version has the "handle leak" issue in the datapack part.
__________________
Marttt is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 04-16-2021 , 11:22   Re: [L4D(2)] 4+ Survivor AFK Fix (1.2)
Reply With Quote #52

I tried the opening post plugin as well. That one didn't work for me either. I want to stick with your plugin coz it has the 'handle leak' fix.
Sunyata is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-16-2021 , 11:50   Re: [L4D(2)] 4+ Survivor AFK Fix (1.2)
Reply With Quote #53

Is a simple fix, only has to change the timer code to:

PHP Code:
            if(IsClientInGame(client))
            {
                
Handle datapack;
                
CreateDataTimer(0.5Timer_ActivateFixdatapackTIMER_FLAG_NO_MAPCHANGE);
                
WritePackCell(datapackclient);
                
WritePackCell(datapackbot);
            } 
__________________

Last edited by Marttt; 02-20-2022 at 07:16.
Marttt is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 02-21-2022 , 05:54   Re: [L4D(2)] 4+ Survivor AFK Fix (1.2)
Reply With Quote #54

I remove lots of code to remake a new one.

v1.1
-Fixes issue when a bot die, his IDLE player become fully spectator rather than take over dead bot in 4+ survivors games

-Require-
Left 4 DHooks Direct

Related plugin (No conflict):
-Edit Github-
Latest version always here
Attached Files
File Type: sp Get Plugin or Get Source (l4dafkfix_deadbot.sp - 1014 views - 1.8 KB)
__________________

Last edited by HarryPotter; 03-06-2022 at 09:05.
HarryPotter is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 02-21-2022 , 07:26   Re: [L4D(2)] 4+ Survivor AFK Fix (1.2)
Reply With Quote #55

Quote:
Originally Posted by HarryPotter View Post
I remove lots of code to remake a new one.

v1.0
-Fixes issue when a bot die, his IDLE player become fully spectator rather than take over dead bot in 4+ survivors games

-Require-
Left 4 DHooks Direct

Related plugin (No conflict):
map_transition, mission_lost, finale_vehicle_leaving are not required. After map_transition is triggered, the game will let idle players automatically take over the corresponding SurvivorBot, and round_end is triggered immediately after mission_lost, these two are repeated
sorallll is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 02-21-2022 , 09:26   Re: [L4D(2)] 4+ Survivor AFK Fix (1.2)
Reply With Quote #56

Quote:
Originally Posted by sorallll View Post
map_transition, mission_lost, finale_vehicle_leaving are not required. After map_transition is triggered, the game will let idle players automatically take over the corresponding SurvivorBot,
Yup

Quote:
and round_end is triggered immediately after mission_lost, these two are repeated
In case some players use this plugin, players can become idle in versus mode.
In versus mode, only trigger round_end event.
But you are right, unnecessary code.
__________________
HarryPotter is offline
thewintersoldier97
Senior Member
Join Date: Aug 2021
Location: Vietnam
Old 02-22-2022 , 03:53   Re: [L4D(2)] 4+ Survivor AFK Fix (1.2)
Reply With Quote #57

Quote:
Originally Posted by HarryPotter View Post
I remove lots of code to remake a new one.

v1.0
-Fixes issue when a bot die, his IDLE player become fully spectator rather than take over dead bot in 4+ survivors games

-Require-
Left 4 DHooks Direct

Related plugin (No conflict):
I thought this and "Survivor_AFK_Fix" have the same function? So install both is recommended?
__________________

Looking for some fun!

Last edited by thewintersoldier97; 02-22-2022 at 03:53.
thewintersoldier97 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 02-22-2022 , 09:44   Re: [L4D(2)] 4+ Survivor AFK Fix (1.2)
Reply With Quote #58

Quote:
Originally Posted by thewintersoldier97 View Post
I thought this and "Survivor_AFK_Fix" have the same function? So install both is recommended?
Survivor_AFK_Fix by lux doesn't fix this issue
"When a bot die, his IDLE player become fully spectator rather than take over dead bot in 4+ survivors games"
,
so I come to share my code.

No conflict if you install those related plugins together.
__________________

Last edited by HarryPotter; 02-22-2022 at 09:46.
HarryPotter is offline
thewintersoldier97
Senior Member
Join Date: Aug 2021
Location: Vietnam
Old 02-22-2022 , 22:39   Re: [L4D(2)] 4+ Survivor AFK Fix (1.2)
Reply With Quote #59

Quote:
Originally Posted by HarryPotter View Post
Survivor_AFK_Fix by lux doesn't fix this issue
"When a bot die, his IDLE player become fully spectator rather than take over dead bot in 4+ survivors games"
,
so I come to share my code.

No conflict if you install those related plugins together.
Great, thank you

Edit: Got these while compiling
Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// l4dafkfix_deadbot.sp
//
// D:\GAMES\SERVER\L4D2 #TEST\left4dead2\addons\sourcemod\scripting\l4dafkfix_deadbot.sp(39) : warning 242: function "Event_PlayerDeath" should return an explicit value
// Code size:         4648 bytes
// Data size:         5780 bytes
// Stack/heap size:      16400 bytes
// Total requirements:   26828 bytes
//
// 1 Warning.
//
// Compilation Time: 1 sec
// ----------------------------------------

Press enter to exit ...
__________________

Looking for some fun!

Last edited by thewintersoldier97; 02-22-2022 at 22:40.
thewintersoldier97 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 02-23-2022 , 10:47   Re: [L4D(2)] 4+ Survivor AFK Fix (1.2)
Reply With Quote #60

Quote:
Originally Posted by thewintersoldier97 View Post
Great, thank you

Edit: Got these while compiling
Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// l4dafkfix_deadbot.sp
//
// D:\GAMES\SERVER\L4D2 #TEST\left4dead2\addons\sourcemod\scripting\l4dafkfix_deadbot.sp(39) : warning 242: function "Event_PlayerDeath" should return an explicit value
// Code size:         4648 bytes
// Data size:         5780 bytes
// Stack/heap size:      16400 bytes
// Total requirements:   26828 bytes
//
// 1 Warning.
//
// Compilation Time: 1 sec
// ----------------------------------------

Press enter to exit ...
updated
__________________
HarryPotter is offline
Reply



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 12:37.


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