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 #305731] Fri, 08 June 2012 00:20 Go to previous messageGo to previous message
Madd_Mugsy

 
Messages:634
Registered:July 2005
Location: Canada
It should be very minimal. The CAF is much more efficient than the old system. The old system loops through every single base item/attachment pair in the attachments.XML looking for a match. The new one just does a bitwise comparison between the base item's AvailableAttachmentPoint tag the attachment's AttachmentPoint tag. In theory, CAF should be orders of magnitude faster.

In fact, I handle various stock attachments this way, and it works great. I'm currently experimenting with every gun that has a stock getting a default stock attachment via a "Stock" attachment point.

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: Fri Jan 10 10:23:56 GMT+2 2025

Total time taken to generate the page: 0.01654 seconds