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

[L4D2] Wait for loaders on door lock


Post New Thread Reply   
 
Thread Tools Display Modes
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 11-13-2019 , 22:52   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #11

check this code bro [L4D] Loading Bug Removal/ Door Lock

Last edited by foxhound27; 11-13-2019 at 23:04.
foxhound27 is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 11-14-2019 , 00:47   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #12

AFAIK, you can achieve this by:
PHP Code:
int GetConnectingCount()
{
    
int iCount 0;
    for (
int i 1<= MaxClientsi++)
    {
        if (
IsClientConnected(i) && !IsClientInGame(i) && !IsFakeClient(i))
        {
            
iCount += 1;
        }
    }
    return 
iCount;

This little code snippet is taken from my latest unreleased versions of Anti-Rush and Lockdown Systems plugins.
cravenge is offline
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 11-17-2019 , 21:25   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #13

require at least sm 1.8 coop only working 100% not sure about the other gametypes

recommend use with https://forums.alliedmods.net/showthread.php?t=321993
Attached Files
File Type: inc glow.inc (3.0 KB, 232 views)
File Type: smx l4d2_lock.smx (19.9 KB, 251 views)
File Type: sp Get Plugin or Get Source (l4d2_lock.sp - 231 views - 39.2 KB)

Last edited by foxhound27; 08-03-2020 at 11:44. Reason: Update
foxhound27 is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 01-06-2020 , 08:19   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #14

It does not show the message when a player is loading or timeout. Any ideas why ?
JLmelenchon is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 01-06-2020 , 11:53   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #15

Same problem as anti rush plugin, broken finale for the second round. Exclude the last map of campaigns ?
JLmelenchon is offline
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 01-06-2020 , 21:17   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #16

If you need a pre-game readyup/door locking plugin, you can download my Ready-Up plugin, which is available on this thread: https://forums.alliedmods.net/showthread.php?p=2674703

Drop it into maintenance-only mode by editing this line of the /configs/readyup/readyup.cfg:
Code:
"skip readyup period?"	"0"	// Does the ready up period not occur? (Global forwards will still occur) 1 - waits for connecting players 2 - game begins when first client loads.
There is an anti-rush module, but you can always write your own, since it has its own, extensive API.
Skyy is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 01-07-2020 , 01:13   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #17

This plugins works well enough for me and is simple to use.

Someone just need to add a cvar to restict gamemode as it is not necessary in survival for example, fix the message when someone is loading, and figure a way to exclude the last map of campaigns as it is breaking the second round of versus sometimes (no hordes, no tanks, no cans on dead center ect).
JLmelenchon is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 01-07-2020 , 02:31   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #18

I modified the plugin by removing path lock on first map of campaigns as it was useless because there is already the intro, disabled lock sequence for last maps of official campaigns (should fix the second round broken on VS mode i hope), removed the temporary block function of bots as it could cause problems too.

The code definitely still need a little cleaning here and here, but for now it should work and i will see if it fix the problem mentionned above.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_lock.sp - 174 views - 25.2 KB)
File Type: smx doorlock.smx (14.8 KB, 144 views)
JLmelenchon is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-07-2020 , 07:44   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #19

Maybe would be better to detect if the "intro entity" exists before removing the temporary block, some users like me remove the intro from some maps with stripper, so it would be a false positive. But this is just a note.
__________________
Marttt is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 01-07-2020 , 10:37   Re: [L4D2] Wait for loaders on door lock
Reply With Quote #20

Sorry, but you can still put them back it's just i didn't like that. I'm still searching what could be the reason for the player loading message not appearing.

Edit: In the last section replace PrintCenterText(e, by PrintHintTextToAll and it will fix the message for loaders.

Last edited by JLmelenchon; 01-07-2020 at 12:55.
JLmelenchon 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 00:09.


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