AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [L4D2] Slow down the mob horde spawn and SI respawn time (https://forums.alliedmods.net/showthread.php?t=334446)

ddd123 09-24-2021 22:22

[L4D2] Slow down the mob horde spawn and SI respawn time
 
I swear, 60~70% of custom maps are filled with never stop spawning horde mob BUT also almost no respawn time on special infected when some panic/horde started and i hate it

ffs, i'm playing alone with bots and these kinds of bad design at finest custom map make me want to puke and frustrate

Is there's a plugin that force to slowdown the horde mob spam and special infected respawn time when they start to spawn way too fast?

Using [L4D1 & L4D2] Zombie limits didn't help at all since it's pointless if the map/event decide to spawning the un/commons and SI at literally 3~5 seconds

Silvers 09-25-2021 07:05

Re: [L4D2] Slow down the mob horde spawn and SI respawn time
 
Left4DHooks can change the spawn mob timers and amount of mob. Would be easy for someone to write a plugin using that and changing the time/size of mobs.

ddd123 09-25-2021 18:12

Re: [L4D2] Slow down the mob horde spawn and SI respawn time
 
Quote:

Originally Posted by Silvers (Post 2758822)
Left4DHooks can change the spawn mob timers and amount of mob. Would be easy for someone to write a plugin using that and changing the time/size of mobs.

Does Left4DHooks also help solve with special infected respawn interval?

I'm testing [L4D2] VScript Director Options Unlocker and sometime this plugin doesn't work?

PHP Code:

l4d2_directoroptions_overwrite "MaxSpecials=4;BoomerLimit=1;HunterLimit=1;SmokerLimit=1;JockeyLimit=1;ChargerLimit=1;SpitterLimit=1;
CommonLimit=30;SpecialRespawnInterval=40;cm_SpecialRespawnInterval=40;LockTempo=0;MobSpawnMaxTime=60;MobMinSize=1;RelaxMaxInterval=30;
ShouldAllowSpecialsWithTank=1;ShouldAllowMobsWithTank=0;ZombieDiscardRange=4000;SpecialInitialSpawnDelayMin=45" 

I put all special infected limit with 1 and test to play with bad sample of custom map
But sometime i still see 2 hunter and 2 smoker with literally one second respawn interval (According to nut file, it said "SpecialRespawnInterval = 1.0") which is totally unfair

Actually, i never edit vscript or nut file thingy so i don't know if i did right or what are the best mob spawn interval and something

Austin 09-26-2021 03:20

Re: [L4D2] Slow down the mob horde spawn and SI respawn time
 
Just edit the nut files.
You will have total control over these things you are asking about and much more.

I use Stripper and other methods to find the nut scripts the campaign is using.
Then I use
http://www.mediafire.com/file/q4dqbs...orBeta.7z/file
to decode and get a copy of the original .nut file.

I then modify it and put it here on the server.
\L4D2\left4dead2\scripts\vscripts\

If you put it in the correct place it will 100% of the time be used insetad of the original .nut file and work. It is that easy but understanding VScripts takes some effort.
https://developer.valvesoftware.com/wiki/VScript
https://developer.valvesoftware.com/wiki/L4D2_Vscripts

See this post.
https://forums.alliedmods.net/showthread.php?t=334216
It is a long post but explains a lot of things and gives four ways to make these events better/easier.
1) Turn off the event totally using stripper
2) Turn off the event using the VScript method
3) Modify the event using VScripts
4) use stripper or a plugin to add bile and pipe bombs to the maps near the start of the events.

See the part about changing the gauntlet run to the safe room second to last map of Dark Carnival.
To make this run less annoying I changed it to spawn the gauntlet hoard from BEHIND instead of in front of the survivors.

Give it a try to see how it works.
Try out my change by placing this file
https://forums.alliedmods.net/attach...9&d=1631346034
here.
\L4D2\left4dead2\scripts\vscripts\c2m4_barns_ onslaught2.nut

I only changed this line to spawn the mob behind the survivors.
PreferredMobDirection = SPAWN_BEHIND_SURVIVORS

But you can see the other options in there you were asking about.
SpecialRespawnInterval = 1.0
SmokerLimit = 2
JockeyLimit = 0
BoomerLimit = 0
HunterLimit = 2
ChargerLimit = 1

One other thing I have been doing to make these horrible gauntlet runs and endless hoards less painful is to use Stripper and my map item spawner (mentioned in that post) to place bile and pipe bombs in the maps at the start of these events to make them easier. There are other new item spawn plugins you can find too.

ddd123 09-26-2021 17:41

Re: [L4D2] Slow down the mob horde spawn and SI respawn time
 
Quote:

Originally Posted by Austin (Post 2758894)
Just edit the nut files.
You will have total control over these things you are asking about and much more.

Thanks for nice guides and advice

Although i still kinda wish if there's a plugin/smx that can automatically stop the infinite hordes and stop reducing the SI respawn timer on custom maps instead of decompile each nut files while also decompile the vpk custom maps

If sourcemod plugins is impossible, i will use this guide to stop the frustration

Silvers 09-28-2021 21:45

Re: [L4D2] Slow down the mob horde spawn and SI respawn time
 
Left4DHooks has:

PHP Code:

// Forwards:
forward Action L4D_OnMobRushStart();
forward Action L4D_OnSpawnITMob(int &amount);
forward Action L4D_OnSpawnMob(int &amount);

// Natives: 
native void L4D_ResetMobTimer();
native int L4D2Direct_GetPendingMobCount();
native void L4D2Direct_SetPendingMobCount(int count);
native CountdownTimer L4D2Direct_GetMobSpawnTimer();
L4D2_CTimerGetRemainingTime(L4D2CT_MobSpawnTimer);
L4D2_CTimerInvalidate(L4D2CT_MobSpawnTimer); 

Can use the forwards to then call the natives or change the mob amount etc. Depending on what you want.

ddd123 09-28-2021 22:40

Re: [L4D2] Slow down the mob horde spawn and SI respawn time
 
Quote:

Originally Posted by Silvers (Post 2759152)
Left4DHooks has:

PHP Code:

// Forwards:
forward Action L4D_OnMobRushStart();
forward Action L4D_OnSpawnITMob(int &amount);
forward Action L4D_OnSpawnMob(int &amount);

// Natives: 
native void L4D_ResetMobTimer();
native int L4D2Direct_GetPendingMobCount();
native void L4D2Direct_SetPendingMobCount(int count);
native CountdownTimer L4D2Direct_GetMobSpawnTimer();
L4D2_CTimerGetRemainingTime(L4D2CT_MobSpawnTimer);
L4D2_CTimerInvalidate(L4D2CT_MobSpawnTimer); 

Can use the forwards to then call the natives or change the mob amount etc. Depending on what you want.

I'm sorry, i'm not really a big coder but how do i use Left4DHook's forwards and natives?
Do i need to make new plugins/smx/sp and use those codes in order to use?

Gold Fish 02-16-2022 06:48

Re: [L4D2] Slow down the mob horde spawn and SI respawn time
 
Quote:

Originally Posted by Silvers (Post 2759152)
Left4DHooks has:

PHP Code:

// Forwards:
forward Action L4D_OnMobRushStart();
forward Action L4D_OnSpawnITMob(int &amount);
forward Action L4D_OnSpawnMob(int &amount);

// Natives: 
native void L4D_ResetMobTimer();
native int L4D2Direct_GetPendingMobCount();
native void L4D2Direct_SetPendingMobCount(int count);
native CountdownTimer L4D2Direct_GetMobSpawnTimer();
L4D2_CTimerGetRemainingTime(L4D2CT_MobSpawnTimer);
L4D2_CTimerInvalidate(L4D2CT_MobSpawnTimer); 

Can use the forwards to then call the natives or change the mob amount etc. Depending on what you want.

Does this only apply to ordinary (common) zombies?


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

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