248 * `X` and `Y`: Position of the spinning arrows (visual effect only) |
248 * `X` and `Y`: Position of the spinning arrows (visual effect only) |
249 |
249 |
250 ==== `gtTardis` ==== |
250 ==== `gtTardis` ==== |
251 A !TimeBox. It works in several phases and an internal timer. |
251 A !TimeBox. It works in several phases and an internal timer. |
252 |
252 |
253 * `Pos`: Current phase. The value `4` is used when the !TimeBox is currently time-travelling (has completely turned invisible). |
253 * `Pos`: Current phase. |
254 * `Timer`: Has several meanings, depending on `Pos`. Here's the most imporant one, for `Pos` of `4`: A timer (in milliseconds) containing the remaining time until the !TimeBox returns. The !TimeBox returns when `Timer` reaches 0. Hedgewars decreases the timer only while the same team is playing |
254 * `1`: Appearing |
|
255 * `2`: Pause (phase in which hedgehog walks in or out) |
|
256 * `3`: Disappearing |
|
257 * `4`: Time-travelling/away (has completely turned invisible) |
|
258 * `Timer`: Has several meanings, depending on the value of `Pos`: |
|
259 * `1`: `Timer` is unused |
|
260 * `2`: `Timer` increases each tick until `Timer > 2000` (plus a small delay), after which `Pos` advances to `3` |
|
261 * `3`: `Timer` is unused |
|
262 * `4`: `Timer` contains remaining time until the !TimeBox returns. The !TimeBox returns when `Timer` reaches 0. Hedgewars decreases the timer only while the same team is playing |
|
263 * `Power`: Used to store the fade-in/fade-out animation state, depending on current value of `Pos`: |
|
264 * `1`: `Power` increases by 1 every 32 ticks, until it reaches 255, at which `Pos` advances to `2` |
|
265 * `2`: `Power` is unused |
|
266 * `3`: `Power` decreases by 1 every 32 ticks, until it reaches 0, at which `Pos` advances to `4`. If the timebox is starting the time-travel, `Timer` is set to a random value (for the return time). It the timebox was returning, the timebox gear is deleted after this |
|
267 * `4`: `Power` is unused |
255 * `Tint`: RGBA color (default: clan color) |
268 * `Tint`: RGBA color (default: clan color) |
256 |
269 * `Tag`: Will be set to 1 if the hog dies, took damage or moved before it could enter the !TimeBox. If this happens, using the timebox will fail and the hedgehog won't go into time-travel |
257 Note: This section is incomplete, not all phases are documented yet. |
|
258 |
270 |
259 ==== `gtTeleport` ==== |
271 ==== `gtTeleport` ==== |
260 Teleportation. |
272 Teleportation. |
261 |
273 |
262 === Weapons and main projectiles === |
274 === Weapons and main projectiles === |