AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Auto Items Spawn (https://forums.alliedmods.net/showthread.php?t=116376)

V10 01-22-2010 13:01

[L4D2] Auto Items Spawn
 
2 Attachment(s)
This plugin designed for automatic spawn items on configured origin positions.
Custom items auto spawn on specific origin type.
Plugin can make visible areas with items (sm_allowitemrings).
Plugin have feature for add, edit, and delete origins for spawn items.
Also you can configure items counts and chances.

CVARS
sm_allowitemrings - Create Beam Rings on item spawn origins (default = 0)
l4d2_autospawni_version - Current plugin version

CMDS
sm_itemsmenu - Auto spawn items menu (add\edit\delete origin)
sm_itemsstats - stats about current map origins complete
sm_allitemsstats - stats about ALL (default) maps origins complete

Origin types
Start - Start map origin position (on survivor respawn saferoom)
Start[0] - must be coordinates start saferoom
PreCenter - origins on pre center map
Center - origins on center map
Final - origins in final map
Final[0] - must be coordinates in final map saferoom

Files
Download AutoSpawnItems_full.zip and unpack to left4dead2 directory

CONFIG
AutoSpawnConfig->Options->Items
Chances - configures items to spawn (get random from it) and items flags
if flag ==1 item not spawned on start and final origins
format:
"name" "chance;flag"
sample:
"first_aid_kit" "90;1"
Counts - minimum and maximum items counts for randomed spawn items counts for every type of origin (Advanced is additionaly items with random origin type).
Maps->"map_name"->Counts
As "AutoSpawnConfig->Options->Items->Counts", but for specific MAP

Maps->"map_name"->"origin_type"
Origins for specific map and type

Maps->"map_name"->"origin_type"->SpecialItems
You can set here items why spawns on given origin type on specific maps.
format:
"name" "count"
sample:
"first_aid_kit" "6"
Maps->All->"origin_type"->SpecialItems
As above, but for a ALL MAPS
In new version changes items names in your config:
Sample:
old => new
first_aid_kit => weapon_first_aid_kit
autoshotgun => weapon_autoshotgun
gascan => weapon_gascan
Melee weapon not use prefix, sample:
machete => machete

About configure chances

Changelog:
1.7
- Fixed spawn errors at first round.
1.6
- added m60 support (dlc)
1.5
- changed config item names from {name} to weapon_{name}
- added support to melee weapons
- fixed weapon ammo count
- small correct colors for item rings
- added cvar for version control
1.4 (beta)
- Fix bug with adding new origins and save old.
1.3 (beta)
- First public release

Bongholio 01-22-2010 14:08

Re: [L4D2] Auto Items Spawn (BETA)
 
Could this be tweeked to set down pre-placed statics automatically?
(like how you do it with admin menu manually with the modelfun plugin?)

The idea doesn't sound so far off.

Luke Penny 01-23-2010 20:56

Re: [L4D2] Auto Items Spawn (BETA)
 
Indeed, I was wondering if it was possible for maps to have a chance to place dynamic props, so you could have a 50% chance of forcing players to take different variable paths in l4d1 or 2.

V10 01-26-2010 16:57

Re: [L4D2] Auto Items Spawn (BETA)
 
Quote:

Originally Posted by Bongholio (Post 1063619)
Could this be tweeked to set down pre-placed statics automatically?
(like how you do it with admin menu manually with the modelfun plugin?)

The idea doesn't sound so far off.

Maybe sometime in the future

rek075 01-28-2010 10:45

Re: [L4D2] Auto Items Spawn (BETA)
 
Quote:

Originally Posted by Luke Penny (Post 1065112)
Indeed, I was wondering if it was possible for maps to have a chance to place dynamic props, so you could have a 50% chance of forcing players to take different variable paths in l4d1 or 2.

This could probably be done with Stripper Source, a script file to generate the configuration files, and a cronjob periodically calling that script.

REDSCOUT 03-27-2010 22:35

Re: [L4D2] Auto Items Spawn (BETA)
 
This is Cool :D ☺☺☻☻☻!! I will test this out!!!

marvel 03-31-2010 11:15

Re: [L4D2] Auto Items Spawn (BETA)
 
Nice plugin, I was looking for this. One question though probably a noob question :) but what means:

"Start" "10;15"

What are the 10 and 15 for?

The other one:

"first_aid_kit" "90;1"

Does that mean there's a 90% chance first aid kit spawns but not in saferoom? If I change this to 0 they spawn in the saferoom.

A little bit more explanation for the noobs like me would be welcome :)

Also, can you spawn weapons with this plugin like M16, AK47 etc? Would be nice for maps like c1m1_hotel where you only have an axe or a pistol or is there another way to do this?

Thanks!

V10 03-31-2010 18:08

Re: [L4D2] Auto Items Spawn (BETA)
 
Quote:

Originally Posted by marvel (Post 1134509)
Nice plugin, I was looking for this. One question though probably a noob question :) but what means:

"Start" "10;15"

What are the 10 and 15 for?

Quote:

Counts - minimum and maximum items counts for randomed spawn items counts for every type of origin (Advanced is additionaly items with random origin type).
"Start" "min count;max count"

Quote:

The other one:

"first_aid_kit" "90;1"

Does that mean there's a 90% chance first aid kit spawns but not in saferoom? If I change this to 0 they spawn in the saferoom.
Yes, but 9% chance
Sample:
1000 = 100% = maximum 1 item
500 + 500 = 50% + 50% = maximum 2 items
500 + 250 + 250 = 50% + 25% + 25% = maximum 3 items
etc

Quote:

A little bit more explanation for the noobs like me would be welcome :)

Also, can you spawn weapons with this plugin like M16, AK47 etc? Would be nice for maps like c1m1_hotel where you only have an axe or a pistol or is there another way to do this?

Thanks!
Yes, you can.

marvel 03-31-2010 18:11

Re: [L4D2] Auto Items Spawn (BETA)
 
Thanks I'll give it a try :)

marvel 04-01-2010 03:26

Re: [L4D2] Auto Items Spawn (BETA)
 
Works perfectly, thanks! One more question, do you maybe have an item list of things you can spawn?

I was trying to spawn weapons like the autoshutgun and shotgun_spas and they did spawn but they only had 10 bullets of ammo, no backup ammo.

Any idea?

Thanks again for the mod! Some maps were far too simple for infected because of the lack of good starting items.


All times are GMT -4. The time now is 09:31.

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