AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Auto Infected Spawner (https://forums.alliedmods.net/showthread.php?t=105661)

Tordecybombo 10-06-2009 22:02

[L4D & L4D2] Auto Infected Spawner
 
2 Attachment(s)
This is my first plugin. :)

I wanted some way to keep pummeling survivors with special infected while making some special infected spawn more often than others (since I loved killing lots of boomers, I wanted boomers to spawn much more often than smokers and hunters). I decided to make this plugin when other plugins and built-in cvars didn't spawn infected exactly how I wanted.


DESCRIPTION

Manages its own system of automatic infected spawning. Change a specific special infected's chance of spawn by changing its weight. The higher the weight, the higher the chance it spawns, vice versa.

- The probability of a special infected spawning is (its weight)/(sum of all weights).
- The plugin for now can spawn upto 14 special infected (excluding witch) at once.
- Tank can have an exception of having -1 weight, which isn't factored into the weight sum. Instead, the director manages the spawning of the tanks (i.e. lottery system at each checkpoint).
- Witches aren't considered in these weights since they're the only non-playable special infected. Witches have their own spawning system. A setting of -1 on the witch limit cvar is director handled.
- Randomized spawn time mode: random spawn time between min and max spawn time
- Incremental spawn time mode: spawn time slows down as there are more special infected on the map at once; speeds up when there are less special infected
- Decremental spawn time mode: spawn time speeds up as there are more special infected; slows down when there are less special infected
- Constant witch spawn time mode: one witch spawns at the end of a witch spawn time interval
- Variable witch spawn time mode: one witch spawns anytime within a witch spawn time interval


CONFIG
If you don't want the settings to reset every map change, edit the cvars in the automatically generated l4d_autoSI.cfg at the cfg/sourcemod directory.


CVARS
l4d_ais_version - Auto Infected Spawner Version
l4d_ais_enabled - "1" - Disable/Enable functionality of the plugin
l4d_ais_disable_in_versus - "1" - Automatically disable plugin in versus mode
l4d_ais_fast_response - "0" - Disable/Enable faster special infected response
l4d_ais_fast_spawn - "0" - Disable/Enable faster special infected spawn (Enable when SI spawn rate is high)
l4d_ais_safe_spawn - "0" - Disable/Enable special infected spawning while survivors are in safe room
l4d_ais_boomer_weight - "100" - The weight for a boomer spawning
l4d_ais_hunter_weight - "100" - The weight for a hunter spawning
l4d_ais_smoker_weight - "100" - The weight for a smoker spawning
l4d_ais_tank_weight - "-1" - The weight for a tank spawning [-1 = Director spawns tanks]
l4d_ais_witch_limi
t - "-1" - The max amount of witches present at once (independant of l4d_ais_limit) [-1 = Director spawns witches]
l4d_ais_witch_period - "300.0" - The time (seconds) interval in which exactly one witch will spawn
l4d_ais_witch_period_mode - "1" - The witch spawn rate consistency [0 = CONSTANT | 1 = VARIABLE]
l4d_ais_limit - "3" - The max amount of special infected at once
l4d_ais_spawn_size - "1" - The amount of special infected spawned at each spawn interval
l4d_ais_time_mode - "1" - The spawn time mode [0 = RANDOMIZED | 1 = INCREMENTAL | 2 = DECREMENTAL]
l4d_ais_time_min - "0.0" - The minimum auto spawn time (seconds) for infected
l4d_ais_time_max - "60.0" - The maximum auto spawn time (seconds) for infected


ADMIN CMDS
l4d_ais_reset - Reset by slaying all special infected and restarting the timer
l4d_ais_start - Manually start the spawn timer
l4d_ais_time - Set a constant spawn time (seconds) by setting l4d_ais_time_min and l4d_ais_time_max to the same value
l4d_ais_preset - Set spawn weights to given presets <default|none|boomer|smoker|hunter|tank>


PROBLEMS
- It might conflict with other spawn plugins, such as infectedbots. I put a cvar that automatically disables the plugin in versus.
- Possible conflict with Kigen's anticheat since this plugin uses the z_spawn cheat


CREDITS
djromero for laying the foundation of the infected bots plugin.
mi123645 for letting me use some code from his infectedbots plugin.
FuzzOne and TacKLER for porting this plugin to L4D2.
Munch for updating plugin for L4D2

VERSION HISTORY
1.0.0 - Initial release (l4d_autoIS)

L4D1 version: l4d_autoIS
L4D2 version: l4d2_autoIS

uriel18 10-07-2009 09:02

Re: [L4D] Auto Infected Spawner
 
Thx dude, i will try.

Stormhold 10-18-2009 08:49

Re: [L4D] Auto Infected Spawner
 
Sounds interesting... Wonder if it will fit with l4100. I'll try this mod and coment, but maybe not today.

LTR.2 10-18-2009 11:21

Re: [L4D] Auto Infected Spawner
 
this could fix that glicth that makes a entire team have 4 hunters.

however, too bad it doesn't work with mi123456's plugin =S

any plans to fix that in the future?

mi123645 10-18-2009 21:03

Re: [L4D] Auto Infected Spawner
 
Very impressive work, Tordecybombo. The use of weights to determine the chance of an infected spawning is very interesting. Once again, kudos.

dave_with_beer_bottle 10-20-2009 06:29

Re: [L4D] Auto Infected Spawner
 
hi Tordecybombo,
i was just wonder if you could help me little with this,because i can't get it ,don't even know if its possible
how can i set 3 boomers,2 smokers and 4 hunters come at us at same time,lets say like every 15 sec
+ 2 tanks and 3 witches whenever tank or witch is spawned
thanks in advanced

Tordecybombo 10-20-2009 07:59

Re: [L4D] Auto Infected Spawner
 
not possible yet but it should work after I add limit functionality for each specific special infected

leonil7 10-29-2009 17:20

Re: [L4D] Auto Infected Spawner
 
great plugin. thanks!

Grass 10-30-2009 12:01

Re: [L4D] Auto Infected Spawner
 
works great in co-op but messes up infected spawn in versus can this be fixed? People get stuck in spawn mode and can't spawn. My server did it after i put this plug in on it and after that i took it off and works great. hope it can be fixed great plug in.

leonil7 11-01-2009 18:14

Re: [L4D] Auto Infected Spawner
 
works with multitank plugin at COOP games but messes at the rescue maps. tanks will not spawn at finale.
and most of all, server crashes many times.

its probably due to the conflict between tank and special spawns.

djromero 11-01-2009 22:42

Re: [L4D] Auto Infected Spawner
 
Quote:

Originally Posted by Tordecybombo (Post 954529)
CREDITS
mi123645 for letting me use some code from his infectedbots plugin.

Just mi123645 ??? :)

mi123645 11-01-2009 23:26

Re: [L4D] Auto Infected Spawner
 
djromero coded the foundation of the Infected Bots plugin today. He deserves the credit.

Tordecybombo 11-02-2009 15:15

Re: [L4D] Auto Infected Spawner
 
alright I'll add djromero for credits

triggerman 11-13-2009 00:45

Re: [L4D] Auto Infected Spawner
 
i found that the Game mode config loader works great to enable and disable this plugin depending on if its versus or not. i suppose it can do it for any plugin thats versus/coop only though.

triggerman 11-25-2009 00:32

Re: [L4D] Auto Infected Spawner
 
any chance of this getting a l4d2 port? i really liked this plugin and would love to use it in l4d2.

FuzzOne 11-27-2009 00:01

Re: [L4D] Auto Infected Spawner
 
Dude, upgrade to L4D2!
This is the best spawner plugin ever!

triggerman 11-30-2009 18:56

Re: [L4D] Auto Infected Spawner
 
this plugin NEEDS to be upgraded to L4D2. Its too good not to be.

FuzzOne 12-01-2009 01:41

Re: [L4D] Auto Infected Spawner
 
Im did it! Its working greattly on l4d2! Easy!
Let me just fix a few thing xD

s6xsophia 12-01-2009 06:43

Re: [L4D] Auto Infected Spawner
 
Hope to increase support l4d2 version
I like it. Thank you,

triggerman 12-02-2009 00:50

Re: [L4D] Auto Infected Spawner
 
Quote:

Originally Posted by FuzzOne (Post 1003735)
Im did it! Its working greattly on l4d2! Easy!
Let me just fix a few thing xD

awesome! post it when its working good.

FuzzOne 12-02-2009 04:06

Re: [L4D] Auto Infected Spawner
 
I just put the new infecteds, and its all working nice, just a trouble with the infected limits... trying solve it.

triggerman 12-02-2009 14:22

Re: [L4D] Auto Infected Spawner
 
have you tried?
z_hunter_limit
z_smoker_limit
z_boomer_limit
z_charger_limit
z_spitter_limit
z_jockey_limit

if those are used for the hunter, smoker and boomer then they would probably work for the charger, spitter and jockey.

FuzzOne 12-09-2009 20:25

Re: [L4D] Auto Infected Spawner
 
Yeah, tried a lot of things. Looks like there are a infected BOT limit =/

triggerman 12-11-2009 00:58

Re: [L4D] Auto Infected Spawner
 
i wonder if anyone else with more experience wants to take a shot at converting this awesome plugin.

triggerman 01-10-2010 23:03

Re: [L4D] Auto Infected Spawner
 
bump

triggerman 01-12-2010 00:18

Re: [L4D] Auto Infected Spawner
 
i tried your suggestion and it does not do what i am trying to achieve. i want to get completely swamped by 14 specials all at the same time every 60 seconds or so. the Auto Infected spawner did that perfectly. im only using it for my private server anyways to play with friends so the z_spawn glitch is hardly of concern.

Mortiegama 03-19-2010 18:09

Re: [L4D] Auto Infected Spawner
 
This really seems like a great idea for a plugin. Would love to see the Tanks/Witches set to an auto timer so there could be guaranteed amounts of them every round.

FuzzOne 03-22-2010 02:00

Re: [L4D] Auto Infected Spawner
 
2 Attachment(s)
Here is a mod of Auto Infected Spawner, with suport to spawn more than 4 Infecteds in Coop, thanx to [L4D & L4D2] Infected Bots (1.9.0) .



TacKLER 03-22-2010 12:14

Re: [L4D] Auto Infected Spawner
 
Quote:

Originally Posted by FuzzOne (Post 1125094)
Here is a mod of Auto Infected Spawner, with suport to spawn more than 4 Infecteds in Coop, thanx to [L4D & L4D2] Infected Bots (1.9.0) .


Sounds cool, lemme try this out
Thanks for your work on porting it to l4d2:)

triggerman 03-22-2010 13:24

Re: [L4D] Auto Infected Spawner
 
Quote:

Originally Posted by FuzzOne (Post 1125094)
Here is a mod of Auto Infected Spawner, with suport to spawn more than 4 Infecteds in Coop, thanx to [L4D & L4D2] Infected Bots (1.9.0) .


Oh nice you did it. just tested and it works great.

TacKLER 03-24-2010 23:20

Re: [L4D] Auto Infected Spawner
 
Quote:

Originally Posted by TacKLER (Post 1125444)
Sounds cool, lemme try this out
Thanks for your work on porting it to l4d2:)

The plugin seems working great! Thank you again for your effort!:up:

TacKLER 03-27-2010 22:50

Re: [L4D] Auto Infected Spawner
 
1 Attachment(s)
I've tried to add in the SI limit cvars, and it seems to work fine for me.

Now it can be configured such that certain SI may appear at a frequent spawn rate yet capped at a small number, or a low spawn rate with possibly to come as a horde (capped at 14).

p.s. I'm a complete noob on programming stuff, please forgive me if my code implementation is simply dumb:oops:

TacKLER 03-28-2010 13:15

Re: [L4D] Auto Infected Spawner
 
1 Attachment(s)
Quote:

Originally Posted by TacKLER (Post 1130900)
I've tried to add in the SI limit cvars, and it seems to work fine for me.

Now it can be configured such that certain SI may appear at a frequent spawn rate yet capped at a small number, or a low spawn rate with possibly to come as a horde (capped at 14).

p.s. I'm a complete noob on programming stuff, please forgive me if my code implementation is simply dumb:oops:

fixed some minor stuffs here and there (the last one is still working fine:oops:)

TacKLER 03-31-2010 13:24

Re: [L4D] Auto Infected Spawner
 
1 Attachment(s)
Quote:

Originally Posted by TacKLER (Post 1131470)
fixed some minor stuffs here and there (the last one is still working fine:oops:)

Did some tweaking again...:oops:
Added in a new cvar "l4d2_scale_weights" too, which allows the spawn weight of certain SI to scale up with its corresponding spawn limits. e.g. if hunter's spawn weight is set to 10 and its limit is set to 5, the spawn weight of it when there is no any hunter in the map is (5-0) * 10 = 50. When 1 already exists in the map, the weight will become (5-1) * 10 = 40, etc etc. This should add some fun if someone wants to spawn certain SI with a fair possibility to spawn as a horde, but doesn't want to easily spam the map with it.
p.s. Please delete the old .cfg in case you've tried out the previous version...

FuzzOne 04-01-2010 11:43

Re: [L4D] Auto Infected Spawner
 
Awesome TacKLER !!!

Thank you for the "tweaks" xD





edit:

Perfect! Everything working!

cascarrabias13 05-22-2010 15:15

Re: [L4D & L4D2] Auto Infected Spawner
 
Hi, ur plugis is great, ive been having a lot of fun with it, thanks!

The only problem ive ran into is that, it malfunctions my versus, i have set the l4d2_autois_enabled to 0 and actually it works cause it disables it right but something weird just happens, when playing a versus all infected players loose the hability to move on spawing, ur plugin will make infected humans players to imidiately spawn, they wont be ghosts anymore.

i hope u can understand me, my english is really bad.....

MIB 10-26-2010 07:43

Re: [L4D & L4D2] Auto Infected Spawner
 
L4D2 version 2.0.4.5
l4d2_autoIS crash on map c4m2_sugarmill_a and c6m1_riverbank

worminater 04-12-2013 11:55

Re: [L4D & L4D2] Auto Infected Spawner
 
Problem in versus. Soon as timers reach zero (if it gives you one), it instantly spawns you. Could someone please fix? I'm using the latest version of Tacklers.

worminater 04-26-2013 10:48

Re: [L4D & L4D2] Auto Infected Spawner
 
To add to my last post (and to bump this), I disable this plugin in VS mode to fix the insta spawn problem. However, in coop, why does it keep spawning jimmy gibbs zombies instead of the standard special commons? IE, when there are meant to be armoured zombies, it will have jimmy gibbs instead. Jimmy gibbs instead of clowns etc.

worminater 07-10-2013 18:06

Re: [L4D & L4D2] Auto Infected Spawner
 
This plugin now starts spawning things on peoples heads. The Jimmy Gibbs problem has gone since the last l4d2 update along with SM 1.5 and updated Left4Downtown.


All times are GMT -4. The time now is 04:45.

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