Template:Fl WeaponSpawn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added documentation, rough edit of what's from {{WeaponSpawn}}, may use /doc page in future)
m (#ifeq test)
Line 11: Line 11:
{{Fl|131072|Don't cluster with similar items|only={{l4d}}}}
{{Fl|131072|Don't cluster with similar items|only={{l4d}}}}
{{Fl WeaponSpawnSingle}}
{{Fl WeaponSpawnSingle}}
{{#ifeq:{{{optionalscavenge|1}}}|0||
{{#ifeq:{{{optionalscavenge}}}|0||
{{Fl WeaponSpawnOptionalScavenge}}
{{Fl WeaponSpawnOptionalScavenge}}
}}
}}

Revision as of 15:24, 8 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?