How can I set the position of each attachment on each gun?

CrazyGunner

New member
Dec 1, 2021
28
8
3
Like the topic said, in the gun render file, there are only "sight" and "barrel" in attachmentPointMap section which is an overall setting, not individually. So, are there any way to set the position of each attachment on each gun?
 

Attachments

  • Untitled.png
    Untitled.png
    4.7 KB · Views: 6

SynDragon09

Active member
Nov 19, 2021
108
44
28
Like the topic said, in the gun render file, there are only "sight" and "barrel" in attachmentPointMap section which is an overall setting, not individually. So, are there any way to set the position of each attachment on each gun?
"attachments": {
"positionPointMap": {
"prototype.acog_scope": [
{
"x": 0.0,
"y": 0.0,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.docter_sight": [
{
"x": 0.0,
"y": 0.0,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.long_scope": [
{
"x": -1.0,
"y": -0.05,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.holo_sight": [
{
"x": 0.0,
"y": 0.0,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
]
},
"aimPointMap": {
"prototype.acog_scope": [
{
"x": 0.0,
"y": 0.2,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.docter_sight": [
{
"x": 0.0,
"y": 0.4,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.long_scope": [
{
"x": 0.0,
"y": 0.3,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.holo_sight": [
{
"x": 1.1,
"y": 0.25,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
]
}
},
m4a1 in default pack
 

CrazyGunner

New member
Dec 1, 2021
28
8
3
"attachments": {
"positionPointMap": {
"prototype.acog_scope": [
{
"x": 0.0,
"y": 0.0,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.docter_sight": [
{
"x": 0.0,
"y": 0.0,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.long_scope": [
{
"x": -1.0,
"y": -0.05,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.holo_sight": [
{
"x": 0.0,
"y": 0.0,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
]
},
"aimPointMap": {
"prototype.acog_scope": [
{
"x": 0.0,
"y": 0.2,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.docter_sight": [
{
"x": 0.0,
"y": 0.4,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.long_scope": [
{
"x": 0.0,
"y": 0.3,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
],
"prototype.holo_sight": [
{
"x": 1.1,
"y": 0.25,
"z": 0.0
},
{
"x": 0.0,
"y": 0.0,
"z": 0.0
}
]
}
},
m4a1 in default pack
Oh, I haven't noticed that file. Thank you so much.
 

CrazyGunner

New member
Dec 1, 2021
28
8
3
I have one more question. How to set gun offset scoping for each sight? I want to make some sight get a larger pic without changing their position.
 

Protoxy

Admin
Staff member
Mar 9, 2021
65
54
18
France
I have one more question. How to set gun offset scoping for each sight? I want to make some sight get a larger pic without changing their position.
Hello, what is a larger pic ?
You want to adjust the size of the scope overlay texture depending of the scopes attached ? If so, the size of the overlays textures are fixed and can't be resized depending of the scopes mounted.

Protoxy.
 

CrazyGunner

New member
Dec 1, 2021
28
8
3
Hello, what is a larger pic ?
You want to adjust the size of the scope overlay texture depending of the scopes attached ? If so, the size of the overlays textures are fixed and can't be resized depending of the scopes mounted.

Protoxy.
Thank you for your reply. I just figured it out that I have to change the x value in aimPointMap section, and now it's solved.