States.wiki
changeset 783 c4b171741ee3
parent 740 1f6471e2e082
child 784 19fc31fe4094
equal deleted inserted replaced
782:0fba851eb618 783:c4b171741ee3
     3 This is a list of states gears can be in:
     3 This is a list of states gears can be in:
     4 
     4 
     5 = List of states =
     5 = List of states =
     6 
     6 
     7 || *Gear state* || *Description* ||
     7 || *Gear state* || *Description* ||
       
     8 || `gstHHDriven` || Hedgehog is controlled by current player ||
       
     9 || `gstHHChooseTarget` || Used for hedgehogs; if set, player can select a target with the cursor (e.g. for homing bee, air attack, etc.) ||
       
    10 || `gstHHJumping` || Used to indicate when a hedgehog is doing the long jump ||
       
    11 || `gstHHHJump` || Used to indicate when a hedgehog is doing the high jump ||
       
    12 || `gstHHThinking` || Thought bubble animation plays for hedgehog (used for AI players) ||
       
    13 || `gstHHDeath` || Hedgehog is dying ||
       
    14 || `gstHHGone` || Set if hedgehog is going to teleport away from the battlefield because the player left the game (in network play) ||
       
    15 || `gstWinner` || This is good for indicating hedgehogs they did well. Represented by a stupid grin. ||
       
    16 || `gstLoser` || This is good for indicating hedgehogs screwed up ||
       
    17 || `gstMoving` || Gear is moving / in mid-air ||
       
    18 || `gstAttacked` || Set for hedgehogs after they have finished their attack (including all shots). Not used in infinite attack mode ||
       
    19 || `gstAttacking` || Used to indicate when a hedgehog is currently attacking (player holds down attack key). Also used for triggered mines ||
       
    20 || `gstCollision` || Used to indicate the gear has just collided with something. Used internally for many checks and stuff ||
     8 || `gstDrowning` || Gear is drowning ||
    21 || `gstDrowning` || Gear is drowning ||
     9 || `gstHHDriven` || Hedgehog is controlled by current player ||
    22 || `gsttmpFlag` || Used for various purposes, its meaning depends on the gear type (see GearTypes) ||
    10 || `gstMoving` || Gear is moving / in mid-air ||
    23 || `gstNoDamage` || Gear does not take damage from explosions and attacks like shoryuken and will not be pushed by them. For the invulnerability shield used by hedgehogs, use `SetEffect`
    11 || `gstAttacked` || ||
       
    12 || `gstAttacking` || ||
       
    13 || `gstCollision` || ||
       
    14 || `gstHHChooseTarget` || ||
       
    15 || `gstHHJumping` || ||
       
    16 || `gsttmpFlag` || ||
       
    17 || `gstHHThinking` || ||
       
    18 || `gstNoDamage` || Hedgehog is invulnerable ||
       
    19 || `gstHHHJump` || ||
       
    20 || `gstAnimation` || Hedgehog plays an animation ||
    24 || `gstAnimation` || Hedgehog plays an animation ||
    21 || `gstHHDeath` || Hedgehog is dying ||
       
    22 || `gstWinner` || This is good for indicating hedgehogs they did well. Represented by a stupid grin. ||
       
    23 || `gstWait` || ||
    25 || `gstWait` || ||
    24 || `gstNotKickable` || Hedgehog can't be knocked away by various means (i.e. rope-knocking) ||
    26 || `gstNotKickable` || Hedgehog can't be knocked away by various means (i.e. rope-knocking) ||
    25 || `gstLoser` || This is good for indicating hedgehogs screwed up ||
       
    26 || `gstHHGone` || ||
       
    27 || `gstInvisible` || Gear is invisible ||
    27 || `gstInvisible` || Gear is invisible ||
    28 || `gstSubmersible` || ||
    28 || `gstSubmersible` || Gear can swim underwater ||
    29 || `gstFrozen` || Gear is frozen. ||
    29 || `gstFrozen` || Gear is frozen ||
    30 || `gstNoGravity` || ||
    30 || `gstNoGravity` || If set, gear is not subject to gravity (does not work for all gears) ||
    31 
    31 
    32 See http://hg.hedgewars.org/hedgewars/file/default/hedgewars/uConsts.pas#l195 for a current list).
    32 See http://hg.hedgewars.org/hedgewars/file/default/hedgewars/uConsts.pas#l195 for a current list).