This shows you the differences between two versions of the page.
cw4:cpack:docs:d12d4163-732a-4b7c-b5ac-1dcf8f70aa1b [2021/02/10 02:43] – created qople | cw4:cpack:docs:d12d4163-732a-4b7c-b5ac-1dcf8f70aa1b [2021/03/03 00:33] (current) – Deleted duplicate page qople | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | < | ||
- | < | ||
- | < | ||
- | |||
- | ====== FPS InfoCache | ||
- | |||
- | // | ||
- | |||
- | {{cw4: | ||
- | |||
- | Info Caches in FPS maps are collectible items that can open doors, show a message, unlock, or upgrade weapons when collected. | ||
- | |||
- | In order to start collecting, they must not be in creeper, be within 40 cells of the player, and have direct line of sight to the player. Once they start collecting, they will continue even if the player leaves, although they will stop charging if they encounter creeper. | ||
- | |||
- | ===== Documentation ===== | ||
- | //This section relates to making maps with this CMOD, and assumes you have read some of [[cw4: | ||
- | |||
- | {{cw4: | ||
- | |||
- | When in edit mode, the custom unit that controls the info cache is shown and selectable. When selected, a UI button labeled "Force collect" | ||
- | |||
- | Script vars: | ||
- | * DoorX, DoorZ: The cell coordinates of any cell in the door the info cache opens. The rest of the door is defined as all cells with the same height connected to this cell. Diagonal cells do *not* count as neighbors. | ||
- | * Door_Final_Height: | ||
- | * ItemsRequired: | ||
- | * Message: The message shown when the info cache collects. " | ||
- | * Message2: A second line added to the first message. It will also change the sound the info cache makes slightly and make the message stay up for longer (10 seconds instead of 6). Has no effect if left empty. | ||
- | * WeaponUnlock: | ||
- | * Weapon0 - Weapon2: The name of the weapon that the 3 upgrade slots belong to. | ||
- | * Attribute0 - Attribute2: The name of the attribute the 3 upgrade slots belong to. | ||
- | * Strength0 - Strength2: The strength of each of the 3 upgrades. This value is added to the existing one, not multiplied. | ||
- | |||
- | If the effect you want to achieve with one item needs more than 3 attributes to be changed, remember that many attributes depend on others to have any effect. For instance, if " | ||
- | |||
- | |||
- | < | ||
- | < | ||
- | < | ||