This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ixe:features:units:cbomb [2024/12/05 10:23] – created Grabz | ixe:features:units:cbomb [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
{{ unit_cbomb.png | {{ unit_cbomb.png | ||
Line 5: | Line 5: | ||
===== Unit Stats ===== | ===== Unit Stats ===== | ||
- | * Requires | + | * Requires |
+ | * Maximum ammo capacity of 250. | ||
* Fits in a box of 20 by 21 terrain pixels. | * Fits in a box of 20 by 21 terrain pixels. | ||
Line 18: | Line 19: | ||
===== Spoilers ===== | ===== Spoilers ===== | ||
<hidden Unit JSON> | <hidden Unit JSON> | ||
- | (Unit JSON) | + | <code javascript> |
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | {" | ||
+ | ], | ||
+ | " | ||
+ | {" | ||
+ | ], | ||
+ | " | ||
+ | {" | ||
+ | ] | ||
+ | } | ||
+ | </ | ||
+ | The associated cbomb.irpl script: | ||
+ | < | ||
+ | $RANGE:30 | ||
+ | |||
+ | if (<-armed !) | ||
+ | if (GetAmmo(self) GetMaxAmmo(self) >=) | ||
+ | SetActive(< | ||
+ | true -> | ||
+ | endif | ||
+ | endif | ||
+ | |||
+ | :Awake | ||
+ | GetChild(self " | ||
+ | false -> | ||
+ | |||
+ | : | ||
+ | if (GetAmmo(self) GetMaxAmmo(self) >=) | ||
+ | GetAllPixelCount(self) -> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | if (< | ||
+ | 0 -> | ||
+ | else | ||
+ | < | ||
+ | endif | ||
+ | |||
+ | # | ||
+ | # | ||
+ | GetPosition(self) ->pos | ||
+ | ConvertCreeperToAC(< | ||
+ | endif | ||
+ | </ | ||
</ | </ | ||
\\ | \\ | ||
{{page> | {{page> |