Server ToolsLauncherServer ListWiki Sign in Discord chat Download
Wiki menu

P1-87-L Scope

Short-ranged mounted scope with 2.8x magnification factor. Compatible with KA based rifles.

Classname KashtanOptic
Weight
800 g
Inventory size
2×2 4 slots
Durability
50
Spawns on
Chernarus, Livonia, Sakhal

Characteristics

Compatibility

Matched by config slots and lists. Game scripts block a few combinations on top of this.

Where it spawns

Spawns as loot on Chernarus, Livonia, Sakhal: Military. Also spawns on or inside other items: KA-101, KA-74, KA-M and 2 more.

ChernarusLivoniaSakhal
Nominal 15 5 10
Minimum 8 3 5
Lifetime 8 h 8 h 8 h
Restock 30 min 30 min 30 min
Quantity · · ·
Loot category Weapons Weapons Weapons
Places Military Military Military
Tiers · · ·

Nominal is how many the economy keeps on the map, minimum is where restocking starts. Lifetime is how long an untouched item lies before cleanup.

Spawns on or inside

From cfgspawnabletypes.xml of the vanilla maps: the item can spawn attached to these items or in their cargo, with the chance set there.

types.xml

Vanilla entries from the mission files of each map. Paste one into db/types.xml of your mission to bring back the default.

types.xml · Chernarus
<type name="KashtanOptic">
    <nominal>15</nominal>
    <lifetime>28800</lifetime>
    <restock>1800</restock>
    <min>8</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</quantmax>
    <cost>100</cost>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
    <category name="weapons"/>
    <usage name="Military"/>
</type>
types.xml · Livonia
<type name="KashtanOptic">
    <nominal>5</nominal>
    <lifetime>28800</lifetime>
    <restock>1800</restock>
    <min>3</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</quantmax>
    <cost>100</cost>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
    <category name="weapons"/>
    <usage name="Military"/>
</type>
types.xml · Sakhal
<type name="KashtanOptic">
    <nominal>10</nominal>
    <lifetime>28800</lifetime>
    <restock>1800</restock>
    <min>5</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</quantmax>
    <cost>100</cost>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
    <category name="weapons"/>
    <usage name="Military"/>
</type>

Config

Classname
KashtanOptic
Config class
CfgVehicles
Inherits from
ItemOptics_Base › ItemOptics › Inventory_Base › Static › All
Model
\DZ\weapons\attachments\optics\optic_kashtan.p3d
Defined in
Addons/weapon_optics.pbo::config.bin
Inventory slots
weaponOpticsAK