Trigger weapon strip: Difference between revisions
Jump to navigation
Jump to search

Note:weapon_bugbait is always deleted, even if "Kill weapons" is set to "No".
Bug:Will crash the game if non player/NPC entity enters the trigger and passes the spawnflags. [todo tested in ?]
(bot-assisted) |
(It is also available in the Portal series and is useful for Portal 2 maps for getting rid of the Portal Gun scripted to spawn so it so be mentioned) |
||
(31 intermediate revisions by 23 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{CD|CTriggerWeaponStrip|file1=hl2/hl2_triggers.cpp|base=CTriggerMultiple}} | |||
{{this is a|brush entity|name=trigger_weapon_strip|game=Half-Life 2 series|game1=Portal series|game2=Black Mesa}} | |||
{{sensor brush}} | |||
==Entity | ==Entity description== | ||
A | A [[brush entity]] [[trigger]] that makes the [[player]] drop all of their weapons. | ||
* Dropped weapons can only be picked up again by interacting with them. | |||
* If "Kill weapons" is set to "Yes", the player's weapons simply disappear; they are not dropped. | |||
{{note|[[weapon_bugbait]] is always deleted, even if "Kill weapons" is set to "No".}} | |||
{{bug|Will crash the game if non player/NPC entity enters the trigger and passes the spawnflags.}} | |||
{{ | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Kill Weapons|intn=KillWeapons|boolean|Don't drop weapons, remove them directly instead.}} | |||
{{KV|Remove All Ammo|intn=KillAmmo|boolean|Removes all of the players ammo as well.|only={{hdtf}}}} | |||
{{KV|Strip Parkour|intn=StripParkour|boolean|Removes the parkour item alongside the weapons.|only={{hdtf}}}} | |||
{{KV Trigger}} | |||
| | |||
| | |||
| | |||
==Flags== | ==Flags== | ||
{{Fl Trigger}} | |||
==Inputs== | ==Inputs== | ||
{{I Trigger}} | |||
==Outputs== | ==Outputs== | ||
{{O Trigger}} | |||
[[ | ==See also== | ||
* [[Player_weaponstrip]] - A Similar point entity. |
Latest revision as of 12:11, 31 August 2025


![]() |
---|
CTriggerWeaponStrip |
![]() |
trigger_weapon_strip
is a brush entity available in Half-Life 2 series,
Portal series, and
Black Mesa.
Entity description
A brush entity trigger that makes the player drop all of their weapons.
- Dropped weapons can only be picked up again by interacting with them.
- If "Kill weapons" is set to "Yes", the player's weapons simply disappear; they are not dropped.


Keyvalues
- Kill Weapons (KillWeapons) <boolean>
- Don't drop weapons, remove them directly instead.
- Remove All Ammo (KillAmmo) <boolean> (only in
)
- Removes all of the players ammo as well.
- Strip Parkour (StripParkour) <boolean> (only in
)
- Removes the parkour item alongside the weapons.
|
Flags
|
Inputs
|
Outputs
|
See also
- Player_weaponstrip - A Similar point entity.