Server ToolsLauncherServer ListWiki Sign in Discord chat Download
Wiki menu

Handgun Scope

Mounted 1.8x magnifying pistol scope. Fits mounts of large-caliber pistols.

Classname PistolOptic
Weight
700 g
Inventory size
3×1 3 slots
Durability
30
Spawns on
Chernarus, Livonia, Sakhal

Characteristics

Compatibility

Attaches to

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: Hunting. Also spawns on or inside other items: Longhorn.

ChernarusLivoniaSakhal
Nominal 10 5 5
Minimum 5 2 2
Lifetime 8 h 8 h 8 h
Restock 30 min 30 min 30 min
Quantity · · ·
Loot category Weapons Weapons Weapons
Places Hunting Hunting Hunting
Tiers Tier 3 Tier 4 Tier 2 Tier 3 Tier 2 Tier 3

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="PistolOptic">
    <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="Hunting"/>
    <value name="Tier3"/>
    <value name="Tier4"/>
</type>
types.xml · Livonia, Sakhal
<type name="PistolOptic">
    <nominal>5</nominal>
    <lifetime>28800</lifetime>
    <restock>1800</restock>
    <min>2</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="Hunting"/>
    <value name="Tier2"/>
    <value name="Tier3"/>
</type>

Config

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