Home » MODDING HQ 1.13 » v1.13 Coding Talk » (New) Common Attachment Framework (new title; was The NAS Receiver)
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)[message #305570] Sun, 03 June 2012 21:58 Go to previous messageGo to previous message
Madd_Mugsy

 
Messages:634
Registered:July 2005
Location: Canada
All you need to do really is to add one more 2^X number to the Common Attachment Points grid. It doesn't have to be 1, but that would make sense if you're trying to keep things nice and organized.

Then just open up the Guns grid view and set all values in AttachmentPointX to your new value. (Use the context menu option to do this really fast).

If you've got a bunch set up already and don't want to reorganize, just assign the new value to AttachmentPoint10. If you have existing attachment points set up, this won't interfere with them at all, and the #s are both arbitrary and meaningful at the same time. They are arbitrary in the sense that when you reload your data fresh, ie: if XmlWorkingData is toasted with a new version of the editor, then the AttachmentPoint fields will be pushed together, eliminating any empty space between them. However, the numbers are meaningful in that they provide an order for the points to be created.

This same principle applies to DefaultAttachments, and the order of items there is much more important. For instance, it is possible to have a DefaultAttachment add new attachment slots, and then have a subsequent default attachment use one of them. Of course, the other way around wouldn't work, as the attachment wouldn't have any slots to use yet.

Another CAF approach would be to create entries for each gun type and then just add an additional "Any gun" entry that ORs them together. Then add the "Any gun" point to your attachment and the gun types to the various guns.

But I digress... It's doable now and is pretty easy to do.

Report message to a moderator

First Sergeant

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Stealth Mechanics
Next Topic: [IDEA] New Magazine System
Goto Forum:
  


Current Time: Sat Jan 25 09:51:47 GMT+2 2025

Total time taken to generate the page: 0.01447 seconds