equal
deleted
inserted
replaced
112 If the crate has just been collected, the gear message flag `gmDestroy` will be set before `onGearDelete` is called. |
112 If the crate has just been collected, the gear message flag `gmDestroy` will be set before `onGearDelete` is called. |
113 |
113 |
114 * `Pos`: Crate type: 1=ammo crate, 2=health crate, 4=utility crate (also see below) |
114 * `Pos`: Crate type: 1=ammo crate, 2=health crate, 4=utility crate (also see below) |
115 * `Tag`: Used for the appear animation |
115 * `Tag`: Used for the appear animation |
116 * `Health`: Amount of health contained in a health crate |
116 * `Health`: Amount of health contained in a health crate |
117 * `Power`: Ammo count in an ammo or utility crate. 0 = Use weapon scheme default (default: 0) |
117 * `Power`: Ammo count in an ammo or utility crate. 0: Use weapon scheme default. 100 or greater: infinite (default: 0) |
118 * `Boom`: Explosion size and damage (default: 25) |
118 * `Boom`: Explosion size and damage (default: 25) |
119 |
119 |
120 We recommend you to use `SpawnAmmoCrate` and the like to crate crate gears instead of `AddGear`. |
120 We recommend you to use `SpawnAmmoCrate` and the like to crate crate gears instead of `AddGear`. |
121 |
121 |
122 Advanced crate types: If you just care about normal crates, the values 1, 2 and 4 mentioned above are all you need to know. But Hedgewars supports a few crate variants which can be spawned with `SpawnFakeAmmoCrate` and the like. The `Pos` parameter is in reality a sum of several flags which need to be added up for the final type. |
122 Advanced crate types: If you just care about normal crates, the values 1, 2 and 4 mentioned above are all you need to know. But Hedgewars supports a few crate variants which can be spawned with `SpawnFakeAmmoCrate` and the like. The `Pos` parameter is in reality a sum of several flags which need to be added up for the final type. |
565 |
565 |
566 ==== `gtAddAmmo` ==== |
566 ==== `gtAddAmmo` ==== |
567 Used to add some weapon or utilty to a hedgehog. The gear is added when a crate ([GearTypes#gtCase `gtCase`]) has been collected. |
567 Used to add some weapon or utilty to a hedgehog. The gear is added when a crate ([GearTypes#gtCase `gtCase`]) has been collected. |
568 |
568 |
569 * `Pos`: Ammo classification: 1=weapon, 4=utility |
569 * `Pos`: Ammo classification: 1=weapon, 4=utility |
570 * `Power`: Ammo count. 0 = Use weapon scheme default (default: 0) |
570 * `Power`: Ammo count. 0: Use weapon scheme default. 100 or greater: infinite (default: 0) |
571 |
571 |
572 ==== `gtATStartGame` ==== |
572 ==== `gtATStartGame` ==== |
573 This gear is created to mark the beginning of the game. It will cause a ticker message to be displayed (“Let's fight!”) and sets some internal stuff. |
573 This gear is created to mark the beginning of the game. It will cause a ticker message to be displayed (“Let's fight!”) and sets some internal stuff. |
574 |
574 |
575 ==== `gtATFinishGame` ==== |
575 ==== `gtATFinishGame` ==== |