author | Wuzzy |
Sun, 22 Nov 2015 12:00:12 +0000 | |
changeset 668 | bed61968313e |
parent 635 | b3c86fd0dbe0 |
child 698 | f84aa8f2b2cc |
permissions | -rw-r--r-- |
426 | 1 |
#summary List of all gear types |
2 |
||
425
ae373695ee1e
Add columns for pos, timer and health (mostly only contain TODOs for now).
almikes@aol.com
parents:
424
diff
changeset
|
3 |
This is a list of (hopefully) all gear types, along with a short description and the meaning of severval fields. |
ae373695ee1e
Add columns for pos, timer and health (mostly only contain TODOs for now).
almikes@aol.com
parents:
424
diff
changeset
|
4 |
|
ae373695ee1e
Add columns for pos, timer and health (mostly only contain TODOs for now).
almikes@aol.com
parents:
424
diff
changeset
|
5 |
The columns “Pos”, “Tag”, “Timer” and “Health” show the meaning of the gear’s field for the listed gear type. The word “ignored” means that the field in question is not relevant to gears of the gear type. See also `GetGearPos`, `SetGearPos`, `GetTag`, `SetTag`, `GetTimer`, `SetTimer`, `GetHealth`, `SetHealth` in [LuaAPI]. |
420
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
6 |
|
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
7 |
Please note this list is still mostly TODO. The categories presented here are purely for a better overview here; they do not neccessarily reflect anything in the actual game’s source code. |
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
8 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
9 |
== List of gear types == |
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
10 |
=== Land objects === |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
11 |
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
|
12 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
13 |
|| *Gear type* || *Description* || *Pos* || *Tag* || *Timer* || *Health* || |
606 | 14 |
|| `gtCase` || An ammo, utility or health crate || crate type: 1=ammo crate, 2=health crate, 4=utility crate || _ignored_ || Used for appear animation || Amount of health contained in a health crate || |
15 |
|| `gtExplosives` || An explosive barrel || _ignored_ || _ignored_ || _ignored_ || Barrel health; takes damage like a hedgehog. Starts at 60, explodes at 0. || |
|
601 | 16 |
|| `gtFlake` || A snowflake which might become part of the terrain || TODO || TODO || TODO || TODO || |
17 |
|| `gtFlame` || A flame || TODO || between 0-32 (TODO) || TODO || TODO || |
|
606 | 18 |
|| `gtGrave` || A grave from a dead hedgehog || _ignored_ || _ignored_ || _ignored_ || Used when being resurrected. || |
631 | 19 |
|| `gtHedgehog` || A hedgehog || TODO || used for animation. `0` = no animation plays. Other value: animation plays || TODO || Hedgehog's health || |
606 | 20 |
|| `gtPortal` || A portal from the portable portal device || _ignored_ || Portal state. 0=orange flying, 1=orange placed, 2=blue flying, 3=blue placed || Remaining existance time (portals will disappear after end of turn). || TODO || |
601 | 21 |
|| `gtTarget` || A target, useful in target practice missions || TODO || TODO || TODO || TODO || |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
22 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
23 |
=== Utilities === |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
24 |
A list of “utility” gears. |
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
25 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
26 |
|| *Gear type* || *Description* || *Pos* || *Tag* || *Timer* || *Health* || |
601 | 27 |
|| `gtGirder` || A girder (construction) || TODO || TODO || TODO || TODO || |
28 |
|| `gtJetpack` || A flying saucer || TODO || TODO || TODO || Amount of fuel. `2000` denotes 100% fuel. || |
|
29 |
|| `gtLandGun` || The land spray tool || TODO || power of land spray (`5`-`20`) || TODO || Amount of fuel. `1000` denotes 100% fuel. || |
|
30 |
|| `gtParachute` || A parachute || TODO || TODO || TODO || TODO || |
|
31 |
|| `gtResurrector` || Resurrection || TODO || TODO || TODO || TODO || |
|
607 | 32 |
|| `gtRope` || A rope || TODO || Rope style: 0=classic white segments, 1=simple line which can be colored with `SetGearValues` tint || TODO || TODO || |
601 | 33 |
|| `gtSwitcher` || Switch hedgehog || TODO || TODO || TODO || TODO || |
34 |
|| `gtTardis` || A !TimeBox || TODO || TODO || TODO || TODO || |
|
35 |
|| `gtTeleport` || Teleportation || TODO || TODO || TODO || TODO || |
|
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
36 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
37 |
=== Weapons and main projectiles === |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
38 |
List of weapons which can be directly used or launched by the players. |
602 | 39 |
If not noted otherwise, all times are in milliseconds. |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
40 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
41 |
|| *Gear type* || *Description* || *Pos* || *Tag* || *Timer* || *Health* || |
609 | 42 |
|| `gtAirAttack` || The airplane of an airborne attack || Type of airborne attack: 0=Air Attack, 1=Mine Strike, 2=Napalm, 3=Drill Strike || Direction of airplane (`-1` = left, `1` = right) || TODO || Number of bombs left (default: 6) || |
607 | 43 |
|| `gtAirMine` || An air mine || Air friction. Higher values mean slower movement || TODO || Detonation timer (after activation). || TODO || |
602 | 44 |
|| `gtBallGun` || A ballgun || TODO || TODO || Remaining usage time, default is 5001. One ball is fired every 100ms. || TODO || |
601 | 45 |
|| `gtBee` || Homing bee || TODO || wheather the bee is underwater (`0` = no, `1` = yes) || Used for pre-homing time and max. flight timer after started homing || TODO || |
602 | 46 |
|| `gtBirdy` || Birdy || TODO || facing direction (`-1` = left, `1` = right) || TODO || “Flapping energy” left, default is 2000. This “energy” works exactly like for the flying saucer. || |
601 | 47 |
|| `gtBlowTorch` || A blowtorch || TODO || TODO || Remaining usage time in ms, default is 7500. || TODO || |
48 |
|| `gtClusterBomb` || A cluster bomb || TODO || TODO || TODO || TODO || |
|
602 | 49 |
|| `gtCake` || A cake || TODO || A timer used for several animations. The final animation (sit down) will cause the cake to explode when the tag reaches `2250`. || TODO || Remaining walking time, default is 2048. Note: the cake uses its own time unit. || |
601 | 50 |
|| `gtDEagleShot` || A shot from a Desert Eagle || TODO || TODO || TODO || How deep the bullet digs into land. Default: 50. || |
51 |
|| `gtDrill` || Drill rocket || TODO || Used for drill strike. If `1`, then first impact occoured already || Detonation timer || TODO || |
|
603 | 52 |
|| `gtDynamite` || A dynamite || TODO || Displayed animation frame. || Detonation timer. Default: 5000 || TODO || |
601 | 53 |
|| `gtFirePunch` || Shoryuken || TODO || Y coordinate || TODO || TODO || |
54 |
|| `gtFlamethrower` || A flamethrower || TODO || power of flamethrower (`5`-`20`) || TODO || Remaining fuel. `500` is for 100% fuel. || |
|
55 |
|| `gtGasBomb` || An old limburger || TODO || TODO || Detonation timer. || TODO || |
|
56 |
|| `gtGrenade` || A grenade || TODO || TODO || Detonation timer. || TODO || |
|
57 |
|| `gtHammer` || A hammer || TODO || TODO || TODO || TODO || |
|
58 |
|| `gtHellishBomb` || A hellish hand-grenade || TODO || TODO || Detonation timer. Default: 5000 || TODO || |
|
59 |
|| `gtIceGun` || A freezer || TODO || TODO || TODO || Remaining fuel. `1000` is for 100% fuel || |
|
60 |
|| `gtKamikaze` || An ongoing kamikaze || TODO || TODO || TODO || Remaining travel range. Default: 2048 || |
|
61 |
|| `gtKnife` || A cleaver || TODO || TODO || TODO || TODO || |
|
62 |
|| `gtPiano` || Piano from piano strike || Number of remaining terrain bounces. Default: 5 || TODO || TODO || TODO || |
|
63 |
|| `gtPickHammer` || A pickhammer || TODO || TODO || Remaining usage time. Default: 4000 || TODO || |
|
64 |
|| `gtRCPlane` || A RC plane || TODO || dX speed??? || Remaining fly time. Default: 15000 || Number of missiles on board. Default: 3 || |
|
65 |
|| `gtMolotov` || A molotov cocktail || TODO || TODO || TODO || TODO || |
|
66 |
|| `gtMortar` || A mortar || TODO || TODO || TODO || TODO || |
|
67 |
|| `gtMine` || A mine || TODO || TODO || Detonation timer (after activation). || If `0`, mine is a dud. || |
|
68 |
|| `gtSeduction` || Seduction || TODO || TODO || TODO || TODO || |
|
69 |
|| `gtShell` || A bazooka shell (projectile) || TODO || TODO || TODO || TODO || |
|
70 |
|| `gtShotgunShot` || A shot from a shotgun || TODO || TODO || TODO || TODO || |
|
71 |
|| `gtShover` || Used by baseball bat. || TODO || TODO || TODO || TODO || |
|
72 |
|| `gtSineGunShot` || A shot from the sine gun || TODO || TODO || TODO || TODO || |
|
604 | 73 |
|| `gtSMine` || A sticky mine || TODO || TODO || Detonation timer after it was activated. Default: 500 || TODO || |
601 | 74 |
|| `gtSniperRifleShot` || A shot from the sniper rifle || TODO || TODO || TODO || How deep the bullet digs into land. Default: 50 || |
75 |
|| `gtSnowball` || A mudball || TODO || TODO || TODO || TODO || |
|
76 |
|| `gtWatermelon` || A watermelon bomb, still intact || TODO || TODO || Detonation timer. || TODO || |
|
77 |
|| `gtWhip` || A whip || TODO || TODO || TODO || TODO || |
|
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
78 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
79 |
=== Secondary projectiles === |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
80 |
Projectiles that can’t be directly fired but are generated by other weapon gears. |
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
81 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
82 |
|| *Gear type* || *Description* || *Pos* || *Tag* || *Timer* || *Health* || |
601 | 83 |
|| `gtAirBomb` || A bomb from the air attack or the RC plane || TODO || TODO || TODO || TODO || |
604 | 84 |
|| `gtBall` || A ball from the ball gun || TODO || Color: `0a=red, `1`=green, `2`=cyan, `3`=yellow, `4`=violet, `5`=pink, `6`=orange, `7`=lime, `8`=white || Detonation timer. Default: 5s || TODO || |
601 | 85 |
|| `gtCluster` || A cluster from the cluster bomb or the mortar || TODO || TODO || TODO || TODO || |
86 |
|| `gtEgg` || An egg from Birdy || TODO || TODO || TODO || TODO || |
|
605 | 87 |
|| `gtHammerHit` || A hit from the hammer. || TODO || TODO || How deep a successful hammer hit dig into land. Default: 125 || TODO || |
601 | 88 |
|| `gtMelonPiece` || A cluster from a watermelon bomb || TODO|| TODO || TODO || TODO || |
89 |
|| `gtNapalmBomb` || A bomb from the napalmn strike, will burst into fire || TODO || TODO || TODO || TODO || |
|
90 |
|| `gtPoisonCloud` || A poisonous cloud, makes hedgehogs sick on contact || TODO || TODO || Remaining “life time”, default: 5000 || TODO || |
|
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
91 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
92 |
=== Other === |
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
93 |
|| *Gear type* || *Description* || *Pos* || *Tag* || *Timer* || *Health* || |
609 | 94 |
|| `gtAddAmmo` || Used to add some weapon or utilty to a hedgehog. The gear is added when a crate has been collected. || TODO || TODO || TODO || TODO || |
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
95 |
|| `gtATStartGame` || TODO || TODO || TODO || TODO || TODO || |
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
96 |
|| `gtATFinishGame` || TODO || TODO || TODO || TODO || TODO || |
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
97 |
|| `gtGenericFaller` || TODO || TODO || TODO || TODO || TODO || |
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
98 |
|| `gtWaterUp` || If added, water will rise. || _ignored_ || Number of pixels the water still has to rise. By default, the tag will have an initial value of `47`. The gear will be removed when the tag equals `0`. || TODO || TODO || |
422
1e8c89d93ea9
Alphbetically sort gear types and put them into semantic categories.
almikes@aol.com
parents:
420
diff
changeset
|
99 |
|
420
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
100 |
|
607 | 101 |
== Gear-specific variables == |
102 |
=== `gtBirdy` === |
|
635 | 103 |
The number of eggs is stored in the gear's `FlightTime` (default: 2). |
607 | 104 |
|
105 |
=== `gtFlame` === |
|
106 |
If `FlightTime` is set to 0, the flames can hurt hedgehogs in mid-air, but they won't otherwise. |
|
107 |
||
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
108 |
== Source == |
420
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
109 |
Here is an excerpt from the Hedgewars source code: |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
110 |
{{{ |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
111 |
TGearType = (gtFlame, gtHedgehog, gtMine, gtCase, gtExplosives, // these gears should be avoided when searching a spawn place |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
112 |
gtGrenade, gtShell, gtGrave, gtBee, // 8 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
113 |
gtShotgunShot, gtPickHammer, gtRope, // 11 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
114 |
gtDEagleShot, gtDynamite, gtClusterBomb, gtCluster, gtShover, // 16 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
115 |
gtFirePunch, gtATStartGame, // 18 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
116 |
gtATFinishGame, gtParachute, gtAirAttack, gtAirBomb, gtBlowTorch, // 23 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
117 |
gtGirder, gtTeleport, gtSwitcher, gtTarget, gtMortar, // 28 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
118 |
gtWhip, gtKamikaze, gtCake, gtSeduction, gtWatermelon, gtMelonPiece, // 34 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
119 |
gtHellishBomb, gtWaterUp, gtDrill, gtBallGun, gtBall, gtRCPlane, // 40 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
120 |
gtSniperRifleShot, gtJetpack, gtMolotov, gtBirdy, // 44 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
121 |
gtEgg, gtPortal, gtPiano, gtGasBomb, gtSineGunShot, gtFlamethrower, // 50 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
122 |
gtSMine, gtPoisonCloud, gtHammer, gtHammerHit, gtResurrector, // 55 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
123 |
gtNapalmBomb, gtSnowball, gtFlake, {gtStructure,} gtLandGun, gtTardis, // 61 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
124 |
gtIceGun, gtAddAmmo, gtGenericFaller, gtKnife); // 65 |
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
125 |
}}} |
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
126 |
For a current list of the gears look at `hedgewars/uTypes.pas` at |
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
127 |
the `TGearType` enumeration. |
587 | 128 |
http://hg.hedgewars.org/hedgewars/file/default/hedgewars/uTypes.pas#l92 |
420
55be67135696
Put gear types into a table, along with a description and tag description.
almikes@aol.com
parents:
349
diff
changeset
|
129 |
|
435
9e434185289a
Restructure page, add typographic improvements
almikes@aol.com
parents:
426
diff
changeset
|
130 |
Note: `gtBomb` and `gtShell` were named `gtAmmo_Bomb` and `gtAmmo_Grenade` before 0.9.14. |