Flame Jet (Vertical)

From SRB2 Wiki
Jump to: navigation, search

Thing type 1301, Flame Jet (Vertical), is a type of Thing that shoots flames upwards for a few seconds and then stops for a short interval before starting over. The flames cause fire damage when being touched, and will hurt players without an Elemental Shield. NiGHTS Super Sonic will not lose rings if he comes into contact with the flames, but he will be knocked backward.

Note that this Thing itself is invisible, and does not contain any visual cue as to where the flames come from. Therefore, it should usually be placed somewhere where there is an obvious indication, such as in a hole in the floor or ceiling, or an open pipe.

By default, the fire shoots upwards. Adding the Ambush flag will make the fire shoot downwards; however, it will still spawn on the ground, so the Flip flag must also be applied to make it hang from the ceiling.

Setup

This section details how to set up the flame jet.

On/off durations

The Angle of the flame jet determines how long it will be on and off. By default, it will be on for 3 seconds and off for 71 tics (slightly over 2 seconds).

The flame jet's default off time can be extended by a multiple of 17 tics (approximately 0.5 seconds), which must be multiplied by 1024. For example, a flame jet with an Angle of 1024 will extend the off time by 17 tics (for a total of 88 tics), a flame jet with an Angle of 2048 (2 × 1024) will extend it by 2 × 17 tics (for a total of 105 tics), and so on. In contrast, the flame jet's default on time can be replaced entirely with a multiple of 17 tics, which must be multiplied by 8192. For example, a flame jet with an Angle of 8192 will give an on time of 17 tics, a flame jet with an Angle of 16384 (2 × 8192) will give an on time of 2 × 17 (or 34) tics, and so on.

In total, there are eight possible off times and four possible on times that the flame jet can have, which are listed in the tables below:

Angle Off time
Tics Seconds
0 71 ~2
1024 88 ~2.5
2048 105 3
3072 122 ~3.5
4096 139 ~4
5120 156 ~4.5
6144 173 ~5
7168 192 ~5.5
Angle On time
Tics Seconds
0 105 3
8192 17 ~0.5
16384 34 ~1
24576 51 ~1.5

The Angles needed for each off time and on time listed above can be added together for a combination of off and on times, e.g. a flame jet with an Angle of 9216 (or 8192 + 1024) will have an off time of 88 tics and an on time of 17 tics. The flame jet's total Angle value can be calculated as follows: Angle = (actual angle) + (off time Angle) + (on time Angle).

Giving the flame jet a negative Angle will make it shoot fire endlessly instead of intermittently, in which case off/on times are not used.

Shooting strength

The Thing's Parameter value determines the strength with which the flames will be shot. A Thing's Parameter value is multiplied by 4096 and added to the Thing type number, so the resulting Thing type number is 1301 + (Parameter)×4096. The shooting strength decreases as the Parameter value (and the Thing type number) increases; e.g., Thing type 1301 has the highest shooting strength, Thing type 5397 has a slightly lower strength etc.

Parameter Thing type # Shooting strength (FU/tic)
0 1301 20
1 5397 18.75
2 9493 17.5
3 13589 16.25
4 17685 15
5 21781 13.75
6 25877 12.5
7 29973 11.25
Parameter Thing type # Shooting strength (FU/tic)
8 34069 10
9 38165 8.75
10 42261 7.5
11 46357 6.25
12 50453 5
13 54549 3.75
14 58645 2.5
15 62741 1.25

Object/state data


  Thing types – Hazards [view]
SpikeballSpikeBig Floating MineCannonball LauncherBig Floating Mine (Air)TorchMace (Spinning)Mace (Swinging)Rock SpawnerFlame Jet (Horizontal)Flame Jet (Vertical)Spinning Flame Jet (Counter-Clockwise)Spinning Flame Jet (Clockwise)