trigger_weapon_strip
Jump to navigation
Jump to search
Class hierarchy |
---|
CTriggerWeaponStrip |
hl2_triggers.cpp |
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.
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?]
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
Everything (not including physics debris) : [64] Clients (Survivors, Special Infected, Tanks ) : [1]
|
Inputs
|
Outputs
Bug:Spamming crouch jumps in a trigger can randomly fire OnStartTouch . Confirm:Is it a Multiplayer issue only? [todo tested in?]
Warning:This includes entities which are deleted while inside the trigger. In this case !activator will be invalid.
Warning:
OnEndTouch can fire before OnStartTouch under certain circumstances where both are fired on the same tick and each have the same delay. Fix:Add a slight delay to OnEndTouch .Bug:Spamming crouch jump in a trigger can randomly fire OnEndTouch . Confirm:Is it a Multiplayer issue only? [todo tested in?]
|
See also
- Player_weaponstrip - A Similar point entity.
Categories:
- CBaseTrigger
- 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