User Inputs and Outputs: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(why addoutput?)
 
(73 intermediate revisions by 45 users not shown)
Line 1: Line 1:
[http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/ojpveg.html firewall] [http://www.neca.co.uk/webcal/includes/temp/mvcwlw.html stock broker training] [http://www.neca.co.uk/webcal/includes/temp/hqduvh.html thomas the tank engine] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/bmqput.html chanel handbags] [http://www.neca.co.uk/webcal/includes/temp/jfxlhv.html orbitz] [http://www.neca.co.uk/webcal/includes/temp/hxgfgl.html novolog] [http://voles.org.uk/badger/mambots/content/cache/hdpstl.html contemporary bedroom furniture] [http://www.fishezine.co.uk/practice/images/ktflpa.html gottex swimwear] [http://www.neca.co.uk/webcal/includes/temp/dshbtt.html female masterbation] [http://voles.org.uk/badger/mambots/content/cache/rgtxid.html young gay] [http://aber5aside.co.uk/uploads/images/egsalf.html monster truch] [http://www.neca.co.uk/webcal/includes/temp/trdcps.html gas prices] [http://www.rptphoto.co.uk/drupal/files/image/tleprj.html all poster] [http://aber5aside.co.uk/uploads/images/nlcbcd.html free porn amature] [http://www.neca.co.uk/webcal/includes/temp/veekts.html canon camera] [http://www.stayinliverpool.co.uk/Old/calendarH/calendar/ioncube/ipf-work-dir-1171568110/tmp/cache/iougvb.html tips on house cleaning] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/ijxads.html asian dating] [http://www.neca.co.uk/webcal/includes/temp/bmajbo.html sage robbins] [http://www.fishezine.co.uk/practice/images/fxfpkb.html colored diamonds for sale] [http://www.redhotknickers.co.uk/catalog/images/gif/ovelbq.html lexington steele] [http://voles.org.uk/badger/mambots/content/cache/axigcb.html sexology] [http://voles.org.uk/badger/mambots/content/cache/abljpu.html pain med] [http://www.polishqualityfoods.co.uk/shop/templates/001/links/nlkrbj.html cheap air tickets] [http://www.stayinliverpool.co.uk/Old/calendarH/calendar/ioncube/ipf-work-dir-1171568110/tmp/cache/nofwvg.html pill identification] [http://www.fishezine.co.uk/practice/images/fefpgf.html companies house] [http://www.jewelsandgemstones.co.uk/catimages/pics/krtjma.html raunchy] [http://aber5aside.co.uk/uploads/images/kqhnej.html granny old sex] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/svtlhd.html california realestate] [http://www.neca.co.uk/webcal/includes/temp/kuolse.html sauder computer desk with hutch] [http://www.distantdates.com/thumb/img/jpg/cskwbq.html victoria secrets] [http://www.distantdates.com/thumb/img/jpg/tvkjqj.html butterfly tattoos] [http://www.neca.co.uk/webcal/includes/temp/cqxfoa.html pilot online] [http://www.neca.co.uk/webcal/includes/temp/tqtagi.html free ring tones razor phone] [http://www.redhotknickers.co.uk/catalog/images/gif/fppsbh.html mortgage ammortization tables] [http://www.rptphoto.co.uk/drupal/files/image/vhuper.html paris hilton sexvideo] [http://www.jewelsandgemstones.co.uk/catimages/pics/ogtpip.html psp porn] [http://www.portafold.co.uk/forum/images/avatars/thumbs/nfdwut.html swinger] [http://www.stayinliverpool.co.uk/Old/calendarH/calendar/ioncube/ipf-work-dir-1171568110/tmp/cache/hdxgnu.html hanging cosmetic bag] [http://aber5aside.co.uk/uploads/images/fcfqvk.html addaware] [http://www.stayinliverpool.co.uk/Old/calendarH/calendar/ioncube/ipf-work-dir-1171568110/tmp/cache/agoojg.html drape] [http://www.portafold.co.uk/forum/images/avatars/thumbs/vmnxac.html ketamine] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/jpvmga.html cyprus properties] [http://www.rptphoto.co.uk/drupal/files/image/qstuch.html live sex cams] [http://www.portafold.co.uk/forum/images/avatars/thumbs/bjmagk.html replica] [http://aber5aside.co.uk/uploads/images/jrxldn.html anal stretching] [http://www.stayinliverpool.co.uk/Old/calendarH/calendar/ioncube/ipf-work-dir-1171568110/tmp/cache/jlaico.html epic treadmills] [http://www.redhotknickers.co.uk/catalog/images/gif/sxnbxu.html classic car insurance] [http://www.polishqualityfoods.co.uk/shop/templates/001/links/nwdrac.html staple] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/fgdnok.html xxx sex xxx] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/artlbg.html wedding band] [http://www.rptphoto.co.uk/drupal/files/image/tiojlt.html adelphia cable] [http://www.distantdates.com/thumb/img/jpg/lxbmxf.html skimpy bikini] [http://www.neca.co.uk/webcal/includes/temp/arphtm.html weddings] [http://www.stayinliverpool.co.uk/Old/calendarH/calendar/ioncube/ipf-work-dir-1171568110/tmp/cache/tiiirg.html performance evaluation] [http://www.portafold.co.uk/forum/images/avatars/thumbs/uugjnt.html metal bar stool] [http://voles.org.uk/badger/mambots/content/cache/ffitsr.html viagra] [http://www.rptphoto.co.uk/drupal/files/image/magkmq.html motorhome] [http://www.neca.co.uk/webcal/includes/temp/vdvxfp.html blow job cum] [http://www.neca.co.uk/webcal/includes/temp/oswswe.html ivy tech state college] [http://www.fishezine.co.uk/practice/images/dlhrbk.html bad credit credit cards] [http://www.rptphoto.co.uk/drupal/files/image/alcife.html nextel phone] [http://www.stayinliverpool.co.uk/Old/calendarH/calendar/ioncube/ipf-work-dir-1171568110/tmp/cache/kqdmet.html best time to buy a new car] [http://www.jewelsandgemstones.co.uk/catimages/pics/bopnpn.html free beast sex movies] [http://www.rptphoto.co.uk/drupal/files/image/fqbegq.html ohio festivals] [http://www.redhotknickers.co.uk/catalog/images/gif/wkgecg.html uk chatroom] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/bpcgqi.html bondage shops] [http://www.redhotknickers.co.uk/catalog/images/gif/pnnemp.html deodorant] [http://www.speedcameras.org/poll/images/pics/cmamhr.html diet pills phentermine] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/kuqunp.html truck part] [http://www.distantdates.com/thumb/img/jpg/baxspq.html free download game] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/qpksou.html lion king] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/feapjo.html celebs movies] [http://voles.org.uk/badger/mambots/content/cache/tuxhdr.html dupont real touch elite laminate flooring] [http://www.stayinliverpool.co.uk/Old/calendarH/calendar/ioncube/ipf-work-dir-1171568110/tmp/cache/nuupeb.html adobe illustrator cs2] [http://www.fishezine.co.uk/practice/images/cpadxe.html indian cinema] [http://www.rptphoto.co.uk/drupal/files/image/fwhsrc.html ryobi part] [http://www.portafold.co.uk/forum/images/avatars/thumbs/lhwcme.html lawyers] [http://unitedmind.co.uk/scripts/guestbook_42e797cfc9e29f5286c609c7e6592749/image/ufunkg.html singapore computer buy] [http://www.neca.co.uk/webcal/includes/temp/dxvnla.html dvd decoder] [http://www.neca.co.uk/webcal/includes/temp/aeovmm.html gothic halloween costume] [http://www.fishezine.co.uk/practice/images/nrdtix.html bmw wallpaper] [http://www.portafold.co.uk/forum/images/avatars/thumbs/cbtbhl.html bank one] [http://voles.org.uk/badger/mambots/content/cache/gsahmd.html international trucks] [http://www.jewelsandgemstones.co.uk/catimages/pics/plslxn.html military schools] [http://www.rptphoto.co.uk/drupal/files/image/sktltu.html rent porn movie] [http://www.speedcameras.org/poll/images/pics/igauwg.html cheap baby shower invitations] [http://www.neca.co.uk/webcal/includes/temp/blebgu.html celcom caller ringtone] [http://www.jewelsandgemstones.co.uk/catimages/pics/pbaist.html live psychic] [http://aber5aside.co.uk/uploads/images/nxrlca.html daily free horoscope] [http://www.stayinliverpool.co.uk/Old/calendarH/calendar/ioncube/ipf-work-dir-1171568110/tmp/cache/lqgeto.html ovral] [http://www.rptphoto.co.uk/drupal/files/image/mgkmvw.html princess cruise line] [http://www.rptphoto.co.uk/drupal/files/image/tgllpk.html aldara] [http://www.speedcameras.org/poll/images/pics/wutcad.html unsecured personal loans with bad credit] [http://aber5aside.co.uk/uploads/images/dwgmqr.html czech glass pearls] [http://aber5aside.co.uk/uploads/images/smtndt.html tmobile ringtones] [http://www.blogecards.co.uk/media/images/3/cache/wrsahd.html free powerpoint safety presentations] [http://www.redhotknickers.co.uk/catalog/images/gif/oeijgv.html keyless lock] [http://www.polishqualityfoods.co.uk/shop/templates/001/links/capxhr.html babes] [http://www.speedcameras.org/poll/images/pics/upwtct.html recumbent exercise bike] [http://www.distantdates.com/thumb/img/jpg/cjhhet.html trailer electrical plugs] [http://stacker3.arso-us.info/ stacker 3] [http://shelbymustanggt500.arso-us.info/ shelby mustang gt 500] [http://eosaurus.info/web/pornstars.html pornstars] [http://eosaurus.info/web/ring-tones.html ring tones] [http://proactiv.arso-us.info/ proactiv] [http://wifenaked.sarpler.info/ wife naked] [http://gaypornstar.sarpler.info/ gay porn star] [http://eosaurus.info/web/free-young-pussy.html free young pussy] [http://plussizeweddingdress.sarpler.info/ plus size wedding dress] [http://ritafaltoyano.arso-us.info/ rita faltoyano] [http://eosaurus.info/web/print-greeting-card.html print greeting card] [http://eosaurus.info/web/concubine.html concubine] [http://weapon.arso-us.info/ weapon] [http://downloadfreemotorolaringtones.sarpler.info/ download free motorola ringtones] [http://eosaurus.info/web/sigma-lenses.html sigma lenses] [http://shortstories.sarpler.info/ short stories] [http://freeantispyware.sarpler.info/ free antispyware] [http://eosaurus.info/web/real-child-porn.html real child porn] [http://pennisenlarger.arso-us.info/ pennis enlarger] [http://eosaurus.info/web/outdoor-furniture.html outdoor furniture] [http://freecoreldraw.arso-us.info/ free corel draw] [http://parishiltonsextape.arso-us.info/ paris hilton sex tape] [http://eosaurus.info/web/traffic-lights.html traffic lights] [http://designerimitationhandbag.arso-us.info/ designer imitation handbag] [http://eosaurus.info/web/internet-betting.html internet betting] [http://nikkinova.arso-us.info/ nikki nova] [http://keygenbejeweled2.sarpler.info/ keygen bejeweled 2] [http://hondacrv2007.arso-us.info/ honda crv 2007] [http://eosaurus.info/web/laughlin-nevada.html laughlin nevada] [http://housepaint.sarpler.info/ house paint] [http://mypaydfasmil.arso-us.info/ mypay dfas mil] [http://eosaurus.info/web/ecommerce-web-site.html ecommerce web site] [http://eosaurus.info/web/j-k-rowling.html j k rowling] [http://wellbutrinwithdrawal.arso-us.info/ wellbutrin withdrawal] [http://extacy.sarpler.info/ extacy] [http://redalertdownload.arso-us.info/ red alert download] [http://eosaurus.info/web/revia.html revia] [http://depressionpictures.arso-us.info/ depression pictures] [http://eosaurus.info/web/mimi-macpherson.html mimi macpherson] [http://inversiontable.sarpler.info/ inversion table] [http://haldol.arso-us.info/ haldol] [http://cadillaccts.arso-us.info/ cadillac cts] [http://wholesaleeyeglasscase.arso-us.info/ wholesale eyeglass case] [http://eosaurus.info/web/spread-pussies.html spread pussies] [http://jessicasimpsonnude.sarpler.info/ jessica simpson nude] [http://caravaninsurance.arso-us.info/ caravan insurance] [http://citalopram.sarpler.info/ citalopram] [http://eosaurus.info/web/charlie-chaplin.html charlie chaplin] [http://fuckme.sarpler.info/ fuck me] [http://currencyconversions.sarpler.info/ currency conversions] [http://wellfargojobs.arso-us.info/ well fargo jobs] [http://eosaurus.info/web/suzuki-boulevard.html suzuki boulevard] [http://eosaurus.info/web/florida-state.html florida state] [http://hypnotizedteen.arso-us.info/ hypnotized teen] [http://dieselshoes.arso-us.info/ diesel shoes] [http://eosaurus.info/web/brooke.html brooke] [http://annaversary.sarpler.info/ annaversary] [http://lovastatin.arso-us.info/ lovastatin] [http://eosaurus.info/web/softice-download.html softice download] [http://tyrabanks.arso-us.info/ tyra banks] [http://eosaurus.info/web/wifesharing.html wifesharing] [http://mangagirls.sarpler.info/ manga girls] [http://cambridgesoundworks.arso-us.info/ cambridge soundworks] [http://eosaurus.info/web/sister-nude.html sister nude] [http://armaniperfume.arso-us.info/ armani perfume] [http://bikecarrier.sarpler.info/ bike carrier] [http://texasholdempoker.arso-us.info/ texas holdem poker] [http://eosaurus.info/web/hairy-pussy-sex.html hairy pussy sex] [http://eosaurus.info/web/amateurstraightguys.html amateurstraightguys] [http://singledating.arso-us.info/ single dating] [http://freei730nextelringtonewallpaper.arso-us.info/ free i730 nextel ringtone wallpaper] [http://estheticianequipment.sarpler.info/ esthetician equipment] [http://eosaurus.info/web/lesbian-boobs.html lesbian boobs] [http://eosaurus.info/web/olsen-twins-naked.html olsen twins naked] [http://schoolgerls.arso-us.info/ school gerls] [http://eosaurus.info/web/calpers.html calpers] [http://blacklesbians.sarpler.info/ black lesbians] [http://unitedairlines.arso-us.info/ united airlines] [http://eosaurus.info/web/itunes.html itunes] [http://bupropion.sarpler.info/ bupropion] [http://eosaurus.info/web/effects-of-divorce-on-children.html effects of divorce on children] [http://eosaurus.info/web/work-from-home-business.html work from home business] [http://eosaurus.info/web/jd-edwards.html jd edwards] [http://maturebitches.arso-us.info/ mature bitches] [http://discountweddinginvitation.sarpler.info/ discount wedding invitation] [http://eosaurus.info/web/foo-fighters-the-best.html foo fighters the best] [http://hawaiianairline.sarpler.info/ hawaiian airline] [http://nortonantivirus.sarpler.info/ norton anti virus] [http://foodgiftbaskets.arso-us.info/ food gift baskets] [http://mosquitoringtone.sarpler.info/ mosquito ring tone] [http://eosaurus.info/web/alaska-airline-flight-information.html alaska airline flight information] [http://eosaurus.info/web/raise-your-voice.html raise your voice] [http://playstation2.arso-us.info/ play station 2] [http://eosaurus.info/web/grasshopper.html grasshopper] [http://eosaurus.info/web/information-on-acyclovir.html information on acyclovir] [http://eosaurus.info/web/paintless-dent-repair-queens.html paintless dent repair queens] [http://wethotsex.sarpler.info/ wet hot sex] [http://registereddieticianschools.sarpler.info/ registered dietician schools] [http://yamahaportablegenerator.arso-us.info/ yamaha portable generator] [http://riflestocks.sarpler.info/ rifle stocks]
{{LanguageBar}}
The '''FireUser1-4''' inputs and '''OnUser1-4''' outputs are available on every entity that can receive [[Inputs and Outputs]]. This set of controls are specially linked to work together. Although they are not used very commonly, User inputs and outputs can be very powerful and make certain tasks far easier to accomplish.
The '''FireUser1-4''' inputs and '''OnUser1-4''' outputs are available on every entity that can receive [[Inputs_and_Outputs|Inputs and Outputs]].<br>
This set of controls are specially linked to work together. Entities receiving the "FireUserN" input will fire its corresponding "OnUserN" output.<br>
Essentially, "FireUserN" and "OnUserN" are exactly the same as "Trigger" and "OnTrigger" that a [[logic_relay]] has. Except that you have four of them at once, in every single entity, and they work independent and unrelated to each other.<br>
Valve usually uses this to have one entity trigger the same output to multiple entities, while achieving different outcomes every time because each target tells itself what to do.<br>
One could also use it to avoid using logic_relay when the target should be triggered by multiple entities at different times. As each triggering entity directly tells the target to trigger itself.


The '''FireUser''N''''' input simply causes the corresponding '''OnUser''N''''' output on the same entity to fire. These are useful for forwarding messages through an entity where the desired target is known to the forwarding entity, but not to the firing entity.
{{Note|These outputs will fire even on a disabled entity.}}
{{Warning|Using FireUserX via an output that automatically sends a parameter (math_counter's OnGetValue for example) can cause an error and won't fire it properly. That is because FireUserX was coded (possibly by mistake) to accept a string parameter, but the parameter sent by the math_counter is a number. Make sure to specify dummy parameter in such cases.}}


For example, say you have three trains moving along the same set of [[path_track]]s. Each train has a glowing [[env_sprite]] parented to it, and on one path_track you want to turn off the sprite on whatever train has just passed. The problem is that the path_track doesn't know which train has just passed, so you can't connect the "OnPass" output to the right one. So, you solve this by connecting the path_track's "OnPass" output to the <code>[[!activator]]</code> (the train) '''FireUser1''' input, and then connect each train's '''OnUser1''' input to turn off their parented sprite.
==Example - Quicker Workflow==
The map [[d2_coast_08]] contains a [[logic_auto]] that fires the "FireUser1" output to three [[npc_seagull]] entities named "Seagull". Those then trigger themselves to fly to a unique destination, at different times.


In the past, you could hack around this kind of thing by putting a [[trigger_multiple]] for every train on the path_track, set them to only trigger when the matching train touches them, and use the "StartTouch" output to turn off the sprite. Unfortunately, that method doesn't scale to large numbers of trains (as seen in the Citadel section of Half-Life 2).
The logic_auto firing as follows:
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[File:Io11.png]] || OnMapSpawn || seagull || FireUser1 || &nbsp; || 0 || No
|}
 
Each of the npc_seagull entities then fire this output, but with different destination name and delay.
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[File:Io12.png]] || OnUser1 || [[Targetname#Keywords|!self]] || FlyAway || bird_flightpath_a_48 || 0 || No
|}
 
One may look at this and think this is silly, as every single output would still need to be defined separately and in three different entities no less.<br>
Surely it would have been easier to just name the seagulls unique names and then let the logic_auto tell each bird to fly anywhere. But you'd be wrong. This is faster to build.
 
Without FireUserN, the mapper would need to place multiple birds and take the time to give them all unique names. Then the logic_auto's outputs need to be set up for every bird one after another by setting Targetname and Parameter for the destination.<br>
With FireUserN, the mapper needs to set up one single output in the logic_auto to fire to all bird entities at once because they have the same name. Then set up a single bird with its outputs and copy paste it somewhere else. Since every copy has the same name, it already is targeted by the logic_auto, so all that is needed now is to change the destination name in the parameter field. Which can be done quickly if the mapper doesn't close the parameter window.
 
===Another Example===
The map [[d3_citadel_01]] contains multiple [[func_tracktrain]] (zapperpod1_train) with a [[func_door_rotating]] (zapperpod1_rotator) as a child. The func_tracktrains move along a [[path_track]].<br>
The vmf of this map can be found in "sourcesdk_content\hl2\mapsrc\sdk_d3_citadel_01.vmf".<br>
 
One of the path_track entities, specifically "pod_bay_zapper_track4", the following relevant outputs:
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[File:Io12.png]] || OnPass || !activator || Stop ||  || 0.00 || No
|-
| [[File:Io12.png]] || OnPass || !activator || FireUser1 ||  || 0.10 || No
|}
 
Once a func_tracktrain passes this path_track named "pod_bay_zapper_track4", the path_track causes the activator, which in this case are all the func_tracktrains, to stop right there and then fire "FireUser1<br>
Each "func_tracktrain" the following OnUserN outputs:
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[File:Io11.png]] || OnUser1 || zapperpod1_rotator || Open ||  || 0.00 || No
|-
| [[File:Io11.png]] || OnUser1 || zapperpod1_rotator || Close ||  || 5.00 || No
|-
| [[File:Io11.png]] || OnUser1 || playerpod1_vehicle|| Open ||  || 1.00 || No
|-
| [[File:Io11.png]] || OnUser1 || playerpod1_vehicle|| Close ||  || 4.00 || No
|}
 
This whole setup essentially tells every single func_tracktrain to stop, turn the pod around and open its doors. Another entity will cause the pod to continue moving, but that is not relevant to this example of User inputs.<br>
This speeds up workflow as well, as the mapper needs to set this up once, and then just rename the target entities by changing the number on them after pasting them multiple times.
 
==Example - Entities triggering themselves==
In some occasions, an entity might be more convenient to trigger itself, rather than having to keep checking on a logic_relay's outputs. One stellar example of that is [[env_tonemap_controller]].<br>
Usually a [[logic_auto]] would set various settings of the tonemap controller on map spawn. But it feels a little backwards to have the env_tonemap_controller be in the map, but all the settings for it are stored somewhere else<br>
So for convenience's sake, one might want a logic_auto that fires "FireUser1" to the env_tonemap_controller, which then fires "OnUser1" to itself for all the things it needs to do.
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[File:Io12.png]] || OnUser1 || !self || SetTonemapRate || 0.25 || 0.00 || No
|-
| [[File:Io12.png]] || OnUser1 || !self || SetBloomScale|| 0.2 || 0.00 || No
|-
| [[File:Io12.png]] || OnUser1 || !self || SetAutoExposureMin || 0.4 || 0.00 || No
|-
| [[File:Io12.png]] || OnUser1 || !self || SetAutoExposureMax || 1 || 0.00 || No
|}
 
== See also ==
* [[AddOutput]]


[[Category:Level Design]]
[[Category:Level Design]]
[[Category:IO System]]
[[Category:English]]

Latest revision as of 03:50, 26 April 2025

English (en)Русский (ru)中文 (zh)Translate (Translate)

The FireUser1-4 inputs and OnUser1-4 outputs are available on every entity that can receive Inputs and Outputs.
This set of controls are specially linked to work together. Entities receiving the "FireUserN" input will fire its corresponding "OnUserN" output.
Essentially, "FireUserN" and "OnUserN" are exactly the same as "Trigger" and "OnTrigger" that a logic_relay has. Except that you have four of them at once, in every single entity, and they work independent and unrelated to each other.
Valve usually uses this to have one entity trigger the same output to multiple entities, while achieving different outcomes every time because each target tells itself what to do.
One could also use it to avoid using logic_relay when the target should be triggered by multiple entities at different times. As each triggering entity directly tells the target to trigger itself.

Note.pngNote:These outputs will fire even on a disabled entity.
Warning.pngWarning:Using FireUserX via an output that automatically sends a parameter (math_counter's OnGetValue for example) can cause an error and won't fire it properly. That is because FireUserX was coded (possibly by mistake) to accept a string parameter, but the parameter sent by the math_counter is a number. Make sure to specify dummy parameter in such cases.

Example - Quicker Workflow

The map d2_coast_08 contains a logic_auto that fires the "FireUser1" output to three npc_seagull entities named "Seagull". Those then trigger themselves to fly to a unique destination, at different times.

The logic_auto firing as follows:

My Output > Target Entity Target Input Parameter Delay Only Once
Io11.png OnMapSpawn seagull FireUser1   0 No

Each of the npc_seagull entities then fire this output, but with different destination name and delay.

My Output > Target Entity Target Input Parameter Delay Only Once
Io12.png OnUser1 !self FlyAway bird_flightpath_a_48 0 No

One may look at this and think this is silly, as every single output would still need to be defined separately and in three different entities no less.
Surely it would have been easier to just name the seagulls unique names and then let the logic_auto tell each bird to fly anywhere. But you'd be wrong. This is faster to build.

Without FireUserN, the mapper would need to place multiple birds and take the time to give them all unique names. Then the logic_auto's outputs need to be set up for every bird one after another by setting Targetname and Parameter for the destination.
With FireUserN, the mapper needs to set up one single output in the logic_auto to fire to all bird entities at once because they have the same name. Then set up a single bird with its outputs and copy paste it somewhere else. Since every copy has the same name, it already is targeted by the logic_auto, so all that is needed now is to change the destination name in the parameter field. Which can be done quickly if the mapper doesn't close the parameter window.

Another Example

The map d3_citadel_01 contains multiple func_tracktrain (zapperpod1_train) with a func_door_rotating (zapperpod1_rotator) as a child. The func_tracktrains move along a path_track.
The vmf of this map can be found in "sourcesdk_content\hl2\mapsrc\sdk_d3_citadel_01.vmf".

One of the path_track entities, specifically "pod_bay_zapper_track4", the following relevant outputs:

My Output > Target Entity Target Input Parameter Delay Only Once
Io12.png OnPass !activator Stop 0.00 No
Io12.png OnPass !activator FireUser1 0.10 No

Once a func_tracktrain passes this path_track named "pod_bay_zapper_track4", the path_track causes the activator, which in this case are all the func_tracktrains, to stop right there and then fire "FireUser1
Each "func_tracktrain" the following OnUserN outputs:

My Output > Target Entity Target Input Parameter Delay Only Once
Io11.png OnUser1 zapperpod1_rotator Open 0.00 No
Io11.png OnUser1 zapperpod1_rotator Close 5.00 No
Io11.png OnUser1 playerpod1_vehicle Open 1.00 No
Io11.png OnUser1 playerpod1_vehicle Close 4.00 No

This whole setup essentially tells every single func_tracktrain to stop, turn the pod around and open its doors. Another entity will cause the pod to continue moving, but that is not relevant to this example of User inputs.
This speeds up workflow as well, as the mapper needs to set this up once, and then just rename the target entities by changing the number on them after pasting them multiple times.

Example - Entities triggering themselves

In some occasions, an entity might be more convenient to trigger itself, rather than having to keep checking on a logic_relay's outputs. One stellar example of that is env_tonemap_controller.
Usually a logic_auto would set various settings of the tonemap controller on map spawn. But it feels a little backwards to have the env_tonemap_controller be in the map, but all the settings for it are stored somewhere else
So for convenience's sake, one might want a logic_auto that fires "FireUser1" to the env_tonemap_controller, which then fires "OnUser1" to itself for all the things it needs to do.

My Output > Target Entity Target Input Parameter Delay Only Once
Io12.png OnUser1 !self SetTonemapRate 0.25 0.00 No
Io12.png OnUser1 !self SetBloomScale 0.2 0.00 No
Io12.png OnUser1 !self SetAutoExposureMin 0.4 0.00 No
Io12.png OnUser1 !self SetAutoExposureMax 1 0.00 No

See also