Weapon first aid kit: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo revision 492570 by Nescius (talk) Gave appropriate disclaimer. This entity should only be used if one knows what they are doing.)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
{{This is a|model entity|name=weapon_first_aid_kit|series=Left 4 Dead}} It's the actual carriable item with physics.
{{This is a|model entity|name=weapon_first_aid_kit|series=Left 4 Dead}} It's the actual carriable item with physics.


In [[Hammer]] for [[Left 4 Dead 2]], this entity is intended to be used in scripted events where a single item needs to spawn with physics active. The standard way to place first aid in a map is to use {{ent|weapon_first_aid_kit_spawn}} or {{l4d2}}{{ent|weapon_item_spawn}}.
In [[Hammer]] for [[Left 4 Dead 2]], this entity is intended to be used in scripted events where a single item needs to spawn with physics active. The standard way to place first aid kit in a map is to use {{ent|weapon_first_aid_kit_spawn}} or {{l4d2}}{{ent|weapon_item_spawn}}.
{{Important|This entity is not affected by <code>[[Left 4 Dead 2/Scripting/Director Scripts/AllowWeaponSpawn|AllowWeaponSpawn]]</code> and <code>[[Left 4 Dead 2/Scripting/Director Scripts/ConvertWeaponSpawn|ConvertWeaponSpawn]]</code>, thus using it may impact some mutations' expected behavior. For example, this entity won't be converted to [[weapon_pain_pills_spawn|pain pills]] in [[Death's Door]].}}
{{Important|This entity is not affected by <code>[[Left 4 Dead 2/Scripting/Director Scripts/AllowWeaponSpawn|AllowWeaponSpawn]]</code> and <code>[[Left 4 Dead 2/Scripting/Director Scripts/ConvertWeaponSpawn|ConvertWeaponSpawn]]</code>, thus using it may impact some mutations' expected behavior. For example, this entity won't be converted to [[weapon_pain_pills_spawn|pain pills]] in [[Death's Door]].}}
== Keyvalues {{only|{{l4d2}}}} ==
{{KV Targetname}}
{{KV WeaponSpawnSingle|l4d2only=1}}
== Flags {{only|{{l4d2}}}} ==
{{Fl WeaponSpawnSingle|l4d2only=1}}


== See Also ==
== See Also ==
* {{ent|weapon_first_aid_kit_spawn}}
* {{ent|weapon_first_aid_kit_spawn}}
* {{l4d2}}{{ent|weapon_item_spawn}}
* {{l4d2}}{{ent|weapon_item_spawn}}

Latest revision as of 09:30, 17 November 2025

C++ Class hierarchy
CFirstAidKit
CBaseBackpackItem
CTerrorWeapon
CWeaponCSBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity
Icon-NotInFGD.png
This entity is not in the Left 4 Dead FGD by default.
It should not be put directly in a map.

weapon_first_aid_kit is a model entity available in Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series. It's the actual carriable item with physics.

In Hammer for Left 4 Dead 2, this entity is intended to be used in scripted events where a single item needs to spawn with physics active. The standard way to place first aid kit in a map is to use weapon_first_aid_kit_spawn or Left 4 Dead 2weapon_item_spawn.

Icon-Important.pngImportant:This entity is not affected by AllowWeaponSpawn and ConvertWeaponSpawn, thus using it may impact some mutations' expected behavior. For example, this entity won't be converted to pain pills in Death's Door.

See Also