DarwinBotsManual
Open the app EspañolES

.shup

The type of the shot that hit you head-on in the previous cycle; 0 if nothing hit you from the front.

Facts

Address
210
Name
.shup
Kind
Sense: the engine writes it for the DNA to read
Group
Shots
Written by
The engine, in the shots phase, when one hits you from the front: its type, as in .shflav. You read it in the next cycle.
Cleared
The engine, every cycle, when the senses are cleared.
Range
−8 to −1 depending on the type, or 1 to 1000 if it was a memory shot; 0 if nothing hit you from the front.
Mutations
picked as a read (*)

.shup holds the type of the shot (the same number as .shflav) when that shot hit you from the front: within a quarter turn centered on your front, about 45 degrees to each side. If it hit you from another side, or nothing hit you, it is 0. Its companions are .shdn (behind), .shdx (right) and .shsx (left); on each hit only one of them is filled.

It arrives one cycle late and lasts one cycle. One detail: what .shup registers most is usually the energy that your own −1 shots send back, which returns from the target in front of you and registers as −2.

' someone is attacking me head-on: I return fire
cond
*.shup -1 =
start
-1 .shoot store
stop

For the exact angle, instead of the side, there is .shang.