This article's documentation is for anything that uses the Source engine. Click here for more information.

Player weaponstrip: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(58 intermediate revisions by 30 users not shown)
Line 1: Line 1:
[http://endless-sacrifice.burblers.info/ endless sacrifice] [http://indulger.info/index4_250.html url] [http://transfor.batswing.info/ transfor] [http://nikon-775-coolpix.burblers.info/ nikon 775 coolpix] [http://gpa.indulger.info/ gpa] [http://beauty-supplies.batswing.info/ beauty supplies] [http://stroam.info/index7_666.html home] [http://telecom-memo.burblers.info/ telecom memo] [http://pornod.wrawler.info/ pornod] [http://fiacre.burblers.info/ fiacre] [http://unfeeble.info/index5_1000.html home] [http://emma-daumas-nude.misserve.info/ emma daumas nude] [http://powershot-1-pro.burblers.info/ powershot 1 pro] [http://xxltv.downslip.info/ xxltv] [http://liveset.downslip.info/ liveset] [http://mrozak.batswing.info/ mrozak] [http://darck.burblers.info/ darck] [http://dvd-pooh-ascolta-live-tour-2004.burblers.info/ dvd pooh ascolta live tour 2004] [http://www-fm-net.batswing.info/ www fm net] [http://hades-saga-saint-seiya.wrawler.info/ Hades saga saint seiya] [http://video-black-eyed-peas-hey-mama.wrawler.info/ video black eyed peas hey mama] [http://fotos-privadas.stroam.info/ fotos privadas] [http://sony-dscp200s.stroam.info/ sony dscp200s] [http://wrawler.info/ wrawler.info] [http://opusdei.indulger.info/ opusdei] [http://i-don-t-anna-know.misserve.info/ i don t anna know] [http://volkswagen-lupo.stroam.info/ volkswagen lupo] [http://giuseppe-verde.stroam.info/ giuseppe verde] [http://unfeeble.info/ unfeeble.info] [http://profumi-burberry-uomo.unfeeble.info/ profumi burberry uomo] [http://indulger.info/index8_666.html page] [http://mercedes-slk-km-zero.downslip.info/ mercedes slk km zero] [http://lladro-com.indulger.info/ lladro com] [http://bulhe-shah.wrawler.info/ bulhe shah] [http://jurys-inn-parnell-street.misserve.info/ jurys inn parnell street] [http://prima-comunine.misserve.info/ prima comunine] [http://epson-elpsc12.stroam.info/ epson elpsc12] [http://croft.unfeeble.info/ croft] [http://i-link.unfeeble.info/ i link] [http://espoo.downslip.info/ espoo] [http://gsx-suzuki.wrawler.info/ gsx suzuki] [http://g450-mms-quad.indulger.info/ g450 mms quad] [http://lang-son.burblers.info/ lang son] [http://filo-pvc.downslip.info/ filo pvc] [http://burblers.info/ burblers.info] [http://epson-t017.misserve.info/ epson t017] [http://wireless-lan-802-11g.downslip.info/ wireless lan 802 11g] [http://sony-ps2-70004.wrawler.info/ sony ps2 70004] [http://wireless-notebook-laser-mouse-6000.batswing.info/ wireless notebook laser mouse 6000] [http://rady-or-not.unfeeble.info/ rady or not] [http://hk.indulger.info/ hk] [http://plasma-42s5s.unfeeble.info/ plasma 42s5s] [http://www-gay-con.wrawler.info/ www gay con] [http://nike-rosa.batswing.info/ nike rosa] [http://bailemos-otra-vez.wrawler.info/ bailemos otra vez] [http://semplice.downslip.info/ semplice] [http://aculaser-c4000.batswing.info/ aculaser c4000] [http://trevi-lcd.misserve.info/ trevi lcd] [http://hp-1350-c.stroam.info/ hp 1350 c] [http://swach.downslip.info/ swach] [http://kota-baharu.downslip.info/ kota baharu] [http://ver-sexo.wrawler.info/ ver sexo] [http://philips-fax-532.downslip.info/ philips fax 532] [http://nex.stroam.info/ nex] [http://linda-vojtova.misserve.info/ linda vojtova] [http://tvix-m3000u.burblers.info/ tvix m3000u] [http://u-e.wrawler.info/ u e] [http://frr.burblers.info/ frr] [http://stroam.info/ stroam.info] [http://misserve.info/index6_666.html homepage] [http://nokia-tom-tom.misserve.info/ nokia tom tom] [http://dri.burblers.info/ dri] [http://wamu-com.misserve.info/ wamu com] [http://pap-s-and-skar.indulger.info/ pap s and skar] [http://civic-crx.indulger.info/ civic crx] [http://pennywise.burblers.info/ pennywise] [http://nb-nx9105.misserve.info/ nb nx9105] [http://klipsch-rb15.burblers.info/ klipsch rb15] [http://stroam.info/index3_666.html page] [http://wrawler.info/index0_250.html map] [http://sailor-monn.misserve.info/ sailor monn] [http://maizuru.burblers.info/ maizuru] [http://sou-lseek.downslip.info/ sou lseek] [http://zelo.indulger.info/ zelo] [http://uscer.unfeeble.info/ uscer] [http://dragostea-dei-tea.burblers.info/ dragostea dei tea] [http://cp-25.unfeeble.info/ cp 25] [http://philips-7630.downslip.info/ philips 7630] [http://batswing.info/index4_250.html site] [http://illuso.burblers.info/ illuso] [http://edera.burblers.info/ edera] [http://qv.stroam.info/ qv] [http://www-abscbn-com.misserve.info/ www abscbn com] [http://panca-bench-500.wrawler.info/ panca bench 500] [http://raptail.unfeeble.info/ raptail] [http://gdg.stroam.info/ gdg] [http://fly-guy.wrawler.info/ fly guy] [http://toca-2-ps2.wrawler.info/ toca 2 ps2] [http://vhdl.downslip.info/ vhdl] [http://burke.indulger.info/ burke]
{{LanguageBar}}
{{wrongtitle|title=player_weaponstrip}}
{{TabsBar|main=gs|base=player_weaponstrip}}
{{Ent not in fgd}}
{{CD|CStripWeapons|file1=player.cpp}}
{{this is a|logical entity|name=player_weaponstrip|sprite=1}}
This entity strips the player of their weapons and/or suit.


== Entity description ==
{{bug|hidetested=1|In {{portal|4}} and {{portal2|4}}, the player's weapon will lower and become non-functional, but will not actually disappear. Fixed in {{p2ce|4}}.{{workaround|Fire a DisableDraw input to the <code>viewmodel</code> entity with a slight delay after triggering the weaponstrip. (This does ''not'' prevent later picked up weapons from appearing.)}}}}
Strips the player of weapons, or weapons and suit.
{{bug|tested={{hls}}|If player changes the map after their weapons are stripped, the <code>viewmodel</code> of the last held weapon will appear but will be non-functional. This is fixed by picking up a new weapon. {{not|{{bms}}}}}}
 
{{note|In multiplayer, only the <code>!activator</code> is targeted. This means the input needs to be fired as a result of a player interaction, such as touching a trigger or pressing a button. In games with [[VScript]], <code>EntFireByHandle()</code> can instead be used to fire the input with a specific player as the activator.}}


== Keyvalues ==
== Keyvalues ==
* {{kv targetname}}
{{KV Targetname}}


== Inputs ==
== Inputs ==
* {{i targetname}}
{{I|Strip|Strip player's weapons.}}
* '''Strip'''
{{I|StripWeaponsAndSuit|Strip player's weapons and suit.}}
: Strip player's weapons
{{I|StripActiveWeapon|only={{l4d2}}|Removes the active weapon.}}
* '''StripWeaponsAndSuit'''
{{I|StripWeaponByClassname|only={{l4d2}}|Removes a weapon by classname, eg 'weapon_gascan'.}}
: Strip player's weapons and his suit
 
== Outputs ==
* {{o targetname}}


[[Category:Entities]]
==See also==
* {{ent|trigger_weapon_strip}} - Similiar brush entity.
* {{ent|point_weaponstrip}} - Similiar point entity which strips specified weapon {{only|{{bms}}}}.

Latest revision as of 01:10, 25 July 2025

English (en)中文 (zh)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the Counter-Strike: SourceDay of Defeat: SourceTeam Fortress 2Left 4 DeadCounter-Strike: Global Offensive FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CStripWeapons
CPointEntity
CBaseEntity
C++ player.cpp
Player weaponstrip.png

player_weaponstrip is a logical entity available in all Source Source games.

This entity strips the player of their weapons and/or suit.

Icon-Bug.pngBug:In Portal Portal and Portal 2 Portal 2, the player's weapon will lower and become non-functional, but will not actually disappear. Fixed in Portal 2: Community Edition Portal 2: Community Edition.
PlacementTip.pngWorkaround:Fire a DisableDraw input to the viewmodel entity with a slight delay after triggering the weaponstrip. (This does not prevent later picked up weapons from appearing.)
Icon-Bug.pngBug:If player changes the map after their weapons are stripped, the viewmodel of the last held weapon will appear but will be non-functional. This is fixed by picking up a new weapon. (not in Black Mesa)  (tested in: Half-Life: Source)
Note.pngNote:In multiplayer, only the !activator is targeted. This means the input needs to be fired as a result of a player interaction, such as touching a trigger or pressing a button. In games with VScript, EntFireByHandle() can instead be used to fire the input with a specific player as the activator.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

Strip
Strip player's weapons.
StripWeaponsAndSuit
Strip player's weapons and suit.
StripActiveWeapon  (only in Left 4 Dead 2)
Removes the active weapon.
StripWeaponByClassname  (only in Left 4 Dead 2)
Removes a weapon by classname, eg 'weapon_gascan'.

See also