Skybox swapper: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Note:Due to engine differences between
Note:Due to engine differences between  and
 and  , this entity doesn't actually work in
, this entity doesn't actually work in  Mapbase.
 Mapbase.
		
	
| mNo edit summary | No edit summary | ||
| (21 intermediate revisions by 11 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{LanguageBar}} | ||
| {{ent not in fgd}} | {{ent not in fgd}} | ||
| {{ | {{CD|CSkyboxSwapper|link=/asw|file1=1}} | ||
| {{this is a|logical entity|since=Alien Swarm|name=skybox_swapper}} {{also|{{tf2branch}}{{mapbase}}{{gmod}}}}. | |||
| Precaches and replaces the current 2D skybox material with another. Functionally equivalent to sv_skyname, even using the command in its functionality. | Precaches and replaces the current 2D skybox material with another. Functionally equivalent to sv_skyname, even using the command in its functionality. | ||
| {{Note|Due to engine differences between {{srcsdk13sp}} and {{srcsdk13mp}}, this entity doesn't actually work in {{mapbase|4}}.}} | |||
| == Keyvalues == | == Keyvalues == | ||
| {{KV Targetname}} | {{KV Targetname}} | ||
| {{KV|Skybox Material Name|intn=SkyboxName|sky|The name of the skybox to change to.}} | |||
| == Inputs == | == Inputs == | ||
| {{ | {{I|Trigger|Triggers the skybox change.}} | ||
| ==  | == FGD Code == | ||
| {{ | <pre> | ||
| @PointClass base(Targetname) iconsprite("editor/skybox_swapper.vmt") = skybox_swapper : "An entity that precaches skybox materials and swaps them on trigger."  | |||
| [ | |||
| 	SkyboxName(string) : "Skybox Material Name" : "" | |||
| 	input Trigger(void) : "Swap to this skybox." | |||
| ] | |||
| </pre> | |||
| <!-- for cats not added by {{this is a}} template --> | |||
| [[Category:Garry's Mod entities]] | |||
| [[Category:Garry's Mod logical entities]] | |||
| [[Category:Mapbase entities]] | |||
| [[Category:Mapbase logical entities]] | |||
| [[Category:Counter-Strike: Source entities]] | |||
| [[Category:Counter-Strike: Source logical entities]] | |||
| [[Category:Day of Defeat: Source entities]] | |||
| [[Category:Day of Defeat: Source logical entities]] | |||
| [[Category:Half-Life Deathmatch: Source entities]] | |||
| [[Category:Half-Life Deathmatch: Source logical entities]] | |||
| [[Category:Half-Life 2: Deathmatch entities]] | |||
| [[Category:Half-Life 2: Deathmatch logical entities]] | |||
| [[Category:Team Fortress 2 entities]] | |||
| [[Category:Team Fortress 2 logical entities]] | |||
Latest revision as of 17:07, 22 May 2025
|  Class hierarchy | 
|---|
| CSkyboxSwapper | 
|  skyboxswapper.cpp | 
skybox_swapper  is a   logical entity  available in all  Source games since
 Source games since  Alien Swarm. (also in
 Alien Swarm. (also in 

 ).
Precaches and replaces the current 2D skybox material with another. Functionally equivalent to sv_skyname, even using the command in its functionality.
).
Precaches and replaces the current 2D skybox material with another. Functionally equivalent to sv_skyname, even using the command in its functionality.
 Note:Due to engine differences between
Note:Due to engine differences between  and
 and  , this entity doesn't actually work in
, this entity doesn't actually work in  Mapbase.
 Mapbase.Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Skybox Material Name (SkyboxName) <sky name>
- The name of the skybox to change to.
Inputs
- Trigger
- Triggers the skybox change.
FGD Code
@PointClass base(Targetname) iconsprite("editor/skybox_swapper.vmt") = skybox_swapper : "An entity that precaches skybox materials and swaps them on trigger." 
[
	SkyboxName(string) : "Skybox Material Name" : ""
	input Trigger(void) : "Swap to this skybox."
]
Categories: 
- CServerOnlyEntity
- Logical entities
- Source base entities
- Source base logical entities
- Garry's Mod entities
- Garry's Mod logical entities
- Mapbase entities
- Mapbase logical entities
- Counter-Strike: Source entities
- Counter-Strike: Source logical entities
- Day of Defeat: Source entities
- Day of Defeat: Source logical entities
- Half-Life Deathmatch: Source entities
- Half-Life Deathmatch: Source logical entities
- Half-Life 2: Deathmatch entities
- Half-Life 2: Deathmatch logical entities
- Team Fortress 2 entities
- Team Fortress 2 logical entities




























