Toxic Fog

The Toxic Fog is a world hazard that closes in on players at timed intervals to encourage player encounters.

## Morphology

### Gradient

The toxic fog has a gradient that is probably linear and begins at a minimum distance between 122.8 to 124.8 and ends at a maximum distance of 141.1 to 141.8, and a starting colour of (255, 48, 69) in RGB notation, and a final colour of (121,179,252) in RGB notation, with the starting colour being everywhere before the minimum distance, and the final colour being everywhere after the maximum distance. The final colour coincides with the blue colour of a Voxiom sky. The opacity of the toxic fog is 0.6 for both the starting and final colours, which makes the initial colour generally appear as (201, 101, 143) since it's mixed with the sky.

### Shape

The shape is a polygonal prism that approximates a cylinder, centred somewhere in the map, the limits of which are not yet known. The height of which might be around 141 since when one is very close to the fog and looking at the top with the scope of a sniper, the edge appears very nitid. So it is likely that the height is equal to the distance at which its red gradient is visible.

### Lines

White lines go all around the toxic fog, they are stacked on top of each other, separated by half a block of distance, such that, they occupy heights in y that are multiples of 0.5

### Error

Sometimes the fog in the map or the fog that causes the damage does not coincide with the actual visual representation of the fog, in one such case, the distance was approximately ~25 blocks ahead the visual representation of the fog. The reason behind the error is an open problem.

## Phases

During the session in a battle royale game, the fog undergoes nine phases. Each phase, except the last, is made of two subphases, in the first subphase, the fog remains with the largest radius of the phase (e.g. for the second phase that would be 500 blocks of radius), for a certain duration of time, and after that, it shrinks for the same duration of time until it reaches the largest radius of the next phase.

### Damage

*See*: Damage

In a given phase, the toxic fog causes a damage in HP only (not in shield) every 2 seconds that a player spends inside the fog using the same notification system that the server uses to notify a player that they'll be kicked out of a server if they don't move, and it takes 8 seconds for each notification to disappear.

### Initial Invisibility

At the beginning, when the toxic fog's radius is equal to 1000, the toxic fog is invisible.

### Scheduling

The server schedules the phase to the client, and the client displays the fog accordingly. For when you die even though the rest of the server stops, the fog keeps moving only if the phase has been scheduled by the server, previously. On the other hand, the timing (the timer at top left) of each subphase is scheduled independently, and once it reaches zero, there's a new scheduling as long as one is still connected to the server.

Work in Progress

1. ↑ a linear regression applied to data concerning distances from the fog gives an R squared of 0.98 for red, green, and blue
2. ↑ Which can be easily demonstrated by taking a picture of the red fog over a black texture (by modifying the texture file), then finding out the solution to the linear equation:

b
l
a
c
k

=
(
000
,
000
,
000
)

s
k
y
\_
b
l
u
e

=
(
119
,
181
,
254
)

(
1
−
o
p
a
c
i
t
y
)
∗
b
l
a
c
k
o
p
a
c
i
t
y
∗
i
n
i
t
i
a
l
\_
c
o
l
o
u
r

=
(
153
,
029
,
041
)

(
1
−
o
p
a
c
i
t
y
)
∗
s
k
y
\_
b
l
u
e
o
p
a
c
i
t
y
∗
i
n
i
t
i
a
l
\_
c
o
l
o
u
r

=
(
201
,
101
,
143
)

o
p
a
c
i
t
y

=
?

i
n
i
t
i
a
l
\_
c
o
l
o
u
r

=
?

{\displaystyle \begin{align}
black &= (000,000,000)\\
sky\\_blue &= (119, 181, 254)\\
(1-opacity)\*black + opacity\*initial\\_colour &= (153, 029, 041) \\
(1-opacity)\*sky\\_blue + opacity\*initial\\_colour &= (201, 101, 143)\\
opacity &= ? \\
initial\\_colour &= ?
\end{align}}
3. ↑ In one measurement for the fox with radius 500, it gave around 65 sides, however, the measurement wasn't precise enough.
4. ↑ The radii of the fog has been determined from 3 points around the circle of each phase of the fog (that is, the circumcircle that results from the three points). One can use a calculator for that, like this one: http://www.ambrsoft.com/trigocalc/circle3d.htm.
5. ↑ There is, possibly, no time limit.