How the hell do i make sniper weapons have scopes

i literally tried EVERY single guide here yet NOTHING! guess why? is because the guides are REALLY old (1 year old or more!), so don’t even tell me such guides, since they are very very wrong
ACTUALLY tell me the right way to add scopes to all sniper weapons!

Usually when buying sniper weapons, they come with scopes already being in the slot.

this is about the editor, not the actual game, hence why is in game mods section

2 Likes

Oh sorry. Didnt see the tag.

well understandable… you just stop reading after seeing such big title…

idk when he will learn that topic titles should be short…

2 Likes
"customProps:object"{
    "gunMods:object"{
      scope:t="scope_zf39"
    }
  }

Paste this code under your entity and put the name of the scope suitable for the weapon scope:t=“xxx” here

Is it the same line for gun game?

if it doesn’t work, make a custom gun from entities.blk

like this one:

Spoiler
pre_war_kar98k_camouflaged_w_zombie_gun{
  _use:t="pre_war_kar98k_camouflaged_w_gun"
  _use:t="gun_with_initial_ammo"
  _use:t="paid_loot_ressuply"
  item__template:t="pre_war_kar98k_camouflaged_w_zombie_gun_item"
  item__weapTemplate:t="pre_war_kar98k_camouflaged_w_zombie_gun"
  paid_loot__ressuplyCost:i=70
  gun__shotFreq:r=1.195
  gun__kineticDamageMult:r=3.85
  gun__reloadTime:r=4.5

  "customProps:object"{
    "initialComponents:object"{
      gun__shotFreq:r=1.195
      gun__reloadTime:r=4.5
      gun__altReloadTime:r=0.6
      weapon__aimNodeOffset:r=0.1
      single_reload__loopTime:r=0.3
      single_reload__postTime:r=0.4
      single_reload__prepareTime:r=0.2
      reload__singleReloadAmmoCount:i=1
    }
  }

  "customProps:object"{
    "gunMods:object"{
      scope:t="scope_zf39"
    }
  }
}

pre_war_kar98k_camouflaged_w_zombie_gun_item{
  _use:t="item_gun"
  _use:t="pre_war_kar98k_camouflaged_w_zombie_gun"
  collres__res:t="pre_war_kar98k_collision"

  _group{
    _tags:t="server"

    "gun__initialAmmoHoldersCount:list<i>"{
      item:i=12
    }
  }
}
1 Like