Red Dot: Difference between revisions

From PZwiki
m (Added model. Removed image improvement tag.)
(→‎Code: code box update)
Line 37: Line 37:


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
 
{{Retrieved|version=40|incver=43}}
{{CodeBox
<pre>
| {{CodeSnip
item RedDot
  | lang = java
Type = WeaponPart,
  | line = true
DisplayName = Red Dot,
  | start = 0
Icon = RedDot,
  | source = newitems.txt
Weight = 0.2,
  | retrieved = true
WeightModifier = 0.2,
  | version = 40
AimingTimeModifier = 5,
  | incver = 43
MountOn = Pistol,
  | code =
PartType = Scope,
item RedDot
Tooltip = Tooltip_RedDot,
{
MetalValue = 15,
    Type             = WeaponPart,
</pre>
    DisplayName     = Red Dot,
    Icon             = RedDot,
    Weight           = 0.2,
    WeightModifier   = 0.2,
    AimingTimeModifier = 5,
    MountOn         = Pistol,
    PartType         = Scope,
    Tooltip         = Tooltip_RedDot,
    MetalValue       = 15,
}
  }}
}}


==See also==
==See also==

Revision as of 07:31, 8 January 2024

Red Dot
Red Dot
RedDot.png
General
Category Weapon mod
Encumbrance
Heavy Load
0.2
Weapon(s) HandGun.pngHandGun2.png HandGun3.png Revolver.png RevolverLong.png RifleHunting.png RifleVarmint.png AssaultRifle2.png AssaultRifle.png
Part type Scope
Modifiers
Encumbrance 0.2
Aiming time 5
Technical details
Item ID Base.RedDot
Weapon attachment. Increases firearm's aiming speed.
— In-game tooltip

A red dot is a weapon mod.

Usage

Increases firearms' aiming speed.

To install an attachment, right click either the weapon you want to modify or attachment you want to add, and select "Upgrade" to modify the weapon. Requires a screwdriver.

Compatible weapons

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 40.43
item RedDot
{
    Type             = WeaponPart,
    DisplayName      = Red Dot,
    Icon             = RedDot,
    Weight           = 0.2,
    WeightModifier   = 0.2,
    AimingTimeModifier = 5,
    MountOn          = Pistol,
    PartType         = Scope,
    Tooltip          = Tooltip_RedDot,
    MetalValue       = 15,
}

See also