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

Point spotlight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(82 intermediate revisions by 32 users not shown)
Line 1: Line 1:
[http://aubreygildersle.freeweb7.com/weird-al-mp3.html weird al mp3] [http://cacophonysaint.w8w.pl/html/tattoo-removal.htm tattoo removal] [http://georgeswanigan.freeweb7.com/small/polygraph.html polygraph] [http://jacqualineblay.friko.pl/text/realsquirt.html realsquirt] [http://cordiademby.w8w.pl/resources/leadership-quotes.html leadership quotes] [http://georgeswanigan.freeweb7.com/small/wildboyz.html wildboyz] [http://paulareimann.infernohost.net/helen-shaver.htm helen shaver] [http://sujowirlo.fhpanel.com/polaris-parts.html polaris parts] [http://helanur.interfree.it/blog/concrete-pumps-used.htm concrete pumps used] [http://zzizlita.hostinggratisbrasil.com/lighters.html lighters] [http://clarinepals.totalh.com/directory/sofa-bed-mattress.htm sofa bed mattress] [http://mayrakoontz.ourprofile.net/description/world-history.html world history] [http://zilivrenglaur.ayudauni.net/sbc-global.html sbc global] [http://mayrakoontz.ourprofile.net/description/autotrader.html autotrader] [http://lowukibiwo.fhpanel.com/tiana.html tiana] [http://moniquemoye.freeweb7.com/data/educational-talent.htm educational talent search] [http://menkeydarren.ayudauni.net/annal.html annal] [http://helanur.interfree.it/blog/nasty-fetish.htm nasty fetish post] [http://zilivrenglaur.ayudauni.net/sex-crimes.html sex crimes] [http://lieselottehasse.infernohost.net/shemale-pantyhose.html shemale pantyhose] [http://georgeswanigan.freeweb7.com/small/round-folding.html round folding tables] [http://kiwizzo.indo.tc/shaven.htm shaven] [http://fowapvu.fhpanel.com/html/michael-albertson.htm michael albertson] [http://menkeydarren.ayudauni.net/disney-toons.html disney toons fucking] [http://pianoislove.ourprofile.net/directory/one-winged-angel.html one winged angel] [http://goraina.interfree.it/safety-program.html safety program] [http://corinaperras.totalh.com/mr-blackwell.htm mr blackwell list 2005] [http://aubreygildersle.freeweb7.com/bunk-bed.html bunk bed] [http://quiris.interfree.it/castlevania.html castlevania] [http://jeffieseab.fhpanel.com/styles/shari-eubank.html shari eubank] [http://argentinaperale.infernohost.net/too-young-too.html too young too fuck] [http://womamalimi.hostinggratisbrasil.com/lezlove.html lezlove] [http://kwowukxa.hostinggratisbrasil.com/roofing-manufacturer.html roofing manufacturer] [http://chelsxd.ourprofile.net/serbia.html serbia] [http://argentinaperale.infernohost.net/album-art-aggregator.html album art aggregator] [http://tucabello.infernohost.net/description/ashton-furniture.html ashton furniture lane] [http://kiwizzo.indo.tc/beluga-whales.htm beluga whales] [http://argentinaperale.infernohost.net/doing-it-sapphic.html doing it sapphic] [http://paulareimann.infernohost.net/wholesale-novelties.htm wholesale novelties] [http://dungkinslow.infernohost.net/directory/preteen-boys-having.html preteen boys having sex] [http://yukohiatt.infernohost.net/8th-street-latinos.html 8th street latinos] [http://goraina.interfree.it/underage-lesbian.html underage lesbian sex] [http://paulareimann.infernohost.net/adele-stephens.htm adele stephens blowjob] [http://theresekulik.totalh.com/information-network.html information network of] [http://dungkinslow.infernohost.net/directory/super-woman.html super woman] [http://themusecalliope.interfree.it/blog/east-texas-truck.htm east texas truck equipment] [http://elizsteinberg.totalh.com/styles/one-night-in.html one night in bangkok] [http://tucabello.infernohost.net/description/united-health.html united health care] [http://lieselottehasse.infernohost.net/european-kids.html european kids clothing] [http://tucabello.infernohost.net/description/4th-degree-sexual.html 4th degree sexual assault] [http://yukohiatt.infernohost.net/little-big-horn.html little big horn] [http://tucabello.infernohost.net/description/la-county-sheriffs.html la county sheriffs dept] [http://tdtuamo.hostinggratisbrasil.com/resources/french-to-english.html french to english translation] [http://kwowukxa.hostinggratisbrasil.com/redneck-women.html redneck women] [http://quiris.interfree.it/star-wars.html star wars] [http://ileenbabb.totalh.com/data/canada-outpost.html canada outpost fishing] [http://tucabello.infernohost.net/description/nude-babes.html nude babes] [http://tibuogoz.hostinggratisbrasil.com/html/downloadable-games.html downloadable games] [http://meridemko.indo.tc/view/water-aerobics.html water aerobics] [http://aubreygildersle.freeweb7.com/all-that-jazz.html all that jazz] [http://helanur.interfree.it/blog/plastic-containers.htm plastic containers] [http://dungkinslow.infernohost.net/directory/tnt-audio-reviews.html tnt audio reviews] [http://corinaperras.totalh.com/snapsblog.htm snapsblog] [http://themusecalliope.interfree.it/blog/little-annie.htm little annie fanny] [http://menkeydarren.ayudauni.net/young-and-hairy.html young and hairy] [http://tdtuamo.hostinggratisbrasil.com/resources/maryland-phone.html maryland phone service] [http://aubreygildersle.freeweb7.com/cbs-big-brother.html cbs big brother house] [http://zherezx.ayudauni.net/articles/pansat.html pansat] [http://aubreygildersle.freeweb7.com/bridesmaid-hairstyles.html bridesmaid hairstyles] [http://mayrakoontz.ourprofile.net/description/fat-celebs.html fat celebs] [http://themusecalliope.interfree.it/blog/husband-watches.htm husband watches wife fuck] [http://dungkinslow.infernohost.net/directory/laetitia.html laetitia] [http://cacophonysaint.w8w.pl/html/p-value-is.htm p value is] [http://paulareimann.infernohost.net/teenage-girls-bedrooms.htm teenage girls bedrooms] [http://ileenbabb.totalh.com/data/ionamin.html ionamin] [http://themusecalliope.interfree.it/blog/dailybigboobs.htm dailybigboobs] [http://goraina.interfree.it/chevrolet-gauge.html chevrolet gauge faces] [http://temptedlush.interfree.it/html/poetry-paradox.html poetry paradox] [http://meridemko.indo.tc/view/the-batman.html the batman] [http://tdtuamo.hostinggratisbrasil.com/resources/oolong-tea.html oolong tea] [http://lieselottehasse.infernohost.net/crips-gang-signs.html crips gang signs] [http://erabrust.totalh.com/small/bmw-body-kits.html bmw body kits] [http://argentinaperale.infernohost.net/350ml.html 350ml] [http://zzizlita.hostinggratisbrasil.com/preteen-non-nude.html preteen non nude models] [http://danielantonio.freeweb7.com/lib/pace-arrow-motor.html pace arrow motor home] [http://laniwgi.fhpanel.com/brooke-burke.htm brooke burke] [http://aubreygildersle.freeweb7.com/super-bowl.html super bowl] [http://lowukibiwo.fhpanel.com/mexican-nude.html mexican nude] [http://tucabello.infernohost.net/description/sex-in-movies.html sex in movies] [http://tibuogoz.hostinggratisbrasil.com/html/andrew-car-texas.html andrew car texas used] [http://selinaswigert.friko.pl/pages/poker-sites.html poker sites] [http://elizsteinberg.totalh.com/styles/wholesale-dvd.html wholesale dvd] [http://zherezx.ayudauni.net/articles/oregon-employment.html oregon employment department] [http://tucabello.infernohost.net/description/medias-res.html medias res] [http://tdtuamo.hostinggratisbrasil.com/resources/the-new-york.html the new york look nyc] [http://bernadinetrotta.indo.tc/st-louis.html st louis] [http://soonweddington.infernohost.net/content/anchorage-daily.htm anchorage daily news] [http://themusecalliope.interfree.it/blog/free-mature-thumbnails.htm free mature thumbnails] [http://zilivrenglaur.ayudauni.net/real-estate-st-george.html real estate st george ut] [http://yukohiatt.infernohost.net/lip-service.html lip service] [http://themusecalliope.interfree.it/blog/pachislo-slot-machine.htm pachislo slot machine tokens] [http://laniwgi.fhpanel.com/meet-singles-online.htm meet singles online free] [http://laniwgi.fhpanel.com/as400-cobol.htm as400 cobol] [http://corinaperras.totalh.com/crates.htm crates] [http://argentinaperale.infernohost.net/twins-porn.html twins porn] [http://danielantonio.freeweb7.com/lib/bare-breast.html bare breast] [http://fowapvu.fhpanel.com/html/katv.htm katv] [http://womamalimi.hostinggratisbrasil.com/graduation-announcements.html graduation announcements] [http://romainehibbler.totalh.com/text/automatizado.html automatizado] [http://argentinaperale.infernohost.net/radio-flyer-wagons.html radio flyer wagons] [http://georgeswanigan.freeweb7.com/small/cleocin.html cleocin] [http://erabrust.totalh.com/small/installation.html installation instructions for metal roofing] [http://helanur.interfree.it/blog/slipknot-my-plague.htm slipknot my plague] [http://temptedlush.interfree.it/html/letter-openers.html letter openers] [http://goraina.interfree.it/thrifty-nickle.html thrifty nickle] [http://kwowukxa.hostinggratisbrasil.com/ciggarette-state.html ciggarette state tax] [http://argentinaperale.infernohost.net/patients-sex.html patients sex] [http://aubreygildersle.freeweb7.com/mac-diagnostics.html mac diagnostics] [http://goraina.interfree.it/felicia.html felicia] [http://aubreygildersle.freeweb7.com/missi-pyle.html missi pyle] [http://jeffieseab.fhpanel.com/styles/class-reunions.html class reunions] [http://womamalimi.hostinggratisbrasil.com/cell-phone-number.html cell phone number finder] [http://argentinaperale.infernohost.net/cape-cod-landscaping.html cape cod landscaping services] [http://clarinepals.totalh.com/directory/petra-verkiak.htm petra verkiak] [http://danielantonio.freeweb7.com/lib/pos-dealer.html pos dealer] [http://ramonapasko.friko.pl/wiki/nipple-massage.html nipple massage] [http://goraina.interfree.it/straight-men-masturbate.html straight men masturbate] [http://lieselottehasse.infernohost.net/redneck-pics.html redneck pics] [http://jacqualineblay.friko.pl/text/free-teen-porn.html free teen porn videos] [http://kiwizzo.indo.tc/polarized-sunglasses.htm polarized sunglasses] [http://alejandrinawhip.ourprofile.net/view/cuban.html cuban] [http://argentinaperale.infernohost.net/male-body-hair-removal.html male body hair removal] [http://tucabello.infernohost.net/description/amy-wong.html amy wong] [http://quiris.interfree.it/realty-executives.html realty executives] [http://danielantonio.freeweb7.com/lib/amber-marie-pics.html amber marie pics] [http://paulareimann.infernohost.net/discount-computers.htm discount computers] [http://temptedlush.interfree.it/html/carlson-craft.html carlson craft invitations] [http://selinaswigert.friko.pl/pages/used-4x4-pickup.html used 4x4 pickup trucks] [http://womamalimi.hostinggratisbrasil.com/ortho-evra.html ortho evra] [http://georgeswanigan.freeweb7.com/small/thomas-tank-engine.html thomas tank engine] [http://helanur.interfree.it/blog/disney-belle.htm disney belle] [http://argentinaperale.infernohost.net/black-thick-girls.html black thick girls] [http://paulareimann.infernohost.net/daughter-caught.htm daughter caught nude] [http://jacqualineblay.friko.pl/text/royal-carribean.html royal carribean cruise line] [http://missmoxr.ayudauni.net/meridian59.html meridian59] [http://cacophonysaint.w8w.pl/html/window-media.htm window media center 2005 serial] [http://missmoxr.ayudauni.net/blow-jobs-free.html blow jobs free] [http://goraina.interfree.it/nice-naturals.html nice naturals] [http://themusecalliope.interfree.it/blog/novelty-candy.htm novelty candy] [http://chelsxd.ourprofile.net/filles.html filles]  
{{LanguageBar}}
{{wrongtitle|title=point_spotlight}}
{{CD|CPointSpotlight|file1=1}}
== Entity description ==
[[File:PointSpotlight.jpg|thumb|right|192px|A point_spotlight.]]
An entity to draw a spotlight primarily consisting of two glow sprites: A beam when the player views it side on, and a halo when it's facing towards the player. Unless the 'No Dynamic Light' spawn flag is checked, it will also create a dynamic light wherever the end of the spotlight rests.
{{this is a|point entity|name=point_spotlight}} Creates two glow sprite effects: a ''beam'' effect for viewers outside the light cone and a ''halo'' effect for viewers inside the cone. Also creates dynamic light at the end of the beam if desired flags are set which is achieved using {{ent|spotlight_end}}.
{{note|Without the dynamic light this entity will just provide a sprite effect, and will not serve as an actual light source.}}


== Keyvalues ==
The {{ent|spotlight_end}} functionality can be disabled with the 'No Dynamic Light' spawnflag. In that state, the spotlight will not actually illuminate other objects on its own and can be used with an accompanying {{ent|light_spot}} or {{ent|env_projectedtexture}} instead.
* {{kv targetname}}
* {{kv parentname}}
* {{kv renderfields}}
* {{kv angles}}
* {{kv hdrcolorscale}}


* '''spotlightlength'''
{{bug|hidetested=1|In {{portal2|4}} and {{bms|4}} the '''Alpha''' (''renderamt'') property is not functional at all, use '''HDRColorScale''' instead.}}
: <integer> Length of the spotlight beam.
{{warning|This entity generates 3 [[edict]]s (for itself, the beam visual and beam target respectively: {{mono|point_spotlight}}, {{ent|beam}}, {{ent|spotlight_end}}! In {{tf2|4}} and {{gmod|4}}, the <code>point_spotlight</code> itself has been converted to a server-only entity (does not take up an edict), and in {{tf2|4}}, when no targetname and parentname is assigned, the <code>point_spotlight</code> and <code>spotlight_end</code> entity is also killed, thus consuming 1 edict in total for a static spotlight.}}
{{bug|tested={{hl2}},{{bms}}|Killing this entity either by '''Kill''' input or by killing its parent while it's turned on will leave behind the <kbd>beam</kbd> and <kbd>spotlight_end</kbd> entities. Beam won't be visible but the spotlight_end will be.
{{workaround|Fire '''LightOff''' input first, then with small delay '''Kill'''.}}
}}
{{note|{{ent|beam}} collides only with [[prop_static]] and world geometry, this means that beam of [[point_spotlight]] and dynamic light will ignore any dynamic objects (with the exception of [[func_physbox]]), [[NPC]]s, [[physics objects]], e.t.c.}}


* '''spotlightwidth'''
{{expand|title=Third-Party notices {{asd}}{{bms}}|
: <integer> Width of the spotlight beam.
{{note|In {{asd|4}} this entity is not supported and on loading a map all point_spotlight entities will be converted to [[Light deferred]]!}}
{{important|{{bms|4}} are using [[deferred lighting]] for [[spotlight_end|light source from this entity]].}}
}}


* '''rendercolor'''
== Keyvalues ==
: {{color}} The color of the spotlight cone.
{{KV Targetname}}
{{KV|Ignore Solid|intn=IgnoreSolid|bool|If set, this spotlight won't trace for solids, emitting at its full length and ignoring potential obstructions.|since={{src13mp}}|also={{gmod}}{{mapbase}}  ,  {{!fgd}} in {{bms}}}}
{{KV|Spotlight Length|intn=SpotlightLength|integer|Length of the spotlight beam.}}
{{KV|Spotlight Width|intn=SpotlightWidth|integer|Width of the spotlight beam.}}
{{KV|Color (R G B)|intn=rendercolor|color255|Spotlight color.}}
{{KV|HDR color scale.|intn=HDRColorScale|float|Float value to multiply sprite color by when running in HDR mode.}}
{{KV|Halo size scale.|intn=HaloScale|float|Float value to determine the size of the halo.|since={{l4d2}}|also={{mapbase}}}}
{{expand|title={{mapbase|4}} only properties|
{{KV|Halo material|intn=HaloMaterial|string|Material to use for the halo.}}
{{KV|Spotlight beam material|intn=SpotlightMaterial|string|Material to use for the spotlight's beam.}}
}}
{{expand|title=Performance properties|
{{KV DXLevelChoice}}
{{KV SystemLevelChoice}}
}}


== Flags ==
== Flags ==
* 1 : Start On
{{Fl|1|Start On}}
: Sets the point_spotlight to be turned on when it spawns.
{{Fl|2|No Dynamic Light}}
{{bug|hidetested=1|In {{l4d2|4}} alpha of spawned {{ent|spotlight_end}} is set wrongly causing no light to be visible. {{fix|Use following script as point_spotlight's Entity script {{ExpandBox|<syntaxhighlight lang=js>function L4D2PointSpotlightFix() {
    for(local ent; ent = Entities.FindByClassname(ent, "spotlight_end");) {
        if(NetProps.GetPropEntity(ent, "m_hOwnerEntity") == self) {
            local clrrender = NetProps.GetPropInt(self, "m_clrRender");
            NetProps.SetPropInt(ent, "m_clrRender", clrrender);
            return;
        }
    }
}


* 2 : No Dynamic Light
function OnPostSpawn() {
: Prevents a dynamic light from being generated by the point_spotlight. Dynamic lights can be costly for performance, so this flag should be checked to improve framerate.
    if((NetProps.GetPropInt(self, "m_spawnflags") & 3) == 0) {
        L4D2PointSpotlightFix();
    }
    self.ConnectOutput("OnLightOn", "L4D2PointSpotlightFix")
}</syntaxhighlight>}}}}}}


== Inputs ==
== Inputs ==
*{{i targetname}}
{{I|LightOn|Turn the spotlight on.}}
*{{i parentname}}
{{I|LightOff|Turn the spotlight off.}}
*{{i renderfields}}
{{I|LightToggle|Toggles the spotlight on/off|only={{mapbase}}}}
{{I|SetColor|Change the color of the spotlight. Light must be turned off then back on for dynamic light to update.|param=color255|since={{AS}}|also={{GMOD}}}}
:{{note|Functionally identical to the {{mono|Color}} input. A delay of at least 0.01 is required before the spotlight is turned back on, or else it will remain off.}}
{{I|ForceUpdate|Force an update of the spotlight position and orientation.|since={{AS}}|also={{GMOD}}}}


* '''LightOn'''
== Outputs ==
{{O|OnLightOn|ac-is-this=1|Fires when light turns on.}}
{{O|OnLightOff|ac-is-this=1|Fires when light turns off.}}


* '''LightOff'''
== Code related ==
 
By default, point_spotlight uses the material ''sprites/glow_test02.vmt''. You can change this if you are shipping your own binaries by going into ''point_spotlight.cpp'' in the server project, navigating to line 351 and replacing the file path with your own material or a reference to a variable set via a KV similarly as {{mapbase|4}}'s <kbd>SpotlightMaterial</kbd> KV.
== Outputs ==
* {{o targetname}}


== See also ==
== See also ==
* [[light_spot]]
* [[Lighting]]
* [[npc_spotlight]]


[[Category:Entities]]
[[Category:Lighting]]

Latest revision as of 03:43, 20 July 2025

English (en)Русский (ru)Translate (Translate)
C++ Class hierarchy
CPointSpotlight
CPointEntity
CBaseEntity
C++ point_spotlight.cpp
A point_spotlight.

point_spotlight is a point entity available in all Source Source games. Creates two glow sprite effects: a beam effect for viewers outside the light cone and a halo effect for viewers inside the cone. Also creates dynamic light at the end of the beam if desired flags are set which is achieved using spotlight_end.

The spotlight_end functionality can be disabled with the 'No Dynamic Light' spawnflag. In that state, the spotlight will not actually illuminate other objects on its own and can be used with an accompanying light_spot or env_projectedtexture instead.

Icon-Bug.pngBug:In Portal 2 Portal 2 and Black Mesa Black Mesa the Alpha (renderamt) property is not functional at all, use HDRColorScale instead.
Warning.pngWarning:This entity generates 3 edicts (for itself, the beam visual and beam target respectively: point_spotlight, beam, spotlight_end! In Team Fortress 2 Team Fortress 2 and Garry's Mod Garry's Mod, the point_spotlight itself has been converted to a server-only entity (does not take up an edict), and in Team Fortress 2 Team Fortress 2, when no targetname and parentname is assigned, the point_spotlight and spotlight_end entity is also killed, thus consuming 1 edict in total for a static spotlight.
Icon-Bug.pngBug:Killing this entity either by Kill input or by killing its parent while it's turned on will leave behind the beam and spotlight_end entities. Beam won't be visible but the spotlight_end will be.
PlacementTip.pngWorkaround:Fire LightOff input first, then with small delay Kill.
  (tested in: Half-Life 2,Black Mesa)
Note.pngNote:beam collides only with prop_static and world geometry, this means that beam of point_spotlight and dynamic light will ignore any dynamic objects (with the exception of func_physbox), NPCs, physics objects, e.t.c.
Third-Party notices Alien Swarm DeferredBlack Mesa
Note.pngNote:In Alien Swarm Deferred Alien Swarm Deferred this entity is not supported and on loading a map all point_spotlight entities will be converted to Light deferred!

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

Ignore Solid (IgnoreSolid) <boolean> (in all games since Source 2013 Multiplayer) (also in Garry's ModMapbase , !FGD in Black Mesa)
If set, this spotlight won't trace for solids, emitting at its full length and ignoring potential obstructions.
Spotlight Length (SpotlightLength) <integer>
Length of the spotlight beam.
Spotlight Width (SpotlightWidth) <integer>
Width of the spotlight beam.
Color (R G B) (rendercolor) <color255>
Spotlight color.
HDR color scale. (HDRColorScale) <float>
Float value to multiply sprite color by when running in HDR mode.
Halo size scale. (HaloScale) <float> (in all games since Left 4 Dead 2) (also in Mapbase)
Float value to determine the size of the halo.
Mapbase Mapbase only properties
Halo material (HaloMaterial) <string>
Material to use for the halo.
Spotlight beam material (SpotlightMaterial) <string>
Material to use for the spotlight's beam.
Performance properties
Minimum / Maximum DX Level (mindxlevel / maxdxlevel) <integer choices> (removed since Left 4 Dead)
The entity will not exist if the engine is running outside the given range of DirectX Versions.
Choices
Warning.pngWarning:If these are used, the object may break when the user switches their DirectX settings.[missing string]
Minimum / Maximum Effect Details Level (mincpulevel / maxcpulevel) <integer choices> (in all games since Left 4 Dead)
Don't render for players with Effect Details levels that exceed the minimum or maximum.
Choices
  • 0: Default ("Low" for mincpulevel, "High" for maxcpulevel)
  • 1: Low
  • 2: Medium
  • 3: High
Minimum / Maximum Shader Details Level (mingpulevel / maxgpulevel) <integer choices> (in all games since Left 4 Dead)
Don't render for players with Shader Details levels that exceed the minimum or maximum.
Choices
  • 0: Default ("Low" for mingpulevel, "Very High" for maxgpulevel)
  • 1: Low
  • 2: Medium
  • 3: High
  • 4: Very High
See also:  cpu_level / gpu_level convars

Flags

Start On : [1]
No Dynamic Light : [2]
Icon-Bug.pngBug:In Left 4 Dead 2 Left 4 Dead 2 alpha of spawned spotlight_end is set wrongly causing no light to be visible.
Note.pngFix:Use following script as point_spotlight's Entity script

function L4D2PointSpotlightFix() {
    for(local ent; ent = Entities.FindByClassname(ent, "spotlight_end");) {
        if(NetProps.GetPropEntity(ent, "m_hOwnerEntity") == self) {
            local clrrender = NetProps.GetPropInt(self, "m_clrRender");
            NetProps.SetPropInt(ent, "m_clrRender", clrrender);
            return;
        }
    }
}

function OnPostSpawn() {
    if((NetProps.GetPropInt(self, "m_spawnflags") & 3) == 0) {
        L4D2PointSpotlightFix();
    }
    self.ConnectOutput("OnLightOn", "L4D2PointSpotlightFix")
}

Inputs

LightOn
Turn the spotlight on.
LightOff
Turn the spotlight off.
LightToggle  (only in Mapbase)
Toggles the spotlight on/off
SetColor <color255RedirectInput/color32> (in all games since Alien Swarm) (also in Garry's Mod)
Change the color of the spotlight. Light must be turned off then back on for dynamic light to update.
Note.pngNote:Functionally identical to the Color input. A delay of at least 0.01 is required before the spotlight is turned back on, or else it will remain off.
ForceUpdate  (in all games since Alien Swarm) (also in Garry's Mod)
Force an update of the spotlight position and orientation.

Outputs

OnLightOn
!activator = !caller = this entity
Fires when light turns on.
OnLightOff
!activator = !caller = this entity
Fires when light turns off.

Code related

By default, point_spotlight uses the material sprites/glow_test02.vmt. You can change this if you are shipping your own binaries by going into point_spotlight.cpp in the server project, navigating to line 351 and replacing the file path with your own material or a reference to a variable set via a KV similarly as Mapbase Mapbase's SpotlightMaterial KV.

See also