AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Proper Changelevel [Left 4 Fix] [17/11/2019] (https://forums.alliedmods.net/showthread.php?t=319156)

Lux 10-16-2019 01:56

[L4D2] Proper Changelevel [Left 4 Fix] [17/11/2019]
 
1 Attachment(s)
Hi, This plugin fixes level changing from degrading server performance with a native to use in your map changing plugins

This plugin does near nothing on it's own it's for dev's to include in their mission managers.

However there is a command
"sm_changelevel" This requires Admin_Root or from server console function same as sm_map.


Tech stuff
Spoiler


Native
PHP Code:


/**
*    @param    sMapName                Map String without .bsp
*    @param    bShouldResetScores        Reset all scores in all gamemodes
*    @noreturn
*/
native void L4D2_ChangeLevel(const char[] sMapNamebool bShouldResetScores=true); 

[L4D2] Improved Automatic Campaign Switcher (ACS)

Thanks:
SirPlease for testing.
Silvers throwing ideas.
A1m` testing and reporting issue.


Maybe this method will get merged into sourcemod for l4d2 only?

Installation:

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

Eyedol 10-16-2019 18:18

Re: [L4D2] Proper Changelevel
 
Hello, using this method solves the problem of CPU increase over time? Or is it focused on something else?

Sorry if the question seems to be very obvious but I was testing it and I can't understand :(

Psyk0tik 10-17-2019 10:12

Re: [L4D2] Proper Changelevel
 
Oh hey, you finally released it here. Nice! :D

Lux 10-18-2019 04:07

Re: [L4D2] Proper Changelevel
 
Quote:

Originally Posted by Crasher_3637 (Post 2669961)
Oh hey, you finally released it here. Nice! :D

:twisted:

Quote:

Originally Posted by Eyedol (Post 2669915)
Hello, using this method solves the problem of CPU increase over time? Or is it focused on something else?

Sorry if the question seems to be very obvious but I was testing it and I can't understand :(

If the issue with CPU increase overtime is related to vscript then yes that i know of.

AK978 10-18-2019 08:01

Re: [L4D2] Proper Changelevel
 
Unzip failed.

Psyk0tik 10-18-2019 08:07

Re: [L4D2] Proper Changelevel
 
Quote:

Originally Posted by AK978 (Post 2670045)
Unzip failed.

Not his problem. Use a program like 7Zip or Winrar to extract the files...

AK978 10-18-2019 09:10

Re: [L4D2] Proper Changelevel
 
ok.
tks~

Lux 11-01-2019 12:06

Re: [L4D2] Proper Changelevel [Left 4 Fix] [1/11/2019]
 
Update 1.2.0
Included resetting scores for gamemodes that require it, that persist across levelchanges. thanks A1m`

https://github.com/LuxLuma/Left-4-fi...8163eddf4dd8fd

tRololo312312 11-04-2019 16:21

Re: [L4D2] Proper Changelevel [Left 4 Fix] [1/11/2019]
 
One issue i have with plugin that it doesnt reset the survivors when it changes map like normal changelevel does. Like, if i was playing Passing Francis, then load into new map, im still Francis instead of the being one of the l4d2 survivors...

Lux 11-04-2019 16:42

Re: [L4D2] Proper Changelevel [Left 4 Fix] [1/11/2019]
 
That's normal, game saves and restores your character when using game's voting functions.

Since no one really uses voting stuff on modded servers was never noticed.
If you vote for start new campaign will have same effect as using my plugin since both voting function have similar code paths, other than campaign accepts the "name" from the mission file and my plugin accepts bsp names.


All times are GMT -4. The time now is 05:46.

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