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 ?]
SirYodaJedi (talk | contribs) No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{CD|CTriggerWeaponStrip|file1=hl2/hl2_triggers.cpp|base=CTriggerMultiple}} | {{CD|CTriggerWeaponStrip|file1=hl2/hl2_triggers.cpp|base=CTriggerMultiple}} | ||
{{this is a|brush entity|name=trigger_weapon_strip|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}} | {{this is a|brush entity|name=trigger_weapon_strip|game=Half-Life 2|game1=Half-Life 2: Episode One|game2=Half-Life 2: Episode Two|game3=Half-Life 2: Deathmatch}} | ||
Line 11: | Line 11: | ||
{{note|[[weapon_bugbait]] is always deleted, even if "Kill weapons" is set to "No".}} | {{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.}} | {{bug|Will crash the game if non player/NPC entity enters the trigger and passes the spawnflags.}} | ||
==Keyvalues== | ==Keyvalues== |
Revision as of 13:26, 19 August 2024


![]() |
---|
CTriggerWeaponStrip |
![]() |
trigger_weapon_strip
is a brush entity available in Half-Life 2,
Half-Life 2: Episode One,
Half-Life 2: Episode Two, and
Half-Life 2: Deathmatch.
Entity description
A brush entity trigger that makes the player drop all of their weapons.
- Dropped weapons cannot be picked up again.
- 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.
|
Flags
|
Inputs
|
Outputs
|
See also
- Player_weaponstrip - A Similar point entity.
Categories:
- CBaseTrigger
- Brush entities
- Half-Life 2 entities
- Half-Life 2 brush entities
- Half-Life 2: Episode One entities
- Half-Life 2: Episode One brush entities
- Half-Life 2: Episode Two entities
- Half-Life 2: Episode Two brush entities
- Half-Life 2: Deathmatch entities
- Half-Life 2: Deathmatch brush entities
- Sensor Brush Entities
- Pages with uncategorized bugs