Env poison gas: Difference between revisions
Jump to navigation
Jump to search
Warning: Be careful with the amount of particles and their spawnrate, as they can decrease performance in heavily detailed scenes
Note: By letting the entity spawn with an infinite duration and then changing it while active, makes the sound stop correctly once the duration is up.
Tip: Please consider using an ambient_generic entity for the sound if it shall ever need to be turned off (ambient/gas/gas_poison_loop2.wav).
Bug: Does not seem to have any effect. U4 and Radiation always deals and antigen always heals about 3 DPS no matter what. [todo tested in ?]
Bug: If the duration is non-infinite the sound effects will be muted on activation. [todo tested in ?]
Bug: The antigen gas type is invisible but else works as expected. An env_steam or func_smokevolume can be used to fake its gas cloud, RGB colour: (0 65 100). [todo tested in ?]
Bug: Turning off the cloud does not disable the sound effects. [todo tested in ?]
Bug: If the duration is non-infinite the sound effects will be muted on activation. [todo tested in ?]
Note: The entity needs to be turned off and on again for any effects to occur.
Bug: Does not seem to have any effect. [todo tested in ?]
Bug: Does not seem to have any effect. [todo tested in ?]
No edit summary |
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) |
||
Line 2: | Line 2: | ||
[[File: Se1_poison_gas_types.jpg | right | thumb | 450px | The four types of gas, antigen is invisible due to a bug.]] | [[File: Se1_poison_gas_types.jpg | right | thumb | 450px | The four types of gas, antigen is invisible due to a bug.]] | ||
{{ | {{this is a|point|name=env_poison_gas|game=SiN Episodes}} It spawns a cloud of gas from a selection of different gas types within its radius of effect, which are only ever used actively once in se1_u4lab01 (U4 Lab - Infiltration) to teach the player of the U4 gas and passively in the background maps as decoration. The U4 gas is also used by the [[prop_mutagen_barrel]] entity and antigen by all of the [[health]] objects in the game like the [[prop_antigen_canister]]. The entity is able to produce four different types of gas: | ||
Revision as of 10:15, 4 January 2024
env_poison_gas
is a point available in SiN Episodes. It spawns a cloud of gas from a selection of different gas types within its radius of effect, which are only ever used actively once in se1_u4lab01 (U4 Lab - Infiltration) to teach the player of the U4 gas and passively in the background maps as decoration. The U4 gas is also used by the prop_mutagen_barrel entity and antigen by all of the health objects in the game like the prop_antigen_canister. The entity is able to produce four different types of gas:
- U4 is known for its green colour, slows down the world from the player's POV and begins to hurt once the affect bar is full.
- Antigen is normally blue and heals the player over time.
- Radiation is an unused orange gas and damages on a constant rate like if being cut.
- Inert has no effects of any kind and should only ever be used for decoration purposes.



Keyvalues
- Name ([todo internal name (i)]) <string>
- The targetname that other entities refer to this entity by.


- Gas Type ([todo internal name (i)]) <choices>
- Type of gas.
- 0: U4
- 1: Antigen
- 2: Radiation
- 3: Inert

- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Inputs
- TurnOn
- Turn Gas On.
- TurnOff
- Turn Gas Off.

- SetRadius <float >
- Set Gas cloud radius
- SetDuration <float >
- Set Gas cloud duration (0: Infinite).

- SetSpawnRate <float >
- Set Gas particle spawn rate.

- Sound <boolean >
- Turn gas cloud sound on or off.

- SetStartColor <vector >
- Set the color of the gas at start.
- SetEndColor <vector >
- Set the color of the gas at end.

Targetname:
- AddOutput <string >
- Evaluates a keyvalue/output on this entity.
Format:<key> <value>
Format:<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
- FireUser1 to FireUser4
- Fire the
OnUser
outputs; see User Inputs and Outputs.
- Kill
- Removes this entity and any entities parented to it from the world.
- KillHierarchy
- Functions the same as
Kill
, although this entity and any entities parented to it are killed on the same frame, being marginally faster thanKill
.
Ouputs
Targetname:
- OnUse
- Fires when the
Use
input is given.