This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ixe:controller:cannon [2025/02/01 01:56] – Argonwolf | ixe:controller:cannon [2025/02/27 15:25] (current) – virgilw | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== cannon ====== | ====== cannon ====== | ||
- | Fires projectiles at creeper, bots and digitalis in range. Used by several player | + | Fires projectiles at creeper, bots and digitalis in range. Used by several player |
__**Arguments**__ | __**Arguments**__ | ||
Line 11: | Line 11: | ||
? | ? | ||
:If true, cannon aims toward cursor and fires when left mouse button is clicked; if false, cannon aims and fires automatically | :If true, cannon aims toward cursor and fires when left mouse button is clicked; if false, cannon aims and fires automatically | ||
+ | ? | ||
+ | :The V2 offset from 0,0 on the part that the shot originates from. | ||
? | ? | ||
:Maximum turn rate of cannon in degrees per frame (in manual mode cannon rotates instantly to face cursor regardless of rotate_speed) | :Maximum turn rate of cannon in degrees per frame (in manual mode cannon rotates instantly to face cursor regardless of rotate_speed) | ||
- | ? | + | ?fire_cost (float) |
- | : | + | :Ammo consumed from parent unit per shot fired |
- | ? | + | ?fire_delay (int) |
- | : | + | :Time between shots in game frames |
- | ? | + | ?shot_speed (int) |
- | : | + | :Movement speed of fired shots in map pixels per frame |
- | ? | + | ?max_age (int) |
- | : | + | :Time in game frames from firing until projectile despawns (a value of 0 gives projectiles unlimited lifetime) |
- | ? | + | ?shot_damage_count (int) |
- | : | + | :Maximum number of creeper pixels damaged per shot |
- | ? | + | ?shot_damage_distance (int) |
- | : | + | :Maximum damage radius of shots in map pixels |
- | ? | + | ?shot_damage (int) |
- | : | + | :Damage to each pixel of creeper (negative values damage creeper, positive values damage anticreeper; |
+ | ? | ||
+ | :Damage to each pixel of living digitalis per shot (damage is always inflicted in a 5x5 pixel square centered on the point of impact, regardless of shot_damage_count or shot_damage_distance) | ||
+ | ? | ||
+ | :0 Means for the cannon shot to not hit any physics colliders. 1 or 2 specify which type pf colliders to hit. The " | ||
+ | ? | ||
+ | :The amount of internal health damage to do to a unit when a shot hits a collider. | ||
+ | ? | ||
+ | :If the cannon is enabled. | ||
+ | ? | ||
+ | :The preferred order to look for enemy targets. 0 or 1 for Creeper or Digitalis respectively. |