Projectiles

## Overview

Projectiles are the primary means of attacking other players (aside from ramming) in games like Diep.io, Arras.io, and consequently, Arras.io's fan servers.

Official Diep.io/Arras.io Wiki Page: https://diepio.fandom.com/wiki/Category:Ammunition

## Universal Projectiles

These are Projectiles that are seen in Arras.io and its fan servers.

### Bullets

Bullets are by far the most common projectile. They do a set amount of damage to whatever they make contact with (so long as that object is not on the same team), and disappear after a fixed amount of time (defined as `RANGE` in the game's code).

### Traps

Traps are projectiles emitted from certain tanks in the game that eventually slow down and stop, remaining there for a preset duration of time afterwards. They generally do more damage than Bullets, in exchange for typically being easier to avoid (once set).

There are four kinds of Traps, listed below.

#### Thrown Traps

Thrown Traps are the most basic variation of Traps, taking the shape of a 3-pointed star. These Traps immediately decelerate once created, and remain in that spot untless they are pushed by other traps, destroyed, or they despawn.

#### Auto-Traps

Auto-Traps are identical to Traps with the exception of a turret mounted onto the top of the projectile, which will fire on a non-affiliated entity until it is destroyed, out of range, or the trap despawns.

#### Set Traps

Set Traps do more damage than Thrown Traps, and appear as 4-pointed stars. Unlike Thrown Traps, the player has full control over Set Traps end up. This is useful for creating walls and defensive barriers.

#### Pillboxes

Pillboxes are identical to Set Traps, with the exception of a turret similar to that of Auto-Traps mounted onto it. These ones are more powerful by default to compensate for there usually being no more than six out at one time when a tank produces them.

#### Boomerangs

Boomerangs are a special type of Set Trap that arc back towards their creator shortly after being thrown down. The duration that they remain idle depends on how close they were to the player who set them; they stay idle notably longer if placed immediately in front of the player, though they will ultimately arc back and despawn, regardless of if they ever reach their owner or not.

### Drones

Drones are controllable projectiles that move towards the player's cursor, and typically serve as the Director branch's primary means of attack. Like Traps, there are also multiple types of drones.

#### Standard Drones

Standard Drones are triangular entities that quickly move to the player's cursor so long as the player is holding down the left button on their mouse, pressing the spacebar on their keyboard, or have Autofire enabled. Pressing Alt-Fire (Right Click/Shift) will cause the drones to disperse and move the opposite direction away from the mouse, which allows experienced players to employ various tactics to effectively kill their target. Drones do not despawn naturally, and are usually always present in a set amount (6-8, depending on the tank).

#### Swarm Drones

Referred to as "Partisans" in Diep, Swarm Drones are smaller, weaker versions of Standard Drones, that have a fixed lifespan. These drones do not have a maximum limit, and are used to swarm the enemy to death, as the name implies. Swarm drones can be both player-controlled and autonomous, though the latter are typically only seen operating in junction with some other attack pattern (ex. Surfer's side cannons).

#### Necro Drones

Some instances of these drones are referred to as Sunchips, these drones are slightly weaker than Standard Drones in both health and damage, however the limits for them are much higher (usually somewhere in the 20-30 range). Necro drones are capable of turning other polygons into more instances of the same drone, so long as the ploygon is the same shape; usually a square, but sometimes a circular, meaning they take control of Eggs.