HELP: How do I get a scoped rifle in the editor?

So I am trying to make a gun game mod, but some weapons like the carcano modello and karabiner 98 kurz don’t spawn with scopes when I add a level with that rifle with a scope mount. help pls

1 Like

Find gun_game_mode_logic entity. And find level that have rifle that can have mods.
After that click to + that in one of levels property:
image
You need add additionalWeapInfo as array in gun game level:
image
And then click to + that near additionalWeapInfo:
image
Select object and add value. And click to plus that near additionalWeapInfo, but with object type:
image
And gunMods as object type:
image
And then add scope (or bayonet or grenade_launcher) as text in gunMods:
image
And then just write scope/bayonet/grande_launcher that can be used on this weapon.

If mods can’t be used on this weapon then you will not get mods and game will prints error and mods that you can add.

To know what gun mods weapon you need to spawn it and check property gun_mods__slots:
image
(Stalingrad Kar98k).
But it shows only scope/bayonet mods.
For grenade_launcher you need check weapon name:

3 Likes

If it doesn’t work and you use only selectedSessionWeapon then…
After that click to + that in one of levels property:
image
And add selectedAdditionalInfo as object. After that add gunMods and scope/bayonet/grenade_launcher. After that it should work.

2 Likes

I cannot find the gun mods slots in any of the weapons

This property only in weapons that can have bayonet or scope.



Weapons with grenade launcher don’t have this property.

UPD: Oh. Seems it’s outdated property. And now not real info about modifications.
Well… Then set any name and check to console. It should prints correct modification.

Thx, how do I open the console?

Press to ` or ~ in keyboard.

Thanks

There is example:


Game write that this weapon can have only scope_zf_41 modification.

1 Like