GearTypes.wiki
changeset 435 9e434185289a
parent 426 278b97ba739c
child 499 58b5889fbce4
equal deleted inserted replaced
434:1ce0c043a837 435:9e434185289a
     4 
     4 
     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].
     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].
     6 
     6 
     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.
     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.
     8 
     8 
     9 == Land objects ==
     9 == List of gear types ==
       
    10 === Land objects ===
    10 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.
    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.
    11 
    12 
    12 || Gear type || Description || Pos || Tag || Timer || Health ||
    13 || *Gear type* || *Description* || *Pos* || *Tag* || *Timer* || *Health* ||
    13 || gtCase || an ammo, utility or health crate || TODO || TODO || TODO || TODO ||
    14 || `gtCase` || an ammo, utility or health crate || TODO || TODO || TODO || TODO ||
    14 || gtExplosives || TODO || TODO || TODO || TODO || TODO ||
    15 || `gtExplosives` || TODO || TODO || TODO || TODO || TODO ||
    15 || gtFlake || TODO || TODO || TODO || TODO || TODO ||
    16 || `gtFlake` || TODO || TODO || TODO || TODO || TODO ||
    16 || gtFlame || a flame || TODO || between 0-32 (TODO) || TODO || TODO ||
    17 || `gtFlame` || a flame || TODO || between 0-32 (TODO) || TODO || TODO ||
    17 || gtGrave || a grave from a dead hedgehog || TODO || TODO || TODO || TODO ||
    18 || `gtGrave` || a grave from a dead hedgehog || TODO || TODO || TODO || TODO ||
    18 || gtHedgehog || a hedgehog || TODO || used for animation. 0 = no animation plays. Other value: animation plays || TODO || TODO ||
    19 || `gtHedgehog` || a hedgehog || TODO || used for animation. `0` = no animation plays. Other value: animation plays || TODO || TODO ||
    19 || gtPortal || a portal from the portable portal device || TODO || TODO || TODO || TODO ||
    20 || `gtPortal` || a portal from the portable portal device || TODO || TODO || TODO || TODO ||
    20 || gtTarget || a target, useful in target practice missions || TODO || TODO || TODO || TODO ||
    21 || `gtTarget` || a target, useful in target practice missions || TODO || TODO || TODO || TODO ||
    21 
    22 
    22 == Utilities ==
    23 === Utilities ===
    23 A list of “utility” gears.
    24 A list of “utility” gears.
    24 
    25 
    25 || Gear type || Description || Pos || Tag || Timer || Health ||
    26 || *Gear type* || *Description* || *Pos* || *Tag* || *Timer* || *Health* ||
    26 || gtGirder || a girder (construction) || TODO || TODO || TODO || TODO ||
    27 || `gtGirder` || a girder (construction) || TODO || TODO || TODO || TODO ||
    27 || gtJetpack || a flying saucer || TODO || TODO || TODO || TODO ||
    28 || `gtJetpack` || a flying saucer || TODO || TODO || TODO || TODO ||
    28 || gtLandGun || the land spray tool || TODO || power of land spray (5-20) || TODO || TODO ||
    29 || `gtLandGun` || the land spray tool || TODO || power of land spray (`5`-`20`) || TODO || TODO ||
    29 || gtParachute || a parachute || TODO || TODO || TODO || TODO ||
    30 || `gtParachute` || a parachute || TODO || TODO || TODO || TODO ||
    30 || gtResurrector || resurrection || TODO || TODO || TODO || TODO ||
    31 || `gtResurrector` || resurrection || TODO || TODO || TODO || TODO ||
    31 || gtRope || a rope || TODO || TODO || TODO || TODO ||
    32 || `gtRope` || a rope || TODO || TODO || TODO || TODO ||
    32 || gtSwitcher || switch hedgehog || TODO || TODO || TODO || TODO ||
    33 || `gtSwitcher` || switch hedgehog || TODO || TODO || TODO || TODO ||
    33 || gtTardis || a !TimeBox || TODO || TODO || TODO || TODO ||
    34 || `gtTardis` || a !TimeBox || TODO || TODO || TODO || TODO ||
    34 || gtTeleport || teleportation || TODO || TODO || TODO || TODO ||
    35 || `gtTeleport` || teleportation || TODO || TODO || TODO || TODO ||
    35 
    36 
    36 == Weapons and main projectiles ==
    37 === Weapons and main projectiles ===
    37 List of weapons which can be directly used or launched by the players.
    38 List of weapons which can be directly used or launched by the players.
    38 
    39 
    39 || Gear type || Description || Pos || Tag || Timer || Health ||
    40 || *Gear type* || *Description* || *Pos* || *Tag* || *Timer* || *Health* ||
    40 || gtAirAttack || The airplane of an air attack || TODO || direction of airplane (-1 = left, 1 = right) || TODO || TODO ||
    41 || `gtAirAttack` || The airplane of an air attack || TODO || direction of airplane (`-1` = left, `1` = right) || TODO || TODO ||
    41 || gtBallGun || a ballgun || TODO || TODO || TODO || TODO ||
    42 || `gtBallGun` || a ballgun || TODO || TODO || TODO || TODO ||
    42 || gtBee || homing bee || TODO || wheather the bee is underwater (0 = no, 1 = yes) || TODO || TODO ||
    43 || `gtBee` || homing bee || TODO || wheather the bee is underwater (`0` = no, `1` = yes) || TODO || TODO ||
    43 || gtBirdy || Birdy || TODO || facing direction (left = -1, right = 1) || TODO || TODO ||
    44 || `gtBirdy` || Birdy || TODO || facing direction (`-1` = left, `1` = right) || TODO || TODO ||
    44 || gtBlowTorch || a blowtorch || TODO || TODO || TODO || TODO ||
    45 || `gtBlowTorch` || a blowtorch || TODO || TODO || TODO || TODO ||
    45 || gtClusterBomb || a cluster bomb || TODO || TODO || TODO || TODO ||
    46 || `gtClusterBomb` || a cluster bomb || TODO || TODO || TODO || TODO ||
    46 || 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 || TODO ||
    47 || `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 || TODO ||
    47 || gtDEagleShot || a shot from a desert eagle || TODO || TODO || TODO || TODO ||
    48 || `gtDEagleShot` || a shot from a desert eagle || TODO || TODO || TODO || TODO ||
    48 || gtDrill || drill rocket || TODO || used for drill strike. If 1, then first impact occoured already || TODO || TODO ||
    49 || `gtDrill` || drill rocket || TODO || used for drill strike. If `1`, then first impact occoured already || TODO || TODO ||
    49 || gtDynamite || a dynamite || TODO || TODO || TODO || TODO ||
    50 || `gtDynamite` || a dynamite || TODO || TODO || TODO || TODO ||
    50 || gtFirePunch || shoryuken || TODO || Y coordinate || TODO || TODO ||
    51 || `gtFirePunch` || shoryuken || TODO || Y coordinate || TODO || TODO ||
    51 || gtFlamethrower || a flamethrower || TODO || power of flamethrower (5-20) || TODO || TODO ||
    52 || `gtFlamethrower` || a flamethrower || TODO || power of flamethrower (`5`-`20`) || TODO || TODO ||
    52 || gtGasBomb || an old limburger || TODO || TODO || TODO || TODO ||
    53 || `gtGasBomb` || an old limburger || TODO || TODO || TODO || TODO ||
    53 || gtGrenade || a grenade || TODO || TODO || TODO || TODO ||
    54 || `gtGrenade` || a grenade || TODO || TODO || TODO || TODO ||
    54 || gtHammer || a hammer || TODO || TODO || TODO || TODO ||
    55 || `gtHammer` || a hammer || TODO || TODO || TODO || TODO ||
    55 || gtHellishBomb || a hellish hand-grenade || TODO || TODO || TODO || TODO ||
    56 || `gtHellishBomb` || a hellish hand-grenade || TODO || TODO || TODO || TODO ||
    56 || gtIceGun || a freezer || TODO || TODO || TODO || TODO ||
    57 || `gtIceGun` || a freezer || TODO || TODO || TODO || TODO ||
    57 || gtKamikaze || an ongoing kamikaze || TODO || TODO || TODO || TODO ||
    58 || `gtKamikaze` || an ongoing kamikaze || TODO || TODO || TODO || TODO ||
    58 || gtKnife || a cleaver || TODO || TODO || TODO || TODO ||
    59 || `gtKnife` || a cleaver || TODO || TODO || TODO || TODO ||
    59 || gtPiano || piano from piano strike || TODO || TODO || TODO || TODO ||
    60 || `gtPiano` || piano from piano strike || TODO || TODO || TODO || TODO ||
    60 || gtPickHammer || a pickhammer || TODO || TODO || TODO || TODO ||
    61 || `gtPickHammer` || a pickhammer || TODO || TODO || TODO || TODO ||
    61 || gtRCPlane || a RC plane || TODO || dX speed??? || TODO || TODO ||
    62 || `gtRCPlane` || a RC plane || TODO || dX speed??? || TODO || TODO ||
    62 || gtMolotov || a molotov cocktail || TODO || TODO || TODO || TODO ||
    63 || `gtMolotov` || a molotov cocktail || TODO || TODO || TODO || TODO ||
    63 || gtMortar || a mortar || TODO || TODO || TODO || TODO ||
    64 || `gtMortar` || a mortar || TODO || TODO || TODO || TODO ||
    64 || gtMine || a mine || TODO || TODO || TODO || TODO ||
    65 || `gtMine` || a mine || TODO || TODO || TODO || TODO ||
    65 || gtSeduction || seduction || TODO || TODO || TODO || TODO ||
    66 || `gtSeduction` || seduction || TODO || TODO || TODO || TODO ||
    66 || gtShell || a bazooka shell (projectile) || TODO || TODO || TODO || TODO ||
    67 || `gtShell` || a bazooka shell (projectile) || TODO || TODO || TODO || TODO ||
    67 || gtShotgunShot || a shot from a shotgun || TODO || TODO || TODO || TODO ||
    68 || `gtShotgunShot` || a shot from a shotgun || TODO || TODO || TODO || TODO ||
    68 || gtShover || used by baseball bat (TODO) || TODO || TODO || TODO || TODO ||
    69 || `gtShover` || used by baseball bat (TODO) || TODO || TODO || TODO || TODO ||
    69 || gtSineGunShot || a shot from the sine gun || TODO || TODO || TODO || TODO ||
    70 || `gtSineGunShot` || a shot from the sine gun || TODO || TODO || TODO || TODO ||
    70 || gtSMine || a sticky mine || TODO || TODO || TODO || TODO ||
    71 || `gtSMine` || a sticky mine || TODO || TODO || TODO || TODO ||
    71 || gtSniperRifleShot || a shot from the sniper rifle || TODO || TODO || TODO || TODO ||
    72 || `gtSniperRifleShot` || a shot from the sniper rifle || TODO || TODO || TODO || TODO ||
    72 || gtSnowball || a mudball || TODO || TODO || TODO || TODO ||
    73 || `gtSnowball` || a mudball || TODO || TODO || TODO || TODO ||
    73 || gtWatermelon || a watermelon bomb, still intact || TODO || TODO || TODO || TODO ||
    74 || `gtWatermelon` || a watermelon bomb, still intact || TODO || TODO || TODO || TODO ||
    74 || gtWhip || a whip || TODO || TODO || TODO || TODO ||
    75 || `gtWhip` || a whip || TODO || TODO || TODO || TODO ||
    75 
    76 
    76 == Secondary projectiles ==
    77 === Secondary projectiles ===
    77 Projectiles that can’t be directly fired but are generated by other weapon gears.
    78 Projectiles that can’t be directly fired but are generated by other weapon gears.
    78 
    79 
    79 || Gear type || Description || Pos || Tag || Timer || Health ||
    80 || *Gear type* || *Description* || *Pos* || *Tag* || *Timer* || *Health* ||
    80 || gtAirBomb || a bomb from the air attack or the RC plane || TODO || TODO || TODO || TODO ||
    81 || `gtAirBomb` || a bomb from the air attack or the RC plane || TODO || TODO || TODO || TODO ||
    81 || gtBall || a ball from the ball gun || TODO || Color: 0=red, 1=green, 2=cyan, 3=yellow, 4=violet, 5=pink, 6=orange, 7=lime, 8=white || TODO || TODO ||
    82 || `gtBall` || a ball from the ball gun || TODO || Color: `0`=red, `1`=green, `2`=cyan, `3`=yellow, `4`=violet, `5`=pink, `6`=orange, `7`=lime, `8`=white || TODO || TODO ||
    82 || gtCluster || a cluster from the cluster bomb or the mortar || TODO || TODO || TODO || TODO ||
    83 || `gtCluster` || a cluster from the cluster bomb or the mortar || TODO || TODO || TODO || TODO ||
    83 || gtEgg || an egg from Birdy || TODO || TODO || TODO || TODO ||
    84 || `gtEgg` || an egg from Birdy || TODO || TODO || TODO || TODO ||
    84 || gtHammerHit || TODO || TODO || TODO || TODO || TODO ||
    85 || `gtHammerHit` || TODO || TODO || TODO || TODO || TODO ||
    85 || gtMelonPiece || a cluster from a watermelon bomb || TODO|| TODO || TODO || TODO ||
    86 || `gtMelonPiece` || a cluster from a watermelon bomb || TODO|| TODO || TODO || TODO ||
    86 || gtNapalmBomb || a bomb from the napalmn strike, will burst into fire || TODO || TODO || TODO || TODO ||
    87 || `gtNapalmBomb` || a bomb from the napalmn strike, will burst into fire || TODO || TODO || TODO || TODO ||
    87 || gtPoisonCloud || a poisonous cloud, makes hedgehogs sick on contact || TODO || TODO || TODO || TODO ||
    88 || `gtPoisonCloud` || a poisonous cloud, makes hedgehogs sick on contact || TODO || TODO || TODO || TODO ||
    88 
    89 
    89 == Other ==
    90 === Other ===
    90 || Gear type || Description || Pos || Tag || Timer || Health ||
    91 || *Gear type* || *Description* || *Pos* || *Tag* || *Timer* || *Health* ||
    91 || gtAddAmmo || TODO || TODO || TODO || TODO || TODO ||
    92 || `gtAddAmmo` || TODO || TODO || TODO || TODO || TODO ||
    92 || gtATStartGame || TODO || TODO || TODO || TODO || TODO ||
    93 || `gtATStartGame` || TODO || TODO || TODO || TODO || TODO ||
    93 || gtATFinishGame || TODO || TODO || TODO || TODO || TODO ||
    94 || `gtATFinishGame` || TODO || TODO || TODO || TODO || TODO ||
    94 || gtGenericFaller || TODO || TODO || TODO || TODO || TODO ||
    95 || `gtGenericFaller` || TODO || TODO || TODO || TODO || TODO ||
    95 || 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 ||
    96 || `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 ||
    96 
    97 
    97 
    98 
    98 
    99 == Source ==
    99 Here is an excerpt from the Hedgewars source code:
   100 Here is an excerpt from the Hedgewars source code:
   100 {{{
   101 {{{
   101     TGearType = (gtFlame, gtHedgehog, gtMine, gtCase, gtExplosives, // these gears should be avoided when searching a spawn place
   102     TGearType = (gtFlame, gtHedgehog, gtMine, gtCase, gtExplosives, // these gears should be avoided when searching a spawn place
   102         gtGrenade, gtShell, gtGrave, gtBee, // 8
   103         gtGrenade, gtShell, gtGrave, gtBee, // 8
   103         gtShotgunShot, gtPickHammer, gtRope, // 11
   104         gtShotgunShot, gtPickHammer, gtRope, // 11
   111         gtEgg, gtPortal, gtPiano, gtGasBomb, gtSineGunShot, gtFlamethrower, // 50
   112         gtEgg, gtPortal, gtPiano, gtGasBomb, gtSineGunShot, gtFlamethrower, // 50
   112         gtSMine, gtPoisonCloud, gtHammer, gtHammerHit, gtResurrector, // 55
   113         gtSMine, gtPoisonCloud, gtHammer, gtHammerHit, gtResurrector, // 55
   113         gtNapalmBomb, gtSnowball, gtFlake, {gtStructure,} gtLandGun, gtTardis, // 61
   114         gtNapalmBomb, gtSnowball, gtFlake, {gtStructure,} gtLandGun, gtTardis, // 61
   114         gtIceGun, gtAddAmmo, gtGenericFaller, gtKnife); // 65
   115         gtIceGun, gtAddAmmo, gtGenericFaller, gtKnife); // 65
   115 }}}
   116 }}}
   116 For a current list of the gears look at hedgewars/uTypes.pas at
   117 For a current list of the gears look at `hedgewars/uTypes.pas` at
   117 the TGearType enumeration.
   118 the `TGearType` enumeration.
   118 http://code.google.com/p/hedgewars/source/browse/hedgewars/uTypes.pas#92
   119 http://code.google.com/p/hedgewars/source/browse/hedgewars/uTypes.pas#92
   119 
   120 
   120 Note: gtBomb and gtShell were named gtAmmo_Bomb and gtAmmo_Grenade before 0.9.14
   121 Note: `gtBomb` and `gtShell` were named `gtAmmo_Bomb` and `gtAmmo_Grenade` before 0.9.14.