• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Stable Feedback
  • /DZG-2356
Back
2

BUISOptic (back-up iron sight) cannot be attached to SCAR-L / SCR16 on Nasdara

Weapons
2

State

Open
Issue key
DZG-2356
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
octopuss
Created
Oct 30, 2026
Views
11
Platform
PC Steam
What happened?

On the official Nasdara map, the optic BUISOptic cannot be attached to the SCAR-L

(class SCARL / SCARL_Black). The attach action is not offered at all, as if the weapon

had no compatible rail.

The same optic attaches normally to SCAR-H (SCARH / SCARH_Black), to M4A1, and to any

other weapon that exposes a "weaponOptics" slot.

Root cause (found by extracting the shipped configs/scripts from the 1.30 stable client):

1) dta\scripts.pbo -> scripts\4_world\entities\itembase\inventory_base\buisoptic.c

BUISOptic.CanPutAsAttachment() uses a hard-coded whitelist:

if (parent.IsKindOf("M4A1_Base")) return true;

if (parent.IsKindOf("SCARH_Base")) return true;

return false;

IsKindOf() evaluates the CONFIG hierarchy.

2) The Nasdara SCAR-L config (nasdara\addons\weapons_nasdara.pbo ->

firearms\scarl\config.bin) declares:

class SCARL_Base: Rifle_Base // NOT SCARH_Base

class SCARL: SCARL_Base

class SCARL_Black: SCARL

so parent.IsKindOf("SCARH_Base") is always false for SCAR-L.

3) The intent seems to have been the opposite: dta\scripts.pbo ->

scripts\4_world\entities\firearms\automaticrifle\scarl.c declares

class SCARL_Base : SCARH_Base

(script-level inheritance), but that does not affect IsKindOf(), which reads the

config hierarchy.

Slot compatibility itself is fine: BUISOptic has inventorySlot[] = {"weaponOptics"}

(addons\weapon_optics.pbo) and SCARL's attachments[] contains "weaponOptics".

Only the script whitelist blocks it.

Reproduction steps

1. Launch DayZ 1.30 stable, map Nasdara (official).

2. Spawn/obtain SCARL (or SCARL_Black) and BUISOptic.

3. Put SCARL in hands, open the attachment slots / use the attach action with BUISOptic.

-> No attach option for BUISOptic; the slot exists but the item is rejected.

4. Repeat with SCARH + BUISOptic -> attaches normally.

(Also reproducible in DayZ Tools Workbench with vanilla + Nasdara data only, no mods.)

Exact build version (optional)
1.30.164200.56
Where did it happen?
Local / Offline
Is it modded?
No
Expected result

BUISOptic should be attachable to SCAR-L, which has a weaponOptics rail and is

declared as part of the SCAR family in the scripts.

Reactions

Activity

    about 2 hours ago
  • octopuss
    created issueabout 2 hours ago

You are not signed in. Please sign in to see more details and to reply.

State

Open
Issue key
DZG-2356
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
octopuss
Created
Oct 30, 2026
Views
11