Template:Fl WeaponSpawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (clarification)
(Undo revision 487263 by Alexiscoutinho (talk))
Tag: Undo
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{ScrollBox|title=WeaponSpawn|
<noinclude>
* 4 : Absorb any dropped weapon type {{only|{{l4d2}}}}
__NOTOC__
* 131072 : Don't cluster with similar items {{only|{{l4d}}}} {{todo|What is this for? Weapons already have their own density settings, and does this work?
This template has a parameter to account that weapon entities between their L4D1 and L4D2 versions have [[FGD]] differences.<br>
<b>Parameters:</b>
<pre>{{WeaponSpawn|optionalscavenge=1}}</pre>
{{param|optionalscavenge}} - Display flags for<code>WeaponSpawnOptionalScavenge</code>.
<hr>
</noinclude>
{{Fl WeaponSpawnSingle}}
{{Fl WeaponSpawnSingle}}
{{Fl|4|Absorb any dropped weapon type|only={{l4d2}}}}
{{Fl|131072|Don't cluster with similar items|only={{l4d}}}}
{{#ifeq:{{{optionalscavenge|0}}}|0||
{{Fl WeaponSpawnOptionalScavenge}}
}}<noinclude>
}}<noinclude>
[[Category:Flag Templates|WeaponSpawn]]
[[Category:Flag Templates|WeaponSpawn]]
</noinclude>
</noinclude>

Latest revision as of 17:50, 20 August 2025


This template has a parameter to account that weapon entities between their L4D1 and L4D2 versions have FGD differences.
Parameters:

{{WeaponSpawn|optionalscavenge=1}}

{{{optionalscavenge}}} - Display flags forWeaponSpawnOptionalScavenge.



Enable Physics : [1]
Must Exist : [2]
Infinite items (overrides count) : [8] (only in Left 4 Dead 2)
Absorb any dropped weapon type : [4] (only in Left 4 Dead 2)
Don't cluster with similar items : [131072] (only in Left 4 Dead)