Weather: Difference between revisions
(Created page with "'''Weather''' is a feature in Jedi Outcast and Jedi Academy. Maps can have wind, rain, fog and snow added to them. == Weather entities == There are several weather ...") |
No edit summary |
||
Line 14: | Line 14: | ||
The snow entity creates snow, as seen on [[Hoth]] maps. | The snow entity creates snow, as seen on [[Hoth]] maps. | ||
Both rain and snow can be combined with a fog by setting a spawnflag. This is a fog ''effect'', which is different from ''volumetric fog'', which is a special type of [[shader]]. | Both rain and snow can be combined with a fog by setting a spawnflag. This is a fog ''effect'', which is different from ''[[volumetric fog]]'', which is a special type of [[shader]]. | ||
==== fx_wind ==== | ==== fx_wind ==== | ||
Line 20: | Line 20: | ||
== Mapping == | == Mapping == | ||
A mapper controls where global weather effects occur by using special brushes called Inside and Outside brushes. These are invisible (nodraw, nonsolid) brushes textured with the "inside" or "outside" [[shader]]s. These shaders are system shaders (found in system.shader). | |||
Only one type (inside or outside) may be used in a given map. If inside brushes are used, the areas of the map contained within these brushes will ''not'' have weather effects in them. If outside brushes are used, the areas of the map contained within these brushes will have weather effects in them. | |||
JA adds a [[Entity#misc_weather_zone|weatherzone entity]] to reduce map load times. The game will only check for inside and outside brushes that are inside weatherzone brushes. To make a weatherzone, create a brush and texture it with the weatherzone shader (also in system.shader); then convert this brush into a misc_weather_zone entity. | |||
== Console commands == | == Console commands == |
Revision as of 07:15, 7 November 2021
Weather is a feature in Jedi Outcast and Jedi Academy. Maps can have wind, rain, fog and snow added to them.
Weather entities
There are several weather entities that will spawn weather effects in a map.
fx_rain
A rain entity has several spawnflags which affect the behaviour of the rain. It can be light, medium or heavy. Heavy rain also comes with lightning.
Acid rain is available in JA, as seen on Vjun. This causes damage to the player and NPCs.
The outside_shake spawnflag causes a camera shake to happen when the player is outside. This is used in t1_rail.
fx_snow
The snow entity creates snow, as seen on Hoth maps.
Both rain and snow can be combined with a fog by setting a spawnflag. This is a fog effect, which is different from volumetric fog, which is a special type of shader.
fx_wind
This generates a wind effect, which blows other weather effects (rain, snow and fog). The angle and speed of the wind can be set by the mapper.
Mapping
A mapper controls where global weather effects occur by using special brushes called Inside and Outside brushes. These are invisible (nodraw, nonsolid) brushes textured with the "inside" or "outside" shaders. These shaders are system shaders (found in system.shader).
Only one type (inside or outside) may be used in a given map. If inside brushes are used, the areas of the map contained within these brushes will not have weather effects in them. If outside brushes are used, the areas of the map contained within these brushes will have weather effects in them.
JA adds a weatherzone entity to reduce map load times. The game will only check for inside and outside brushes that are inside weatherzone brushes. To make a weatherzone, create a brush and texture it with the weatherzone shader (also in system.shader); then convert this brush into a misc_weather_zone entity.