<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.nomoreroominhell.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Darkblitzfrenzy</id>
		<title>No More Room in Hell - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.nomoreroominhell.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Darkblitzfrenzy"/>
		<link rel="alternate" type="text/html" href="https://wiki.nomoreroominhell.com/Special:Contributions/Darkblitzfrenzy"/>
		<updated>2026-05-04T05:15:31Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>https://wiki.nomoreroominhell.com/index.php?title=Item_Spawning_Setup&amp;diff=1045</id>
		<title>Item Spawning Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.nomoreroominhell.com/index.php?title=Item_Spawning_Setup&amp;diff=1045"/>
				<updated>2014-03-09T03:45:34Z</updated>
		
		<summary type="html">&lt;p&gt;Darkblitzfrenzy: Added classnames for JAE700 and welder&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:EntitySetup]]&lt;br /&gt;
&lt;br /&gt;
No More Room in Hell has a customized system of spawning items, weapons, and ammo.&lt;br /&gt;
&lt;br /&gt;
There are two ways of spawning items: directly (via classname), and randomly.&lt;br /&gt;
&lt;br /&gt;
NOTE: As usual, if you guys have any questions about this please let me know!&lt;br /&gt;
&lt;br /&gt;
==Setting up Item Spawning==&lt;br /&gt;
===To get item spawning working in your map===&lt;br /&gt;
&lt;br /&gt;
'''Directly'''&lt;br /&gt;
Simply add one of the item entities to your map.  The names of these entities correspond to the classname of the items.  See below for a link to the full list of classnames.&lt;br /&gt;
Directly spawned weapons do not have the option to spawn with a random amount of ammo.  These weapons will always spawn with the maximum amount of ammo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Randomly'''&lt;br /&gt;
No More Room in Hell's random spawner may be familiar to those of you who have previously done mapping for ZP:S.&lt;br /&gt;
In order to use the random spawner, add the '''random_spawner''' entity at the places you would like to spawn items.  Configuration of the random spawner is simple.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The values set for all options on the random spawner are in %.  For example, a value of '25' means that item has a 25% chance to spawn.&lt;br /&gt;
** If the total value goes over 100, the values will be normalized such that the total is 100.&lt;br /&gt;
** If the total value is under 100, then there will be a chance for nothing to spawn.&lt;br /&gt;
&lt;br /&gt;
* When in Smart Edit mode, the spawner lists a number of keywords that it is able to spawn.  For example ''any'' includes any available item, ''firearm'' includes all firearms, ''melee'' includes all melée weapons, etc.&lt;br /&gt;
&lt;br /&gt;
* In order to further customize the spawner, turn off Smart Edit mode.&lt;br /&gt;
** When not in smart edit mode, you may add entries for individual items.&lt;br /&gt;
** Add a new key whose name is the classname of the item you would like to spawn.&lt;br /&gt;
** As before, the value is the chance for this item to spawn (in %).&lt;br /&gt;
** Keywords are also accepted when not in smart edit.&lt;br /&gt;
&lt;br /&gt;
* Two additional options, '''Ammo Fill Min''' and '''Ammo Fill Max''' control how much ammo the selected weapon will spawn with.  These are based on percentages of the maximum ammo count: 100 means 100% of maximum capacity, 0 means 0% of maximum capacity (i.e. empty).&lt;br /&gt;
&lt;br /&gt;
A full list of item classnames and accepted keywords may be found [[#List_of_Items|here]].&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&lt;br /&gt;
The following entity has a 25% chance to spawn ANYTHING, 30% chance to spawn a FIREARM, 15% chance to spawn a MELEE weapon, and 5% chance to spawn AMMO (leaving 25% chance to spawn NOTHING):&lt;br /&gt;
[img]http://i12.photobucket.com/albums/a225/ssba/nmrih/random_spawn_example_1.jpg[/img]&lt;br /&gt;
&lt;br /&gt;
The following entity has a 35% chance to spawn M92FS, 45% chance to spawn SW686, 5% chance to spawn SV10, 15% chance to spawn BASEBALL BAT:&lt;br /&gt;
[img]http://i12.photobucket.com/albums/a225/ssba/nmrih/random_spawn_example_2.jpg[/img]&lt;br /&gt;
&lt;br /&gt;
==Limiting Spawns==&lt;br /&gt;
In addition to this entity, there is also the ability to limit the total number of spawned items per round.&lt;br /&gt;
&lt;br /&gt;
To do this, add a random_spawner_controller entity to your map.  The configuration for this entity works exactly the same as the random_spawner, except the values are interpreted as the maximum count of each type instead of a percentage.  The spawner accepts all keywords listed below as well as any direct item names.&lt;br /&gt;
&lt;br /&gt;
Spawn amounts are based on the most restrictive count.  So, if you have 'any' set to 3 and 'firearm' set to 5, only 3 items will be allowed to spawn.&lt;br /&gt;
&lt;br /&gt;
Be sure to not include any items you don't want to restrict!  If any property is set to 0, that means that none of that type will be allowed to spawn.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How the Limiter Works===&lt;br /&gt;
&lt;br /&gt;
The limiter is quite simple in functionality.&lt;br /&gt;
&lt;br /&gt;
* When all ''random_spawner'' entities are initially loaded, their spawn requests (i.e. what they would have spawned without a limiter) are sent to the limiter.&lt;br /&gt;
* After level load, the limiter randomly picks from the list of requests to spawn until either the request list is empty or all limits have been reached.&lt;br /&gt;
* Any ''random_spawner'' entity that requests a spawn after level load are immediately either spawned or rejected.&lt;br /&gt;
&lt;br /&gt;
==List of Items==&lt;br /&gt;
===Allowed Category Keywords===&lt;br /&gt;
* any&lt;br /&gt;
* ammo&lt;br /&gt;
* archery&lt;br /&gt;
* explosive&lt;br /&gt;
* firearm&lt;br /&gt;
* handgun&lt;br /&gt;
* item&lt;br /&gt;
* machinegun&lt;br /&gt;
* melee&lt;br /&gt;
* military&lt;br /&gt;
* rifle&lt;br /&gt;
* shotgun&lt;br /&gt;
&lt;br /&gt;
===Weapon Classnames (Grouped by Category)===&lt;br /&gt;
* any&lt;br /&gt;
** firearm&lt;br /&gt;
*** handgun&lt;br /&gt;
**** fa_1911&lt;br /&gt;
**** fa_glock17&lt;br /&gt;
**** fa_mkii&lt;br /&gt;
**** fa_sw686&lt;br /&gt;
**** fa_m92fs&lt;br /&gt;
*** rifle&lt;br /&gt;
**** fa_1022&lt;br /&gt;
**** fa_cz858&lt;br /&gt;
**** fa_sako85&lt;br /&gt;
**** fa_jae700&lt;br /&gt;
**** fa_sks&lt;br /&gt;
*** shotgun&lt;br /&gt;
**** fa_500a&lt;br /&gt;
**** fa_870&lt;br /&gt;
**** fa_superx3&lt;br /&gt;
**** fa_sv10&lt;br /&gt;
**** fa_winchester1892&lt;br /&gt;
*** machinegun&lt;br /&gt;
**** fa_mac10&lt;br /&gt;
*** military&lt;br /&gt;
**** fa_mp5a3&lt;br /&gt;
**** fa_m16a4&lt;br /&gt;
*** archery&lt;br /&gt;
**** bow_deerhunter&lt;br /&gt;
** melee&lt;br /&gt;
*** me_axe_fire&lt;br /&gt;
*** me_bat_metal&lt;br /&gt;
*** me_chainsaw&lt;br /&gt;
*** me_crowbar&lt;br /&gt;
*** me_etool&lt;br /&gt;
*** me_fubar&lt;br /&gt;
*** me_hatchet&lt;br /&gt;
*** me_kitknife&lt;br /&gt;
*** me_machete&lt;br /&gt;
*** me_pipe_lead&lt;br /&gt;
*** me_shovel&lt;br /&gt;
*** me_sledge&lt;br /&gt;
*** me_wrench&lt;br /&gt;
** explosive&lt;br /&gt;
*** exp_grenade&lt;br /&gt;
*** exp_molotov&lt;br /&gt;
*** exp_tnt&lt;br /&gt;
** items&lt;br /&gt;
*** tool_barricade&lt;br /&gt;
*** tool_extinguisher&lt;br /&gt;
*** tool_welder&lt;br /&gt;
*** tool_flare_gun&lt;br /&gt;
*** item_bandages&lt;br /&gt;
*** item_first_aid&lt;br /&gt;
*** item_maglite&lt;br /&gt;
*** item_pills&lt;br /&gt;
*** item_walkietalkie&lt;br /&gt;
** ammo&lt;br /&gt;
*** ammobox_9mm&lt;br /&gt;
*** ammobox_45acp&lt;br /&gt;
*** ammobox_357&lt;br /&gt;
*** ammobox_12gauge&lt;br /&gt;
*** ammobox_22lr&lt;br /&gt;
*** ammobox_308&lt;br /&gt;
*** ammobox_556&lt;br /&gt;
*** ammobox_762mm&lt;br /&gt;
*** ammobox_arrow&lt;br /&gt;
*** ammobox_flare&lt;br /&gt;
*** ammobox_board&lt;br /&gt;
*** ammobox_fuel&lt;br /&gt;
&lt;br /&gt;
==Video Tutorial==&lt;br /&gt;
&lt;br /&gt;
[http://youtu.be/PFzhSnaGUBU Random Spawner - NMRiH Tutorial ]&lt;/div&gt;</summary>
		<author><name>Darkblitzfrenzy</name></author>	</entry>

	</feed>