Jump to content
  • 0

weapon attachments


dodget90

Question

10 answers to this question

Recommended Posts

  • 0

It's in each weapon config in dayz_code.pbo, which must not be edited.
I'm using right-click addon with customized attachAttachment.sqf

  Reveal hidden contents

and removeAttachment.sqf

  Reveal hidden contents

to enable attach&detach attachments like these below:

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 0
  On 12/4/2017 at 12:05 PM, dodget90 said:

whats involved in creating custom weapon attachments? for example, if I wanted to right click my Makarov and attach the pistol flashlight attachment from the weapon trader or add an acog scope to my kar 98 rifle

Expand  

Unfortunately you can't put whatever you want on whatever gun since they require new models.

@Schalldampferis using click actions by @mudzereli it's one of the dependencies for deploy anything also by mudzereli.

Link to comment
Share on other sites

  • 0
  On 12/5/2017 at 10:56 PM, dodget90 said:

if I'm in the trader's menu buying a weapon and it says on the right what attachments said weapon can have and the font turns blue or green letting me know said attachment fits my weapon, where is the file so I can add my changes in there

Expand  

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/actions/AdvancedTrading/functions/z_at_fillBuyableList.sqf#L20-L22

Link to comment
Share on other sites

  • 0
  On 12/6/2017 at 4:13 AM, salival said:
Expand  

 

if (isText(configFile >> "CfgWeapons" >> _x >> "Attachments" >> _name) or _name in getArray (configFile >> "CfgWeapons" >> _x >> "magazines")) then {
 is this what I'm looking for, do I need to make my own config file for each weapon I modify? , the problem im having is when I go into the weapon menu and say click on the m9 for example, it will show me the weapon name, the magazines it can use and the attachments in this example it says I can use a 9mm Suppressor, if I then buy the weapon and then go back into the traders and select the attachments list then the 9mm suppresor text will be blue if it attaches to my weapon and green if I already have it, but the weapons I have modified still say attachments none in the trader list, what you guys have already helped me with I can right click the weapon in my inventory and attach things no problem there but I cant click on the attachments and attach them that way, I hope I explained this well and I appreciate the help so far I was just wondering if this is possible

Link to comment
Share on other sites

  • 0
  On 12/6/2017 at 10:19 AM, dodget90 said:

 

if (isText(configFile >> "CfgWeapons" >> _x >> "Attachments" >> _name) or _name in getArray (configFile >> "CfgWeapons" >> _x >> "magazines")) then {
 is this what I'm looking for, do I need to make my own config file for each weapon I modify? , the problem im having is when I go into the weapon menu and say click on the m9 for example, it will show me the weapon name, the magazines it can use and the attachments in this example it says I can use a 9mm Suppressor, if I then buy the weapon and then go back into the traders and select the attachments list then the 9mm suppresor text will be blue if it attaches to my weapon and green if I already have it, but the weapons I have modified still say attachments none in the trader list, what you guys have already helped me with I can right click the weapon in my inventory and attach things no problem there but I cant click on the attachments and attach them that way, I hope I explained this well and I appreciate the help so far I was just wondering if this is possible

Expand  

I'm unsure if you understand what I was saying, you can't make custom attachments, the attachment system basically swaps out the gun for a different version that has said attachment

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...