Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 XML Customization » Attachment that enables other attachments?
Attachment that enables other attachments?[message #241258] Tue, 05 January 2010 13:58 Go to previous message
ko5ma

 
Messages:35
Registered:January 2010
Location: Poland
Looo(oooooo)ng time lurker, first time poster - hello everyone, thanks to the mod squad for making the best game ever even better, and happy new year Smile.

Now, to the subject at hand: I've been working on a slightly different item mod, with high attention to tiny details - mainly for my own 'internal' use, as i really like micromanagement and JA2 (especially 1.13) is THE game for that. However, i have encountered a certain problem with attachments - in order to minimize the amount of repeated entries in the weapons.xml (and to make certain items easily reusable), i wanted to use attachments that either allow usage of other attachments, or that can take attachments of their own. In case i wasn't clear, here's an example of what i want to achieve:

Glock 17
- cannot take any muzzle devices by itself
- can take a compensated barrel + slide set, OR a threaded barrel
- if a threaded barrel is used, either the pistol or the barrel can have one of the muzzle devices (9mm sound suppressors, flash hiders, etc) attached

I did manage to get it sort of working, as in i can attach a suppressor to a threaded barrel and then attach the barrel to the pistol, but the weapon only gains a bonus from the barrel, and it is not possible to unattach the suppressor without dismantling the barrel first

I also know that it can be done by merging items (G17+comp barrel->G17C; G17+threaded barrel->G17SD) and having the result items work with certain attachments, but it's not a particularly tidy solution, and certainly not the best one for scope mounts and similar items that should be reusable, but do not (or at least should not) produce a replacement item during the merge process.

So, is that possible? If so, what am i doing wrong? Smile Thanks in advance.

Report message to a moderator

Private 1st Class
 
Read Message
Read Message
Previous Topic: DBB-MOD 910
Next Topic: Custom Gun Question
Goto Forum:
  


Current Time: Fri Feb 07 21:20:47 GMT+2 2025

Total time taken to generate the page: 0.00815 seconds