author | Wuzzy |
Sat, 27 Oct 2018 17:44:55 +0100 | |
changeset 1594 | 0f489a75d6ad |
parent 1250 | d8f26186f4e5 |
child 1705 | 39af8c72daef |
permissions | -rw-r--r-- |
517
34caff484bbd
First draft of a list of gear messages. Hey, it’s better than nothing!
almikes@aol.com
parents:
diff
changeset
|
1 |
#summary List of all gear messages. |
34caff484bbd
First draft of a list of gear messages. Hey, it’s better than nothing!
almikes@aol.com
parents:
diff
changeset
|
2 |
|
739 | 3 |
This is a list of gear messages. Gear messages are used to e.g. control hedgehogs. |
4 |
||
5 |
= List of gear messages = |
|
517
34caff484bbd
First draft of a list of gear messages. Hey, it’s better than nothing!
almikes@aol.com
parents:
diff
changeset
|
6 |
|
618 | 7 |
|| *Identifier* || *Meaning* || *Parameter* || |
620 | 8 |
|| `gmLeft` || Walk left || _Not used._ || |
618 | 9 |
|| `gmRight` || Walk right || _Not used._ || |
10 |
|| `gmUp` || Aim up || _Not used._ || |
|
11 |
|| `gmDown` || Aim down || _Not used._ || |
|
12 |
|| `gmSwitch` || Switch hedgehog || _Not used._ || |
|
13 |
|| `gmLJump` || Long jump || _Not used._ || |
|
14 |
|| `gmHJump` || High jump || _Not used._ || |
|
1109 | 15 |
|| `gmDestroy` || Request gear kill itself || _Not used._ || |
621 | 16 |
|| `gmSlot` || Weapons slot selected. || Used. || |
618 | 17 |
|| `gmWeapon` || Weapon seleced. || Used. || |
18 |
|| `gmTimer` || Timer set. || Used. || |
|
1109 | 19 |
|| `gmAnimate` || Start animation || Used. || |
618 | 20 |
|| `gmPrecise` || Precise || _Not used._ || |
1109 | 21 |
|| `gmRemoveFromList` || Remove from gear list || _Not used._ || |
22 |
|| `gmAddToList` || Insert in gear list || _Not used._ || |
|
23 |
|| `gmDelete` || Delete gear || _Not used._ || |
|
1250 | 24 |
|| `gmAllStoppable` || Bitwise OR of `gmLeft`, `gmRight`, `gmUp`, `gmDown`, `gmAttack` and `gmPrecise` ||_Not used._ || |
517
34caff484bbd
First draft of a list of gear messages. Hey, it’s better than nothing!
almikes@aol.com
parents:
diff
changeset
|
25 |
|
1242 | 26 |
`gmAddToList` and `gmRemoveFromList` are intended for use by the engine when changing order of gears in the list. It is not recommended that Lua changes these, and at present they are used together when changing a gear's Z (drawing order). For example, if Lua sets `gmRemoveFromList`, it would cause a leak of the gear, since Lua would no longer be able to restore it. Setting both together would have no effect since Lua cannot at present change Z. |
1109 | 27 |
|
1099 | 28 |
See https://hg.hedgewars.org/hedgewars/file/default/hedgewars/uConsts.pas (search for "gear messages") for a current list. |