author | Wuzzy |
Thu, 27 Apr 2017 23:39:49 +0100 | |
changeset 1005 | 02833f7365e4 |
parent 1002 | 2eb2f6edf3a8 |
child 1025 | e6c3e90f2373 |
permissions | -rw-r--r-- |
426 | 1 |
#summary List of all gear types |
2 |
||
737 | 3 |
= Gear types = |
4 |
||
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
5 |
This is a list and overview of all gear types. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
6 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
7 |
This page is split in two parts: The first part is a short list, the second part gives a longer description for all gear types and also describes the meaning of the gear values (such as timer, pos, health, etc.). |
425
ae373695ee1e
Add columns for pos, timer and health (mostly only contain TODOs for now).
almikes@aol.com
parents:
424
diff
changeset
|
8 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
9 |
Please note this page is still a work in progess. The categories presented here are purely for a better overview here; they do not neccessarily reflect anything in the actual game’s source code. |
420
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
10 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
11 |
A “TODO” means that this particular section is not yet finished and may be not accurate. |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
12 |
|
703 | 13 |
<wiki:toc max_depth="3" /> |
702 | 14 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
15 |
== List of gear types == |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
16 |
This is a short overview and a brief description of all gears. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
17 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
18 |
=== Land objects === |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
19 |
|| *Gear type* || *Description* || |
846 | 20 |
|| [GearTypes#gtCase `gtCase`] || An ammo, utility or health crate || |
847 | 21 |
|| [GearTypes#gtExplosives `gtExplosives`] || An explosive barrel || |
22 |
|| [GearTypes#gtFlake `gtFlake`] || A snowflake or a land spray flake || |
|
23 |
|| [GearTypes#gtFlame `gtFlame`] || A flame || |
|
24 |
|| [GearTypes#gtGrave `gtGrave`] || A grave || |
|
25 |
|| [GearTypes#gtHedgehog `gtHedgehog`] || A hedgehog || |
|
26 |
|| [GearTypes#gtPortal `gtPortal`] || A portal from the portable portal device || |
|
27 |
|| [GearTypes#gtTarget `gtTarget`] || A target || |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
28 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
29 |
=== Utilities === |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
30 |
|| *Gear type* || *Description* || |
847 | 31 |
|| [GearTypes#gtGirder `gtGirder`] || An attempt to place a construction or rubber || |
32 |
|| [GearTypes#gtJetpack `gtJetpack`] || A flying saucer || |
|
33 |
|| [GearTypes#gtLandGun `gtLandGun`] || The land spray tool || |
|
848 | 34 |
|| [GearTypes#gtParachute `gtParachute`] || A parachute || |
847 | 35 |
|| [GearTypes#gtResurrector `gtResurrector`] || Resurrection || |
36 |
|| [GearTypes#gtRope `gtRope`] || A rope || |
|
37 |
|| [GearTypes#gtSwitcher `gtSwitcher`] || Switch hedgehog || |
|
38 |
|| [GearTypes#gtTardis `gtTardis`] || A !TimeBox || |
|
39 |
|| [GearTypes#gtTeleport `gtTeleport`] || Teleportation || |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
40 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
41 |
=== Weapons and main projectiles === |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
42 |
|| *Gear type* || *Description* || |
847 | 43 |
|| [GearTypes#gtAirAttack `gtAirAttack`] || The airplane of an airborne attack || |
44 |
|| [GearTypes#gtAirMine `gtAirMine`] || An air mine || |
|
45 |
|| [GearTypes#gtBallGun `gtBallGun`] || A ballgun || |
|
46 |
|| [GearTypes#gtBee `gtBee`] || Homing bee || |
|
47 |
|| [GearTypes#gtBirdy `gtBirdy`] || Birdy || |
|
48 |
|| [GearTypes#gtBlowTorch `gtBlowTorch`] || A blowtorch || |
|
49 |
|| [GearTypes#gtClusterBomb `gtClusterBomb`] || A cluster bomb || |
|
50 |
|| [GearTypes#gtCake `gtCake`] || A cake || |
|
51 |
|| [GearTypes#gtDEagleShot `gtDEagleShot`] || A shot from a Desert Eagle || |
|
52 |
|| [GearTypes#gtDrill `gtDrill`] || Drill rocket || |
|
1002 | 53 |
|| [GearTypes#gtDuck `gtDuck`] || A rubber duck (0.9.23) || |
847 | 54 |
|| [GearTypes#gtDynamite `gtDynamite`] || A dynamite || |
55 |
|| [GearTypes#gtFirePunch `gtFirePunch`] || Shoryuken || |
|
56 |
|| [GearTypes#gtFlamethrower `gtFlamethrower`] || A flamethrower || |
|
57 |
|| [GearTypes#gtGasBomb `gtGasBomb`] || An old limburger || |
|
58 |
|| [GearTypes#gtGrenade `gtGrenade`] || A grenade || |
|
59 |
|| [GearTypes#gtHammer `gtHammer`] || A gear dealing hammer damage || |
|
60 |
|| [GearTypes#gtHellishBomb `gtHellishBomb`] || A hellish hand-grenade || |
|
61 |
|| [GearTypes#gtIceGun `gtIceGun`] || A freezer || |
|
62 |
|| [GearTypes#gtKamikaze `gtKamikaze`] || An ongoing kamikaze || |
|
63 |
|| [GearTypes#gtKnife `gtKnife`] || A cleaver || |
|
64 |
|| [GearTypes#gtPiano `gtPiano`] || Piano from piano strike || |
|
65 |
|| [GearTypes#gtPickHammer `gtPickHammer`] || A pickhammer || |
|
66 |
|| [GearTypes#gtRCPlane `gtRCPlane`] || A RC plane || |
|
67 |
|| [GearTypes#gtMolotov `gtMolotov`] || A molotov cocktail || |
|
68 |
|| [GearTypes#gtMortar `gtMortar`] || A mortar || |
|
69 |
|| [GearTypes#gtMine `gtMine`] || A mine || |
|
70 |
|| [GearTypes#gtSeduction `gtSeduction`] || Seduction || |
|
71 |
|| [GearTypes#gtShell `gtShell`] || A bazooka shell (projectile) || |
|
72 |
|| [GearTypes#gtShotgunShot `gtShotgunShot`] || A shot from a shotgun || |
|
73 |
|| [GearTypes#gtShover `gtShover`] || Used by baseball bat || |
|
74 |
|| [GearTypes#gtSineGunShot `gtSineGunShot`] || A shot from the sine gun || |
|
75 |
|| [GearTypes#gtSMine `gtSMine`] || A sticky mine || |
|
76 |
|| [GearTypes#gtSniperRifleShot `gtSniperRifleShot`] || A shot from the sniper rifle || |
|
77 |
|| [GearTypes#gtSnowball `gtSnowball`] || A mudball || |
|
78 |
|| [GearTypes#gtWatermelon `gtWatermelon`] || A watermelon bomb, still intact || |
|
79 |
|| [GearTypes#gtWhip `gtWhip`] || A whip || |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
80 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
81 |
=== Secondary projectiles === |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
82 |
|| *Gear type* || *Description* || |
847 | 83 |
|| [GearTypes#gtAirBomb `gtAirBomb`] || A bomb from the air attack or the RC plane || |
84 |
|| [GearTypes#gtBall `gtBall`] || A ball from the ball gun || |
|
85 |
|| [GearTypes#gtCluster `gtCluster`] || A cluster from the cluster bomb or the mortar || |
|
86 |
|| [GearTypes#gtEgg `gtEgg`] || An egg from Birdy || |
|
87 |
|| [GearTypes#gtHammerHit `gtHammerHit`] || A hammer digging into land || |
|
88 |
|| [GearTypes#gtMelonPiece `gtMelonPiece`] || A cluster from a watermelon bomb || |
|
89 |
|| [GearTypes#gtNapalmBomb `gtNapalmBomb`] || A bomb from the napalmn strike || |
|
90 |
|| [GearTypes#gtPoisonCloud `gtPoisonCloud`] || A poisonous cloud || |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
91 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
92 |
=== Other === |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
93 |
|| *Gear type* || *Description* || |
847 | 94 |
|| [GearTypes#gtAddAmmo `gtAddAmmo`] || Adds a weapon or utilty to a hedgehog. || |
95 |
|| [GearTypes#gtATStartGame `gtATStartGame`] || Created at the start of the game. || |
|
96 |
|| [GearTypes#gtATFinishGame `gtATFinishGame`] || Created at the end of the game. Fades out the screen and exits the game. || |
|
97 |
|| [GearTypes#gtGenericFaller `gtGenericFaller`] || TODO || |
|
98 |
|| [GearTypes#gtWaterUp `gtWaterUp`] || Causes water to rise. || |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
99 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
100 |
== Long descriptions and values == |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
101 |
This section gives longer description of the various gear types and how their values (i.e. tag, pos, timer, health, etc.) are interpreted. The gear values are pretty chaotic, so they are described for each gear seperately. Use the various setter and getter functions for gears to modifiy the gear values. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
102 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
103 |
In Lua, use the functions `GetGearPos`, `SetGearPos`, `GetTag`, `SetTag`, `GetTimer`, `SetTimer`, `GetHealth`, `SetHealth`, `GetFlightTime`, `SetFlightTime`, `GetGearValues` and `SetGearValues` to query or modify the gear values. |
707 | 104 |
Note: The gear value “`Boom`” will be introduced in Hedgewars 0.9.23. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
105 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
106 |
=== Land objects === |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
107 |
This is a list of gears which usually stay on the land for a long time and stay for several rounds and can’t normally directly placed by players. |
420
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
108 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
109 |
==== `gtCase` ==== |
880 | 110 |
An ammo, utility, health or even a fake crate. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
111 |
|
882 | 112 |
If the crate has just been collected, the gear message flag `gmDestroy` will be set before `onGearDelete` is called. |
879 | 113 |
|
114 |
* `Pos`: Crate type: 1=ammo crate, 2=health crate, 4=utility crate (also see below) |
|
699 | 115 |
* `Tag`: Used for the appear animation |
116 |
* `Health`: Amount of health contained in a health crate |
|
707 | 117 |
* `Boom`: Explosion size and damage (default: 25) |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
118 |
|
879 | 119 |
We recommend you to use `SpawnAmmoCrate` and the like to crate crate gears instead of `AddGear`. Also note that `SpawnAmmoCrate` and `SpawnUtilityCrate` are the only way to set a crate's ammo in Lua, it can not be changed or read afterwards. |
120 |
||
882 | 121 |
Advanced crate types: If you just care about normal crates, the values 1, 2 and 4 mentioned above are all you need to know. But Hedgewars supports a few crate variants which can be spawned with `SpawnFakeAmmoCrate` and the like. The `Pos` parameter is in reality a sum of several flags which need to be added up for the final type. |
879 | 122 |
|| *Pos flag* || *Meaning* || |
123 |
|| `0x1` || Ammo crate || |
|
124 |
|| `0x2` || Health crate || |
|
125 |
|| `0x4` || Utility crate || |
|
126 |
|| `0x8` || Fake crate, looks like a normal crate but does not actually contain health or ammo || |
|
880 | 127 |
|| `0x10` || Booby trap: When the player collects this crate it will explode || |
879 | 128 |
|| `0x20` || Poison trap: When the player collects this crate the player will be poisoned || |
129 |
||
130 |
All crates *must* have exactly one of the flags `0x1`, `0x2` or `0x4` set. Everything else can be combined at will. |
|
131 |
||
132 |
Examples: |
|
882 | 133 |
|
134 |
* Pos = 0x1: Ammo crate |
|
135 |
* Pos = 0x9: Fake ammo crate (0x1 + 0x8) |
|
136 |
* Pos = 0x2A: Fake health crate with poison trap (0x2 + 0x8 + 0x20) |
|
879 | 137 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
138 |
==== `gtExplosives` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
139 |
An explosive barrel. It has its own invisible health, like a hedgehog. On low health levels smoke comes out of the barrel. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
140 |
|
699 | 141 |
* `Health`: “health” of the barrel: Starts at 60, explodes at 0. |
707 | 142 |
* `Boom`: Explosion size and damage (default: 75) |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
143 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
144 |
==== `gtFlake` ==== |
850 | 145 |
A little object which will, when colliding with the terrain, become part of the terrain. It is either a snowflake generated by the theme (examples are the Snow and Christmas themes) or a flake created by a land spray ([GearTypes#gtLandGun `gtLandGun`]). |
712 | 146 |
|
147 |
If the gear state flag `gsttmpFlag` is set, it is a flake from a land spray, otherwise, it is a snowflake. |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
148 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
149 |
==== `gtFlame` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
150 |
A single flame. |
714 | 151 |
In the main game, there are two kinds of flames: Sticky ones and non-sticky ones. Non-sticky ones will quickly burn through land and are guaranteed to be destroyed at the end of a turn. Sticky flames may live through multiple turns and burn very slowly through land. Sticky flames die based on time. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
152 |
|
714 | 153 |
Sticky flames have the gear state flag `gsttmpFlag` set, non-sticky ones haven't. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
154 |
|
714 | 155 |
* `Tag`: Current animation frame (0-32) |
156 |
* `Health`: Size of the flame. Non-sticky flames starts at 5 (largest) and become smaller as they destroy land and damage gears. All flames die when they reach a health of 0. |
|
157 |
* `FlightTime`: If set to `0`, this flame can damage hedgehogs and other gears even in mid-air. Otherwise, flames don't do damage while they are still falling. By default, the `FlightTime` is a huge non-zero value. |
|
970 | 158 |
* `Boom`: Damage and size of destroyed land (default: 2). Sticky flames always deal `Boom` damage, non-sticky flames deal either `Boom` or sometimes deal 3 times this value as damage. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
159 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
160 |
==== `gtGrave` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
161 |
A grave from a dead hedgehog. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
162 |
|
711 | 163 |
* `Health`: If 0, it is not being resurrected. With larger values, it is being resurrected, and the value stands for amount of health the owner of this grave has received so far. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
164 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
165 |
==== `gtHedgehog` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
166 |
A hedgehog. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
167 |
|
780 | 168 |
Basic attributes are: |
169 |
||
699 | 170 |
* `Health`: Hedgehog's health. |
780 | 171 |
* `Tag`: Used for animation. `0` = no animation plays. Other value: animation plays |
794 | 172 |
* `Radius`: Collision radius. Default: 9 |
780 | 173 |
* `Boom`: Explosion size and damage caused when the hedgehog dies (default: 30) |
713 | 174 |
* `FlightTime`: Time (in milliseconds) since the hedgehog stood the last time on solid ground |
780 | 175 |
|
782 | 176 |
Hedgehogs also make heavy use of the gear state, see [States]. [GearMessages Gear messages] are used for controlling a hedgehogs movement and actions (e.g. moving left, attacking, jumping, etc.) |
780 | 177 |
|
782 | 178 |
Please note that hedgehogs have also many other attributes and functions which are specific to hedgehogs only (like name, team name, hat, etc.). You can find many hedgehog-related functions in LuaAPI. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
179 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
180 |
==== `gtPortal` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
181 |
A portal from the portable portal device. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
182 |
|
699 | 183 |
* `Tag`: Portal state. 0=orange flying, 1=orange placed, 2=blue flying, 3=blue placed |
184 |
* `Timer`: Remaining existance time (portals will disappear after end of turn). |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
185 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
186 |
==== `gtTarget` ==== |
710 | 187 |
A target, useful in target practice and similar missions. This is a simple gear which will fall straight down and is destroyed by any form of damage, no matter how small. It is not affected by wind. |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
188 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
189 |
=== Utilities === |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
190 |
The gears used by various utilities. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
191 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
192 |
==== `gtGirder` ==== |
847 | 193 |
This gear is created when a player tried to place construction or rubber somewhere. Placement may or may not have been successful. |
795 | 194 |
|
847 | 195 |
* `State`: Orientation and size coded as a number. See Lua API documentation on `onGirderPlacement` or `onRubberPlacement` for the meaning of the number. |
795 | 196 |
|
197 |
If you expect a successful placement including information regarding building type, position and orientation, use the functions `onGirderPlacement` and `onRubberPlacement`, respectively. |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
198 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
199 |
==== `gtJetpack` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
200 |
A flying saucer. Its fuel is stored in `Health` and starts at 2000, which stands for 100% fuel. The fuel value is reduced whenever the player taps one of the direction keys. The up direction costs 50 fuel and the left and right directions cost 10 fuel. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
201 |
|
699 | 202 |
* `Health`: Amount of remaining fuel. `2000` denotes 100% fuel. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
203 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
204 |
==== `gtLandGun` ==== |
847 | 205 |
The land spray tool. Creates [GearTypes#gtFlake `gtFlake`] gears. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
206 |
|
699 | 207 |
* `Tag`: Spitting power of land spray (`5`-`20`). |
711 | 208 |
* `Health`: Amount of fuel. `1000` denotes 100% fuel. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
209 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
210 |
==== `gtParachute` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
211 |
A parachute. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
212 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
213 |
==== `gtResurrector` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
214 |
A hedgehog which does perform a resurrection. |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
215 |
|
699 | 216 |
* `Radius`: Effect range of resurrection in pixels (default: 100). Note that this does not change the drawn circle |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
217 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
218 |
==== `gtRope` ==== |
856 | 219 |
A rope. There can only be one rope gear at once. |
220 |
||
221 |
The gear state flag `gstCollision` is set when the previous rope shot has hit something and is reset each time a new hook it fired. |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
222 |
|
856 | 223 |
* `X` and `Y`: Position of the nearest “bending point” of the rope (nearest to the rope gun), or the rope hook if rope does not touch anything |
224 |
* `dX`: sine of rope angle, number between -1000000 and 1000000 (correspond to -180° to 180°) |
|
879 | 225 |
* `dY`: negative cosine of rope angle, expressed as number between 0 and 1000000 |
856 | 226 |
* `Elasticity`: If the hog is attached to a rope, or is busy firing one, the elasticity of the rope will be non-rezo. A non-zero number holds the current retracted length of the rope from the nearest “bending point” or the hook, times 10000 |
227 |
* `Friction`: Holds the maximum remaning length of the rope measured from the nearest “bending point” or the hook, times 10000. Set this after rope creation to manually set the rope length individually. Note you can set `RopePercent` in `onGameInit` to set the rope length for all ropes at once |
|
699 | 228 |
* `Tag` Rope style: `0`=classic white segments (default), `1`=simple line which can be colored with `Tint`. |
229 |
* `Tint`: Rope color as RGBA. This only works if `Tag` equals `1` |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
230 |
|
879 | 231 |
Note: `dX` and `dY` are returned by the `GetGearVelocity` function. |
232 |
||
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
233 |
==== `gtSwitcher` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
234 |
Switch hedgehog. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
235 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
236 |
==== `gtTardis` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
237 |
A !TimeBox. It works in several phases and an internal timer. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
238 |
|
699 | 239 |
* `Pos`: Current phase. The value `4` is used when the !TimeBox is currently time-travelling (has completely turned invisible). |
240 |
* `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 |
|
241 |
* `Tint`: RGBA color (default: clan color) |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
242 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
243 |
TODO: Add more information for the other phases. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
244 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
245 |
==== `gtTeleport` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
246 |
Teleportation. |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
247 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
248 |
=== Weapons and main projectiles === |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
249 |
Gears of weapons which can be directly used or launched by the players. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
250 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
251 |
==== `gtAirAttack` ==== |
851 | 252 |
The airplane of an airborne attack. It can drop either missiles ([GearTypes#gtAirBomb `gtAirBomb`]), mines ([GearTypes#gtMine `gtMine`]), napalm missiles ([GearTypes#gtNapalmBomb `gtNapalmBomb`]) or drill rockets ([GearTypes#gtDrill `gtDrill`]) |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
253 |
|
699 | 254 |
* `Pos`: Type of airborne attack: `0` = Air Attack, `1` = Mine Strike, `2` = Napalm, `3` = Drill Strike |
255 |
* `Tag`: Direction of airplane: `-1` = left, `1` = right |
|
256 |
* `Health`: Number of bombs/mines/drills left (default: 6) |
|
257 |
* `Damage`: Distance (in pixels) between two dropped bombs/mines/drills (default: 30) |
|
258 |
* `Tint`: RGBA color of airplane (default: clan color) |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
259 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
260 |
==== `gtAirMine` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
261 |
An air mine. It seeks nearby hedgehogs. If it is in explosion range, its timer activates and will become lower. If the timer reaches 0 and is still in explosion range of a hedgehog, it explodes. But it does not explode if it is out of range, after which the timer is reset and the air mine can be activated again. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
262 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
263 |
To properly set the timer of an air mine, you must set both `Timer` and `WDTimer`. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
264 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
265 |
If the gear state flag `gstAttacking` is set, the air mine is activated and is about to explode. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
266 |
If the gear state flag `gstChooseTarget` is set, the air mine is currently hunting a hedgehog. This should only be read by Lua scripts, setting it from a Lua script has no effect. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
267 |
|
699 | 268 |
* `Pos`: Air friction. Higher values mean slower movement. |
269 |
* `Timer`: Time left until possible detonation (in milliseconds). Default value depends on game scheme. |
|
270 |
* `WDTimer`: Initial timer value (in milliseconds) of an activated air mine. The `Timer` is reset to this value if the air mine gets re-activated. |
|
969 | 271 |
* `Angle`: Range in which it seeks and follows hedgehogs, in pixels. If a hedgehog is within this range, the air mine will start following. Set it to `0xFFFFFFFF` for an infinite seek range. Set to `0` to disable following. This also indirectly sets the escape distance which hog need to reach for the air mine to stop following. It is 6 times this value. Default: 175 (and an implied default escape distance of 1050) |
699 | 272 |
* `Power`: Speed in which it seeks and follows hedgehogs. |
707 | 273 |
* `Karma`: Explosion size and damage (in 0.9.22). Default: 30 |
274 |
* `Boom`: Explosion size and damage (in 0.9.23). Default: 25 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
275 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
276 |
==== `gtBallGun` ==== |
847 | 277 |
A ballgun. It throws 51 balls ([GearTypes#gtBall `gtBall`]) by default. This weapon is timer-based. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
278 |
|
699 | 279 |
* `Timer`: Remaining usage time (in ms), default is 5001. One ball is fired every 100ms. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
280 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
281 |
==== `gtBee` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
282 |
A homing bee. The bee works in up to three phases: The first phase is the pre-homing phase lasts 0.5 seconds in which the bee behaves like a normal projectile. In the second phase the bee actually starts homing. This phase can last up to 5 seconds. If the bee did not explode in this time, the bee goes into post-homing phase, stops homing and simply falls. For the first two phases this gear uses `Timer`. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
283 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
284 |
This gear does not directly store in which phase the bee currently is in, so it is a bit tricky to modify the timer values. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
285 |
If you just want to modify the pre-homing time, simply set the `Timer` after creation. But if you want to modify the duration of the homing phase, you have somehow track the bee gear and wait until the `Timer` first reaches 0, so you know the bee will now get into its second phase. Now wait one more tick (or more) and set `Timer` to set the maximum flight time in the homing phase. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
286 |
|
699 | 287 |
* `Tag`: Whether the bee is underwater (`0` = no, `1` = yes). This is used for the sound effect. |
288 |
* `Timer`: Remaining time (in milliseconds) either of the pre-homing phase or the homing phase. |
|
707 | 289 |
* `Boom`: Explosion size and damage. Default: 50 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
290 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
291 |
==== `gtBirdy` ==== |
847 | 292 |
Birdy. Transports hogs and can drop eggs ([GearTypes#gtEgg `gtEgg`]). Birdy works like a flying saucer and depletes energy (stored in `Health`) whenever you tap one of the direction keys. Flapping left and right costs 10 energy, flapping upwards costs 50 energy. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
293 |
|
699 | 294 |
* `Tag`: Facing direction (`-1` = left, `1` = right) |
295 |
* `Health`: “Flapping energy” left, default is 2000 |
|
296 |
* `FlightTime`: Number of eggs left (default: 2) |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
297 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
298 |
==== `gtBlowTorch` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
299 |
A blowtorch. This utility is entirely timer-based. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
300 |
|
699 | 301 |
* `Timer`: Remaining usage time in ms, default is 7500. |
794 | 302 |
* `Radius`: Hit radius. Things inside this radius will be hit. Default: 15 |
707 | 303 |
* `Boom`: Damage caused when burning a hedgehog or an object. Default: 2 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
304 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
305 |
==== `gtClusterBomb` ==== |
847 | 306 |
A cluster bomb. Spawns several [GearTypes#gtCluster `gtCluster`] gears on detonation. |
707 | 307 |
|
308 |
* `Boom`: Explosion size and damage. Default: 20 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
309 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
310 |
==== `gtCake` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
311 |
A cake. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
312 |
|
699 | 313 |
* `Tag`: A timer used for several animations. The final animation (sit down) will cause the cake to explode when the tag reaches `2250`. |
314 |
* `Health`: Remaining walking time, default is 2048. Note: the cake uses its own time unit. |
|
707 | 315 |
* `Boom`: Explosion size and damage. Default: 75 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
316 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
317 |
==== `gtDEagleShot` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
318 |
A shot from a Desert Eagle. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
319 |
|
699 | 320 |
* `Health`: How deep the bullet digs into land. Default: 50. |
707 | 321 |
* `Boom`: Damage. Default: 7 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
322 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
323 |
==== `gtDrill` ==== |
854 | 324 |
A drill rocket. This is either a launched drill rocket or a small and weaker drill rocket from the drill strike ([GearTypes#gtAirAttack `gtAirAttack`]). |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
325 |
|
716 | 326 |
The type of drill rocket is stored in the gear state. If `gsttmpFlag` is set (e.g. {{{band(GetState(yourDrillGear), gsttmpFlag) == 0}}} evaluates to `true`), it is a launched drill rocket, otherwise it is a drill rocket from the drill strike. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
327 |
|
699 | 328 |
* `Tag`: Used for drill strike. If `1`, then first impact occoured already. |
329 |
* `Timer`: Detonation timer (in ms) |
|
707 | 330 |
* `Boom`: Explosion size and damage. Default: 50 for launched drill rocket, 30 for drill rocket from drill strike |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
331 |
|
999 | 332 |
==== `gtDuck` ==== |
1005 | 333 |
A rubber duck, added in 0.9.23. Explodes on collision. Swims on water and is affected by wind as soon it is on the water. It is also able to swim on the Sea edges, it simply turns around by 90 degrees. It also has a timer to avoid the duck existing forever. |
998 | 334 |
|
335 |
* `Pos`: The movement state. `0` when in air, between `1` and `4` when swimming, between `5` and `8` when underwater |
|
336 |
* `0`: In air |
|
337 |
* `1`: Swimming on the bottom water |
|
338 |
* `2`: Swimming on the bottom water (mirrored) |
|
339 |
* `3`: Swimming on the left Sea edge |
|
340 |
* `4`: Swimming on the right Sea edge |
|
341 |
* `5`: Underwater in the bottom water |
|
342 |
* `6`: Underwater in the bottom water (mirrored) |
|
343 |
* `7`: Underwater in the left Sea edge |
|
344 |
* `8`: Underwater in the right Sea edge |
|
345 |
* `Tag`: Facing direction. `1` for right, `-1` for left. |
|
1005 | 346 |
* `Timer`: Detonation timer (in ms), starts after dropping. Default: 15000 |
998 | 347 |
* `Boom`: Explosion size and damage. Default: 40 |
348 |
* `Damage`: Speed factor when swimming on water, multiplied with wind speed. Default: 500 |
|
349 |
* `Karma`: Distance from water when swimming. Default: 24 |
|
350 |
* `Radius`: Collision radius. Default: 9 |
|
351 |
||
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
352 |
==== `gtDynamite` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
353 |
A dynamite. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
354 |
Note: The current animation does not support denotation times above 5 seconds. If you want to have larger times, you have to provide your own dynamite sprite in a sidecar HWP or find another workaround. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
355 |
|
699 | 356 |
* `Tag`: Displayed animation frame. |
357 |
* `Timer`: Detonation timer (in ms). Default: 5000. |
|
707 | 358 |
* `Boom`: Explosion size and damage. Default: 75 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
359 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
360 |
==== `gtFirePunch` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
361 |
A hedgehog which performs the Shoryuken attack. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
362 |
|
699 | 363 |
* `Tag`: Current Y coordinate of the hedgehog. |
793
a9de86e466e2
GearTypes: Hit radii of gtWhip, gtFirePunch, gtShover
Wuzzy
parents:
792
diff
changeset
|
364 |
* `Radius`: Hit radius. Default: 15 |
707 | 365 |
* `Boom`: Damage. Default: 30 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
366 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
367 |
==== `gtFlamethrower` ==== |
847 | 368 |
A flamethrower creates both sticky and non-sticky [GearTypes#gtFlame `gtFlame`] gears. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
369 |
|
699 | 370 |
* `Tag`: Current spitting power of flamethrower (`5`-`20`) |
371 |
* `Health`: Remaining fuel. `500` is for 100% fuel. |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
372 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
373 |
==== `gtGasBomb` ==== |
847 | 374 |
An old limburger. Will spawn several [GearTypes#gtPoisonCloud `gtPoisonCloud`] gears on detonation. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
375 |
|
699 | 376 |
* `Timer`: Detonation timer (in milliseconds). |
968 | 377 |
* `Boom`: Explosion size and damage. Default: 20 |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
378 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
379 |
==== `gtGrenade` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
380 |
A grenade. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
381 |
|
699 | 382 |
* `Timer`: Detonation timer (in milliseconds). |
707 | 383 |
* `Boom`: Explosion size and damage. Default: 50 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
384 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
385 |
==== `gtHammer` ==== |
847 | 386 |
A hammer attack. This gear is for determining which hedgehogs and objects to hit and to reduce health of anything hit. Hedgehogs, mines and barrels can be hit. See also [GearTypes#gtHammerHit `gtHammerHit`] for the digging part. |
707 | 387 |
|
388 |
* `Boom`: Damage denominator. The damage caused will be `(1/Boom)*health_of_victim`, e.g. if this value is `4` and the victim has 100 health, the hammer takes away 25 health (one quarter). Default: 3 normally (so one third of the health); 2 if Extra Damage is enabled (so one half of the health) |
|
792 | 389 |
* `Radius`: Stuff inside this radius will be hit and be subject to hammer damage and digging. Default: 20 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
390 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
391 |
==== `gtHellishBomb` ==== |
853 | 392 |
A hellish hand-grenade. It creates several sticky and non-sticky flames ([GearTypes#gtFlame `gtFlame`]) on detonation. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
393 |
|
699 | 394 |
* `Timer`: Detonation timer (in milliseconds). Default: 5000 |
707 | 395 |
* `Boom`: Explosion size and damage. Default: 90 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
396 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
397 |
==== `gtIceGun` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
398 |
A freezer. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
399 |
|
699 | 400 |
* `Health`: Remaining fuel. `1000` is for 100% fuel |
794 | 401 |
* `Radius`: Freeze radius; Objects and hogs will be frozen within the radius of the freezer beam impact location. Does not affect the size land which will be frozen. Default: 8 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
402 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
403 |
==== `gtKamikaze` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
404 |
A hedgehog which is doing a kamikaze attack. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
405 |
|
699 | 406 |
* `Health`: Remaining travel range. Default: 2048 |
855 | 407 |
* `Radius`: Hit radius. Objects and hogs within this distance of the kamikaze hog will be hit. Default: 20 |
707 | 408 |
* `Boom`: Damage of a hit and damage and explosion size of the final explosion. Default: 30 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
409 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
410 |
==== `gtKnife` ==== |
789 | 411 |
A cleaver. If the cleaver takes a lot of damage, it might fall down into the water (without colliding with the land) eventually. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
412 |
|
707 | 413 |
* `Boom`: Scaling value for the impact damage. The actual damage does not linearly scale. Default: 40000 |
789 | 414 |
* `Damage`: Holds the damage taken by the cleaver received in the current tick (damage taken *at once*). For each tick, `Damage` is first checked and then reset to 0. If the damage was greater than 30, then there is a chance the cleaver will drop, with the chance increasing with the damage. When `Damage` is over 100, the cleaver will drop for sure. |
707 | 415 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
416 |
==== `gtPiano` ==== |
707 | 417 |
A piano from piano strike. By default, a piano bounces up to 5 times on the terrain, causing 3 big explosions (80 damage each) per impact. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
418 |
|
707 | 419 |
* `Tag`: Number of remaining terrain bounces. If this number reaches 0, the piano will not collide anymore and directly fall into the water. Default: 5 |
420 |
* `Boom`: Explosion size and damage of a single explosion of a single impact. Default: 80 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
421 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
422 |
==== `gtPickHammer` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
423 |
A pickhammer. This gear is entirely timer-based. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
424 |
|
699 | 425 |
* `Timer`: Remaining usage time (in milliseconds). Default: 4000 |
794 | 426 |
* `Radius`: Width of dug land. Default: 10 |
707 | 427 |
* `Boom`: Damage per hit. Default: 6 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
428 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
429 |
==== `gtRCPlane` ==== |
847 | 430 |
An RC plane. It can drop missiles ([GearTypes#gtAirBomb `gtAirBomb`]). |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
431 |
|
857 | 432 |
* `Tag`: Initial flying direction, depends on the facing direction of the hedgehog which launched it. -1: left, 1: right. This is used for rendering. |
699 | 433 |
* `Timer`: Remaining fly time (in milliseconds). Default: 15000 |
434 |
* `Health`: Number of missiles on board. Default: 3 |
|
435 |
* `Tint`: RGBA color of RC plane (default: clan color) |
|
707 | 436 |
* `Boom`: Explosion size and damage when the RC plane crashes. Default: 25 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
437 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
438 |
==== `gtMolotov` ==== |
847 | 439 |
A molotov cocktail. Creates several flames ([GearTypes#gtFlame `gtFlame`]) on impact. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
440 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
441 |
==== `gtMortar` ==== |
847 | 442 |
A mortar. On impact it spawns a few [GearTypes#gtCluster `gtCluster`] gears. |
707 | 443 |
|
444 |
* `Boom`: Explosion size and damage of the main mortar projectile only. Default: 20 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
445 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
446 |
==== `gtMine` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
447 |
A land mine. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
448 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
449 |
If the gear state flag `gstAttacking` is set, mine has been activated and is about to explode (if it is not a dud). |
788 | 450 |
The game will decide whether a mine is a dud or not when the mine timer reaches 0. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
451 |
|
788 | 452 |
* `Timer`: Detonation timer (after activation). The initial value depends on the game settings. |
453 |
* `Health`: If `0`, mine is a dud, otherwise it is not a dud or has not been triggered yet. |
|
941 | 454 |
* `Tag`: (0.9.23) If `1`, mine timer will be random. |
827 | 455 |
* `Damage`: If mine has become a dud, this will contain the damage taken by the mine since it was a dud. It starts at 0 and the mine will explode when `Damage` is greater than 35. |
707 | 456 |
* `Boom`: Explosion size and damage. Default: 50 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
457 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
458 |
==== `gtSeduction` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
459 |
A hedgehog trying to seduce others. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
460 |
|
699 | 461 |
* `Radius`: Effect range of seduction in pixels. Default: 250. Note that this does not change the drawn circle |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
462 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
463 |
==== `gtShell` ==== |
699 | 464 |
A bazooka shell (projectile). |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
465 |
|
713 | 466 |
* `FlightTime`: Time since the bazooka has been launched |
707 | 467 |
* `Boom`: Explosion size and damage. Default: 50 |
468 |
||
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
469 |
==== `gtShotgunShot` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
470 |
A shot from a shotgun. It is invisible and only can be noticed by its effects. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
471 |
|
707 | 472 |
* `Boom`: Damage. Default: 25 |
473 |
||
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
474 |
==== `gtShover` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
475 |
Used by baseball bat. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
476 |
|
793
a9de86e466e2
GearTypes: Hit radii of gtWhip, gtFirePunch, gtShover
Wuzzy
parents:
792
diff
changeset
|
477 |
* `Radius`: Hit radius. Default: 20 |
707 | 478 |
* `Boom`: Damage. Default: 30 |
479 |
||
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
480 |
==== `gtSineGunShot` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
481 |
A shot from the sine gun. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
482 |
|
699 | 483 |
* `Radius`: The thickness of the sine gun shot. |
707 | 484 |
* `Boom`: Damage. Default: 35 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
485 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
486 |
==== `gtSMine` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
487 |
A sticky mine. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
488 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
489 |
If the gear state flag `gstAttacking` is set, the sticky mine has been activated and is about to explode. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
490 |
|
699 | 491 |
* `Timer`: Detonation timer after it was activated (in milliseconds). Default: 500 |
707 | 492 |
* `Boom`: Explosion size and damage. Default: 30 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
493 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
494 |
==== `gtSniperRifleShot` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
495 |
A shot from the sniper rifle. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
496 |
|
699 | 497 |
* `Health`: How deep the bullet digs into land. Default: 50 |
707 | 498 |
* `Boom`: Scaling value of the damage caused (not the actual damage). A higher value leads to higher damage. Default: 100000 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
499 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
500 |
==== `gtSnowball` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
501 |
A mudball. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
502 |
|
707 | 503 |
* `Boom`: Pushing power (just an arbitrary value for scaling). Default: 200000 |
504 |
||
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
505 |
==== `gtWatermelon` ==== |
847 | 506 |
A watermelon bomb, still intact. It spawns several [GearTypes#gtMelonPiece `gtMelonPiece`] gears when it explodes. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
507 |
|
699 | 508 |
* `Timer`: Detonation timer (in milliseconds). |
716 | 509 |
* `Boom`: Explosion size and damage. Default: 75 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
510 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
511 |
==== `gtWhip` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
512 |
A whip. |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
513 |
|
793
a9de86e466e2
GearTypes: Hit radii of gtWhip, gtFirePunch, gtShover
Wuzzy
parents:
792
diff
changeset
|
514 |
* `Radius`: Hit radius. Default: 20 |
707 | 515 |
* `Boom`: Damage. Default: 30 |
516 |
||
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
517 |
=== Secondary projectiles === |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
518 |
Gears for projectiles that can’t be directly fired but are generated by other weapon gears. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
519 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
520 |
==== `gtAirBomb` ==== |
847 | 521 |
A bomb from the air attack ([GearTypes#gtAirAttack `gtAirAttack`]) or the RC plane ([GearTypes#gtRCPlane `gtRCPlane`]). |
707 | 522 |
|
523 |
* `Boom`: Explosion size and damage. Default: 30 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
524 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
525 |
==== `gtBall` ==== |
849 | 526 |
A ball from the ball gun ([GearTypes#gtBallGun `gtBallGun`]). |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
527 |
|
699 | 528 |
* `Timer`: Detonation timer (in milliseconds). Default: 5000 |
707 | 529 |
* `Boom`: Explosion size and damage. Default: 40 |
699 | 530 |
* `Tag`: Color: `0`=red, `1`=green, `2`=cyan, `3`=yellow, `4`=violet, `5`=pink, `6`=orange, `7`=lime, `8`=white |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
531 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
532 |
==== `gtCluster` ==== |
847 | 533 |
A cluster from the cluster bomb ([GearTypes#gtClusterBomb `gtClusterBomb`]) or the mortar ([GearTypes#gtMortar `gtMortar`]). |
707 | 534 |
|
796
445168937988
GearTypes: Default Boom for gtMelonPiece and gtCluster
Wuzzy
parents:
795
diff
changeset
|
535 |
* `Boom`: Explosion size and damage. Default: 25 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
536 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
537 |
==== `gtEgg` ==== |
847 | 538 |
An egg from Birdy ([GearTypes#gtBirdy `gtBirdy`]) |
707 | 539 |
|
540 |
* `Boom`: Size of destroyed land and damage. Default: 10 |
|
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
541 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
542 |
==== `gtHammerHit` ==== |
847 | 543 |
Created when a hammer hit something. This gear will dig into the ground. See also [GearTypes#gtHammer `gtHammer`] for hammer damage. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
544 |
|
699 | 545 |
* `Timer`: How deep a successful hammer hit dig into land. 1 is the smallest possible depth. Using the value 0 will dig all the way to the water. Default: 125. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
546 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
547 |
==== `gtMelonPiece` ==== |
847 | 548 |
A cluster from a watermelon bomb ([GearTypes#gtWatermelon `gtWatermelon`]) |
707 | 549 |
|
796
445168937988
GearTypes: Default Boom for gtMelonPiece and gtCluster
Wuzzy
parents:
795
diff
changeset
|
550 |
* `Boom`: Explosion size and damage. Default: 75 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
551 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
552 |
==== `gtNapalmBomb` ==== |
847 | 553 |
A bomb from napalmn ([GearTypes#gtAirAttack `gtAirAttack`]), will burst into fire. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
554 |
|
699 | 555 |
* `Timer`: Detonation timer (in milliseconds). Default: 1000 |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
556 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
557 |
==== `gtPoisonCloud` ==== |
847 | 558 |
A poisonous cloud, makes hedgehogs sick on contact. Is normally created by [GearTypes#gtGasBomb `gtGasBomb`]. |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
559 |
|
699 | 560 |
* `Timer`: Remaining “life time” in milliseconds (default: 5000). Note that the current animation does not very well support timers larger than 5 seconds, and the animation is partly hardcoded. |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
561 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
562 |
=== Other === |
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
563 |
Gears which don't fit into any other category. |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
564 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
565 |
==== `gtAddAmmo` ==== |
847 | 566 |
Used to add some weapon or utilty to a hedgehog. The gear is added when a crate ([GearTypes#gtCase `gtCase`]) has been collected. |
420
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
567 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
568 |
==== `gtATStartGame` ==== |
777 | 569 |
This gear is created to mark the beginning of the game. It will cause a ticker message to be displayed (“Let's fight!”) and sets some internal stuff. |
607 | 570 |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
571 |
==== `gtATFinishGame` ==== |
778 | 572 |
This gear is created at the end of the game. The gear itself will fade out the screen and cause the game to be closed. Note: If you want to end the game early, we recommend to call the `EndGame` function instad of using this gear. |
777 | 573 |
|
574 |
* `Timer`: Fade-out countdown in milliseconds. Fade-out begins at 1000 and finishes at 0. |
|
698
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
575 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
576 |
==== `gtGenericFaller` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
577 |
TODO. The purpose of this gear is not clear yet. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
578 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
579 |
==== `gtWaterUp` ==== |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
580 |
Causes the water to rise. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
581 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
582 |
`Tag` contains the number of pixels the water still has to rise (default: 47). The gear will be removed when its `Tag` reaches the value 0. |
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
583 |
|
f84aa8f2b2cc
Complete rewrite of the page. Now every gear has a nice section
Wuzzy
parents:
635
diff
changeset
|
584 |
== Reference == |
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
585 |
For a current list of the gears look at `hedgewars/uTypes.pas` at |
700 | 586 |
the `TGearType` enumeration: |
852
efcc0feef9ec
GearTypes: Remove historic note from the stone age of Hedgewars
Wuzzy
parents:
851
diff
changeset
|
587 |
[https://hg.hedgewars.org/hedgewars/file/default/hedgewars/uTypes.pas#l92] |