View Single Post
Author Message
V10
Senior Member
Join Date: Jan 2010
Location: Russia
Old 01-22-2010 , 13:01   [L4D2] Auto Items Spawn
Reply With Quote #1

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
Attached Files
File Type: zip AutoSpawnItems_full.zip (52.2 KB, 2967 views)
File Type: sp Get Plugin or Get Source (AutoSpawnItems.sp - 4231 views - 30.1 KB)

Last edited by V10; 12-26-2011 at 12:22. Reason: new version
V10 is offline