Template:Fl WeaponSpawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Wanted to keep the template inheritance consistent for {{X WeaponSpawn}} templates, so here's a {{#ifeq:{{{optionalscavenge|1}}}|0||}}. || Updated template to use {{Fl}} templates)
(Added documentation, rough edit of what's from {{WeaponSpawn}}, may use /doc page in future)
Line 1: Line 1:
<noinclude>
__NOTOC__
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>
{{ScrollBox|title=WeaponSpawn|
{{ScrollBox|title=WeaponSpawn|
{{Fl|4|Absorb any dropped weapon type|only={{l4d2}}}}
{{Fl|4|Absorb any dropped weapon type|only={{l4d2}}}}

Revision as of 13:20, 1 August 2022


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.


WeaponSpawn:
Absorb any dropped weapon type : [4] (only in Left 4 Dead 2)
Don't cluster with similar items : [131072] (only in Left 4 Dead)
Enable Physics : [1]
Must Exist : [2]
Infinite items (overrides count) : [8] (only in Left 4 Dead 2)
WeaponSpawnOptionalScavenge (only in Left 4 Dead):
Add to director scavenge list : [65536]
Todo: What does this flag mean?