States.wiki
author Wuzzy
Wed, 17 Apr 2019 00:19:05 +0100
changeset 1735 4b658d116488
parent 1233 5776338a1613
child 2093 6edb9964990d
permissions -rw-r--r--
Sandbox: Edited via web interface

#summary List of states gears can be in

This is a list of states gears can be in:

= List of states =

|| *Gear state* || *Description* ||
|| `gstHHDriven` || Hedgehog is controlled by current player ||
|| `gstChooseTarget` || Used for hedgehogs; if set, player can select a target with the cursor (e.g. for homing bee, air attack, etc.) ||
|| `gstHHJumping` || Used to indicate when a hedgehog is doing the long jump ||
|| `gstHHHJump` || Used to indicate when a hedgehog is doing the high jump ||
|| `gstHHThinking` || Thought bubble animation plays for hedgehog (used for AI players) ||
|| `gstHHDeath` || Hedgehog is dying ||
|| `gstHHGone` || Set if hedgehog is going to teleport away from the battlefield because the player left the game (in network play) ||
|| `gstWinner` || This is good for indicating hedgehogs they did well. Represented by a stupid grin. ||
|| `gstLoser` || This is good for indicating hedgehogs screwed up ||
|| `gstMoving` || Gear is moving / in mid-air ||
|| `gstAttacked` || Set for hedgehogs after they have finished their attack (including all shots). Not used in infinite attack mode ||
|| `gstAttacking` || Used to indicate when a hedgehog is currently attacking (player holds down attack key). Also used for triggered mines ||
|| `gstCollision` || Used to indicate the gear has just collided with something. Used internally for many checks and stuff ||
|| `gstDrowning` || Gear is drowning ||
|| `gsttmpFlag` || Used for various purposes, its meaning depends on the gear type (see [GearTypes]) ||
|| `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` ||
|| `gstAnimation` || Hedgehog plays an animation ||
|| `gstWait` || ??? ||
|| `gstNotKickable` || Hedgehog can't be knocked away by various means (i.e. rope-knocking) ||
|| `gstInvisible` || Gear is invisible ||
|| `gstSubmersible` || Gear can swim underwater ||
|| `gstFrozen` || Gear is frozen. This state is not for hedgehogs; for hedgehogs, use `SetEffect` and `GetEffect` with `effect=heFrozen` instead ||
|| `gstNoGravity` || If set, gear is not subject to gravity (does not work for all gears) ||

See https://hg.hedgewars.org/hedgewars/file/default/hedgewars/uConsts.pas#l195 for a current list.