Fading Values
russich self confidence stocking world leg nelly furtado lyric rage against the machine killing in the name st louis video production morrowind cheats crest platen press new windsor new york county artful lodger clinton free title search www mscomm32.ocx install james patterson movie antioch ca home sale wife swapping porn radio and gas control plane r b music artist atv mud riding video christopher lloyd adult short movie nintendo games online casino site surface to surface missiles anime bible black video male nudist picture and movie gods and rock stars skim grammar check where is milan in italy city furniture adam bryan code music video anatomy of a murder movie poster camera hidden locker locker room room still tippin music video ludacris in the back of your chevrolet omedra http moore elementary school fort collins url insect eyes chrysler minerals cigna dental xyxel router myriad roman russian yandex arthritis doctor larrivee movie clip download light weight rv funky music inkjet refills site used car wichita kansas catfish flathead record world johanna mitchell el capitan state beach jcpenney.com arkansas classified ad bullet daughter daughter dragon dragon samurai tpb lake vista homeowners wd-40 2e building commercial heating hydronic light modern residential chain fun key promotional prussia apgar weight gainers online roulette game us psychiatric rehabilitation association gourmet food store job interview jenns tongue union jack license free contacts rose online world war one movie richmond community theater michigan pathological myopia lady chatterlys lover movie americans for immigration reform manual labor safety equipment home accutane dangerous jennifer stewart porn star self hogtie abrasives rochester sunni muslim self catering accommodation in newquay cornwall import transpac abitibi two level games cute japanese cartoon sports illustrated swimsuit models intermediate school district 917 sttc stock jennifer korbin video yankees ticket humax adult cinderella movie karin boye fx channel ebay auctions build a pergola joes grotto tapping existential view world america captain movie new foreclosure house for sale red death city jacksonville annie musical movie salma haye survival kit nokia 6630 prince persia warrior cheats wrestling wwf www just one look movie cerwin vega e715 internet data movie e f codd acm regeneration indianapolis star newspaper multi region code free dvd world wide wedgie rusk hair products asian teeth florida cerebral palsy lawyers brian setzer orchestra sublime santeria tab law review books kate bush eat the video arash mp3 cheap cs server location video montreal movie based on romeo and juliet kanban video aol instanst messenger earth works art gallery studio mount st. helens cermaic and granite tile alex wilcox cover letter example titty fucking gallery septic system problem hair loss premature product what a wonderful world stan getz astrud gilberto anti drug movies jason williams clips and videos puffy amiyumi lyrics teen titans quality craft models extracting video from dvd movie star teen moped and scooter 250cc mike lorello eating moms pussy california renters insurance cheap soundproofing because of winn-dixie child id kit crab leg symmetries of an isosceles triangle zebco 888 porn sex video clip nursing school top a veto on video game black hung cock affari di sorelle valerie clarke omron walking style 2 que es un pais inc schlesingers nissan pavilion mbta schedule j lo video clip blood prince regents stacker 3 original formula multistage pumps shock absorbers for toyota leggs to paradise cambon chanel handbag silly straws xoxo bedding deciduous forest winter mature nudes emma watson video clip used nextel phone for sale cartia xt vb execute batch file sarasota florida realtor keep cigars fresh slutty white girl murder 2c set 2c piece mulberry st pizza body cameras chevy luv part racing tin can favor goldie hawn breasts This article describes an advanced effect in the Source engine, used to fade fog between different values, but it can be used for any entity that has a color value to change over time. You might also use that article to shift the Z-plane on a map to reduce the visibility, etc.
This trick is quite powerful, as it allows you to alter values that we usually leave static on a map: it would add game immersion.
Entities required
- logic_relay is perfect to change game values or to abstract the routine. It also makes it much easier to duplicate the effect in other maps.
- logic_timer is the basis of the effect, this entities is designed for measuring the time ticks.
- math_counter keeps track of the evolution of the values uppon time for our effect.
- math_colorblend or math_remap do essentially the same thing: they remap a value based on the input value.
Entity setup
logic_relay targetname fade_value1 OnTrigger counter SetValue 0 OnTrigger timer OnTrigger timer Enable
logic_timer targetname timer RefireTime .2 StartDisabled 1 OnTimer counter Add .01
math_counter targetname counter max 1 OnHitMax timer Disable OutValue colorblend InValue
math_colorblend targetname colorblend colormin "0 0 0" colormax "255 255 255" OutColor env_fog_controller SetColor
Process description
You trigger the logic_relay with another entity, or from the console with ent_fire fade_value1 trigger
. This will start the sequence. The logic_relay starts the logic_timer and resets the math_counter. The logic_timer re-fires every .2 seconds, firing its output OnTimer, which adds .01 to the math_counter's stored value. The math_counter outputs its OutValue whenever its value is changed, which is in turn put into the math_colorblend. The math_colorblend takes the input value, which is a range from 0-1, and changes the colors based on that.
This range allows for 100 steps. The values that are setup are a compromise between making the blend really smooth and performance. It's slightly "steppy" because it happens only 5 times a second. It would be a lot smoother if you increased it to happen more often, with less of a step. You could do that by only adding .005 or a smaller value than the default .01.
Once the math_counter hits its maximum value (1) it will fire an output telling the logic_timer to disable. This effectively stops the sequence until the logic_relay is fired again.
OutColor and OutValue outputs both accept a parameter in Hammer, but make sure you do not specify one. The parameter they pass will be dynamically generated by the entity itself.
You can change OutColor on the math_colorblend to target any entity that will accept a color value, and it should work just the same. This entity rig can be further adapted to work with a math_remap, and used to fade between any two values, allowing you to affect the values of pretty much any entity in the game, and change them over time.