GearTypes.wiki
changeset 880 edb64d05684e
parent 879 b82b228bd0f1
child 882 0a5904d7ae7a
equal deleted inserted replaced
879:b82b228bd0f1 880:edb64d05684e
   104 
   104 
   105 === Land objects ===
   105 === Land objects ===
   106 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.
   106 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.
   107 
   107 
   108 ==== `gtCase` ====
   108 ==== `gtCase` ====
   109 An ammo, utility or health crate.
   109 An ammo, utility, health or even a fake crate.
   110 
   110 
   111 If the crate has just been collected, the gear state flag `gmDestroy` will be set before `onGearDelete` is called.
   111 If the crate has just been collected, the gear state flag `gmDestroy` will be set before `onGearDelete` is called.
   112 
   112 
   113  * `Pos`: Crate type: 1=ammo crate, 2=health crate, 4=utility crate (also see below)
   113  * `Pos`: Crate type: 1=ammo crate, 2=health crate, 4=utility crate (also see below)
   114  * `Tag`: Used for the appear animation
   114  * `Tag`: Used for the appear animation
   121 || *Pos flag* || *Meaning* ||
   121 || *Pos flag* || *Meaning* ||
   122 || `0x1` || Ammo crate ||
   122 || `0x1` || Ammo crate ||
   123 || `0x2` || Health crate ||
   123 || `0x2` || Health crate ||
   124 || `0x4` || Utility crate ||
   124 || `0x4` || Utility crate ||
   125 || `0x8` || Fake crate, looks like a normal crate but does not actually contain health or ammo ||
   125 || `0x8` || Fake crate, looks like a normal crate but does not actually contain health or ammo ||
   126 || `0x10` || Cate has a booby trap, when the player collects this crate it will explode ||
   126 || `0x10` || Booby trap: When the player collects this crate it will explode ||
   127 || `0x20` || Poison trap: When the player collects this crate the player will be poisoned ||
   127 || `0x20` || Poison trap: When the player collects this crate the player will be poisoned ||
   128 
   128 
   129 All crates *must* have exactly one of the flags `0x1`, `0x2` or `0x4` set. Everything else can be combined at will.
   129 All crates *must* have exactly one of the flags `0x1`, `0x2` or `0x4` set. Everything else can be combined at will.
   130 
   130 
   131 Examples:
   131 Examples: